xoops-wp.php

来自「php 开发的内容管理系统」· PHP 代码 · 共 33 行

PHP
33
字号
<?php
/**
 * XPress - WordPress for XOOPS
 *
 * Adding multi-author features to XPress
 *
 * @copyright	The XOOPS project http://www.xoops.org/
 * @license		http://www.fsf.org/copyleft/gpl.html GNU public license
 * @author		Taiwen Jiang (phppp or D.J.) <php_pp@hotmail.com>
 * @since		2.04
 * @version		$Id$
 * @package		module::wordpress
 */

// One of the most fantastic tricky solutions that make XPress work painlessly, awarded 20 cents!
if(defined("ERROR_REPORTING_WORDPRESS")){
	error_reporting(ERROR_REPORTING_WORDPRESS);
}

include_once XOOPS_ROOT_PATH."/modules/wordpress/include/xoops-wp.config.php";

include_once XOOPS_ROOT_PATH."/modules/wordpress/include/functions.ini.php";
wp_xoops_filter();

//if(defined("WP_XOOPS_MU") && WP_XOOPS_MU){
if(wp_xoops_ismu()){
	$GLOBALS["wp_xoops_author"] = intval( @$_REQUEST["author"] );
	include_once XOOPS_ROOT_PATH."/modules/wordpress/include/functions.mu.php";
	wp_mu_xoops_filter();
}else{
	$GLOBALS["wp_xoops_author"] = null;
}
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?