Changeset 16013 for extensions/Histogram/main.inc.php
- Timestamp:
- Jun 24, 2012, 9:18:55 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Histogram/main.inc.php
r15346 r16013 68 68 global $prefixeTable; 69 69 70 if( defined('IN_ADMIN'))70 if(!defined('AJAX_CALL')) 71 71 { 72 // HGram admin interface loaded and active only if in admin page 73 include_once("hgram_aim.class.inc.php"); 74 $obj=new HGram_AIM($prefixeTable, __FILE__); 75 $obj->initEvents(); 76 set_plugin_data($plugin['id'], $obj); 77 } 78 else 79 { 80 // HGram public interface loaded and active only if in public page 81 include_once("hgram_pip.class.inc.php"); 82 $obj=new HGram_PIP($prefixeTable, __FILE__); 83 set_plugin_data($plugin['id'], $obj); 72 if(defined('IN_ADMIN')) 73 { 74 // HGram admin interface loaded and active only if in admin page 75 include_once("hgram_aim.class.inc.php"); 76 $obj=new HGram_AIM($prefixeTable, __FILE__); 77 $obj->initEvents(); 78 set_plugin_data($plugin['id'], $obj); 79 } 80 else 81 { 82 if(CommonPlugin::checkGPCRelease(HGRAM_GPC_NEEDED) and !mobile_theme()) 83 { 84 // HGram public interface loaded and active only if in public page 85 include_once("hgram_pip.class.inc.php"); 86 $obj=new HGram_PIP($prefixeTable, __FILE__); 87 set_plugin_data($plugin['id'], $obj); 88 } 89 } 84 90 } 85 91 86 87 88 92 ?>
Note: See TracChangeset
for help on using the changeset viewer.