<?php
//load XOOPS
$request_method =  (isset($_SERVER['REQUEST_METHOD'])) ? $_SERVER['REQUEST_METHOD'] : '';
//$_SERVER['REQUEST_METHOD'] = 'POST' is
//When notifying by a private message, Notification_reserve_send();
//it is evaded that the data base becomes read-only as a result of the check on the referrer and the method. 
$_SERVER['REQUEST_METHOD'] = 'POST';

if ( defined('WP_ADMIN') )	{
	$nocommon_scripts = array(
		'wp-admin',
		'wp-admin/async-upload.php',
	);
	foreach($nocommon_scripts as $nocommon_script){
		if (strstr($_SERVER['SCRIPT_NAME'],$nocommon_script) !== false) {
			$xoopsOption['nocommon'] = 1;
			break;
		}
	}
}

require_once dirname(dirname(dirname(dirname( __FILE__ )))).'/mainfile.php' ;

$_SERVER['REQUEST_METHOD'] = $request_method; //It returns it to former data. 
require_once dirname( __FILE__ ).'/set_cash_cookie_path.php' ;
require_once dirname( __FILE__ ).'/xpress_debug_log.php' ;

require_once dirname(dirname( __FILE__ )).'/class/modInfo_class.php' ;
$modInfo = new modInfoClass;
require_once dirname(dirname( __FILE__ )).'/class/userInfo_class.php' ;
$userInfo = new userInfoClass;



?>