- Timestamp:
- Jan 2, 2009, 12:17:36 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/include_xoops_define.php
r60 r62 36 36 } 37 37 38 if (is_admin_page_call()){ 39 if ( !defined("XOOPS_ROOT_PATH") ) { 38 function is_media_upload_page_call(){ 39 $xpress_root_indexs[0] = basename(dirname(dirname( __FILE__ ))) . '/wp-admin/async-upload.php'; 40 $php_script_name = $_SERVER['SCRIPT_NAME']; 41 foreach ($xpress_root_indexs as $xpress_root_index) { 42 if (strstr($php_script_name,$xpress_root_index) !== false) return true; 43 } 44 return false; 45 } 46 47 //if (is_admin_page_call()){ 48 if (is_media_upload_page_call() ){ 49 if ( !defined("XOOPS_ROOT_PATH") ) { 40 50 // define('_LEGACY_PREVENT_LOAD_CORE_', 1); //Module process will not load any XOOPS Cube classes. 41 51 define('_LEGACY_PREVENT_EXEC_COMMON_', 1);
Note: See TracChangeset
for help on using the changeset viewer.