Changeset 16012 for extensions/GrumPluginClasses/gpc_ajax.php
- Timestamp:
- Jun 24, 2012, 9:18:26 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GrumPluginClasses/gpc_ajax.php
r12215 r16012 23 23 * - public.rbuilder.searchExecute 24 24 * - public.rbuilder.searchGetPage 25 * - public. tagSelector.get26 * - admin. tagSelector.get25 * - public.inputTag.get 26 * - admin.inputTag.get 27 27 * - public.contact.sendMsg 28 28 * … … 32 32 33 33 define('PHPWG_ROOT_PATH',dirname(dirname(dirname(__FILE__))).'/'); 34 34 if(!defined('AJAX_CALL')) define('AJAX_CALL', true); 35 35 36 36 /* … … 38 38 */ 39 39 if(!isset($_REQUEST['ajaxfct'])) $_REQUEST['ajaxfct']=''; 40 if(preg_match('/^admin\./i', $_REQUEST['ajaxfct'])) 41 { 42 define('IN_ADMIN', true); 43 } 40 if(preg_match('/^admin\./i', $_REQUEST['ajaxfct'])) define('IN_ADMIN', true); 44 41 45 42 // the common.inc.php file loads all the main.inc.php plugins files 46 43 include_once(PHPWG_ROOT_PATH.'include/common.inc.php' ); 47 44 include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php' ); 45 include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCAjax.class.inc.php'); 48 46 include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php'); 49 include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCAjax.class.inc.php');50 47 51 48 global $page; … … 77 74 $tableList=array('result_cache'); 78 75 $this->setTablesList($tableList); 79 80 76 $this->loadConfig(); 81 77 $this->checkRequest(); … … 100 96 $_REQUEST['ajaxfct']=='admin.categorySelector.getList' or 101 97 $_REQUEST['ajaxfct']=='public.categorySelector.getList' or 102 $_REQUEST['ajaxfct']=='public. tagSelector.get' or103 $_REQUEST['ajaxfct']=='admin. tagSelector.get' or98 $_REQUEST['ajaxfct']=='public.inputTag.get' or 99 $_REQUEST['ajaxfct']=='admin.inputTag.get' or 104 100 $_REQUEST['ajaxfct']=='public.contact.sendMsg' 105 101 ) … … 149 145 150 146 /* 151 * check admin. tagSelector.get values147 * check admin.inputTag.get values 152 148 */ 153 if($_REQUEST['ajaxfct']=="admin. tagSelector.get" or154 $_REQUEST['ajaxfct']=="public. tagSelector.get")149 if($_REQUEST['ajaxfct']=="admin.inputTag.get" or 150 $_REQUEST['ajaxfct']=="public.inputTag.get") 155 151 { 156 152 if(!isset($_REQUEST['letters'])) $_REQUEST['ajaxfct']=""; … … 236 232 $result=$this->ajax_gpc_public_CategorySelectorGetList($_REQUEST['filter'], $_REQUEST['galleryRoot'], $_REQUEST['tree']); 237 233 break; 238 case 'admin. tagSelector.get':239 $result=$this->ajax_gpc_both_ TagSelectorGet('admin', $_REQUEST['letters'], $_REQUEST['filter'], $_REQUEST['maxTags'], $_REQUEST['ignoreCase']);240 break; 241 case 'public. tagSelector.get':242 $result=$this->ajax_gpc_both_ TagSelectorGet('public', $_REQUEST['letters'], $_REQUEST['filter'], $_REQUEST['maxTags'], $_REQUEST['ignoreCase']);234 case 'admin.inputTag.get': 235 $result=$this->ajax_gpc_both_InputTagGet('admin', $_REQUEST['letters'], $_REQUEST['filter'], $_REQUEST['maxTags'], $_REQUEST['ignoreCase']); 236 break; 237 case 'public.inputTag.get': 238 $result=$this->ajax_gpc_both_InputTagGet('public', $_REQUEST['letters'], $_REQUEST['filter'], $_REQUEST['maxTags'], $_REQUEST['ignoreCase']); 243 239 break; 244 240 case 'public.contact.sendMsg': … … 408 404 * @return String : json string 409 405 */ 410 private function ajax_gpc_both_ TagSelectorGet($mode, $letters, $filter, $maxTags, $ignoreCase)406 private function ajax_gpc_both_InputTagGet($mode, $letters, $filter, $maxTags, $ignoreCase) 411 407 { 412 408 global $user; … … 482 478 483 479 return(json_encode($returned)); 484 } //ajax_gpc_both_ TagSelectorGet480 } //ajax_gpc_both_InputTagGet 485 481 486 482
Note: See TracChangeset
for help on using the changeset viewer.