XPressME Integration Kit

Trac


Ignore:
Timestamp:
Feb 13, 2009, 5:09:17 PM (15 years ago)
Author:
toemon
Message:

予約投稿のイベント通知、実装 #59

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/include_xoops_define.php

    r68 r91  
    7272} 
    7373 
     74function is_wp_cron_call(){ 
     75        $xpress_root_index = basename(dirname(dirname( __FILE__ ))) . '/wp-cron.php'; 
     76        $php_script_name = $_SERVER['SCRIPT_NAME']; 
     77        if (strstr($php_script_name,$xpress_root_index) !== false) return true; else  return false; 
     78} 
     79 
     80 
     81if (is_wp_cron_call() ){ 
     82        $_SERVER['HTTP_REFERER'] = 'http://'. $_SERVER[HTTP_HOST]  . $_SERVER['PHP_SELF']; 
     83        $_SERVER['REQUEST_METHOD'] = 'POST'; 
     84} 
     85 
    7486if (is_media_upload_page_call() ){ 
    7587        if ( !defined("XOOPS_ROOT_PATH") ) { 
Note: See TracChangeset for help on using the changeset viewer.