📄 xoops-wp.php
字号:
<?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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -