Changeset 16008 for extensions/ASearchEngine/ase_ajax.php
- Timestamp:
- Jun 24, 2012, 9:15:21 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ASearchEngine/ase_ajax.php
r7207 r16008 25 25 */ 26 26 if(!isset($_REQUEST['ajaxfct'])) $_REQUEST['ajaxfct']=''; 27 if(preg_match('/^admin\./i', $_REQUEST['ajaxfct'])) 28 { 29 define('IN_ADMIN', true); 30 } 27 if(preg_match('/^admin\./i', $_REQUEST['ajaxfct'])) define('IN_ADMIN', true); 28 if(!defined('AJAX_CALL')) define('AJAX_CALL', true); 29 31 30 32 31 // the common.inc.php file loads all the main.inc.php plugins files … … 59 58 global $user; 60 59 61 if(!isset($_REQUEST['ajaxfct'])) $_REQUEST['ajaxfct']='';60 GPCAjax::checkToken(); 62 61 63 62 // check if asked function is valid 64 if(!($_REQUEST[ 'ajaxfct']=='admin.config.setConfig'65 )) $_REQUEST[ 'ajaxfct']='';63 if(!($_REQUEST[GPC_AJAX]=='admin.config.setConfig' 64 )) $_REQUEST[GPC_AJAX]=''; 66 65 67 if(preg_match('/^admin\./i', $_REQUEST[ 'ajaxfct']) and !is_admin()) $_REQUEST['ajaxfct']='';66 if(preg_match('/^admin\./i', $_REQUEST[GPC_AJAX]) and !is_admin()) $_REQUEST[GPC_AJAX]=''; 68 67 69 68 70 if($_REQUEST[ 'ajaxfct']!='')69 if($_REQUEST[GPC_AJAX]!='') 71 70 { 72 71 … … 82 81 $result="<p class='errors'>An error has occured</p>"; 83 82 84 switch($_REQUEST[ 'ajaxfct'])83 switch($_REQUEST[GPC_AJAX]) 85 84 { 86 85 case 'admin.config.setConfig': 87 $result=$this->ajax_gmaps_admin_mapsGetList();88 86 break; 89 87 }
Note: See TracChangeset
for help on using the changeset viewer.