先看图片,从下图中很明显的看到,当点击ucenter时候,页面直接跳至后台首页面
解决办法:
惭愧,能力有限,问题不是自己搞定的,感谢卢sir
方法是:在discuzx2.5\upload\uc_server\admin.php中,将定义uc_api的程序删除,
define('UC_API', strtolower((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'))));
替换为如下程序段:
define('UC_API', (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http'). '://'. $_SERVER['HTTP_HOST']. ($_SERVER['PHP_SELF'] ? substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/')) : substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/'))) );
结果是: