Changeset 16011 for extensions/GMaps/main.inc.php
- Timestamp:
- Jun 24, 2012, 9:17:04 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GMaps/main.inc.php
r15345 r16011 160 160 global $prefixeTable; 161 161 162 if( defined('IN_ADMIN'))162 if(!defined('AJAX_CALL')) 163 163 { 164 //GMaps admin interface loaded and active only if in admin page 165 include_once("gmaps_aim.class.inc.php"); 166 $obj=new GMaps_AIM($prefixeTable, __FILE__); 167 $obj->initEvents(); 168 } 169 else 170 { 171 if(CommonPlugin::checkGPCRelease(GMAPS_GPC_NEEDED)) 164 if(defined('IN_ADMIN')) 172 165 { 173 //GMaps public interface loaded and active only if in public page 174 include_once("gmaps_pip.class.inc.php"); 175 $obj=new GMaps_PIP($prefixeTable, __FILE__); 166 //GMaps admin interface loaded and active only if in admin page 167 include_once("gmaps_aim.class.inc.php"); 168 $obj=new GMaps_AIM($prefixeTable, __FILE__); 169 $obj->initEvents(); 170 } 171 else 172 { 173 if(CommonPlugin::checkGPCRelease(GMAPS_GPC_NEEDED) and !mobile_theme()) 174 { 175 //GMaps public interface loaded and active only if in public page 176 include_once("gmaps_pip.class.inc.php"); 177 $obj=new GMaps_PIP($prefixeTable, __FILE__); 178 } 176 179 } 177 180 }
Note: See TracChangeset
for help on using the changeset viewer.