module_name . '/' . $check_file; $php_script_name = $_SERVER['SCRIPT_NAME']; $php_query_string = $_SERVER['QUERY_STRING']; if (strstr($php_script_name,$xpress_page) === false) return false; if ($check_file !== 'index.php' ) return true; if (strstr($php_query_string,'preview') === false) return true; return false; } function is_xpress_index_page_call(){ return check_page_call('index.php'); } function is_admin_page_call(){ return check_page_call('wp-admin'); } function is_media_upload_page_call(){ return check_page_call('wp-admin/async-upload.php'); } function is_wp_cron_page_call(){ return check_page_call('wp-cron.php'); } function is_xmlrpc_call(){ $ret = check_page_call('xmlrpc.php'); $xmlrpc_debug = 0; if ($xmlrpc_debug && $ret) { xpress_debug_message('is_xmlrpc_call()'. "\n" . sprint_r($_SERVER) ); } return $ret; } ?>