Changeset 96 for trunk/include/request_url.php
- Timestamp:
- Mar 6, 2009, 5:16:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/request_url.php
r95 r96 13 13 */ 14 14 function check_page_call($check_file =''){ 15 global $xoops_config; 15 global $xoops_config; // not object at install 16 16 if (empty($check_file)) return false; 17 $xpress_page = $xoops_config->module_name. '/' . $check_file;17 $xpress_page = basename(dirname(dirname(__FILE__))) . '/' . $check_file; 18 18 $php_script_name = $_SERVER['SCRIPT_NAME']; 19 19 $php_query_string = $_SERVER['QUERY_STRING']; … … 49 49 return $ret; 50 50 } 51 52 function is_xpress_install_call(){ 53 $action = 'action=ModuleInstall&dirname='; 54 $php_script_name = $_SERVER['SCRIPT_NAME']; 55 $php_query_string = $_SERVER['QUERY_STRING']; 56 if (strstr($php_query_string,$action) !== false) return true; 57 return false; 58 } 51 59 ?>
Note: See TracChangeset
for help on using the changeset viewer.