只读
修改admin.php文件,打开后台后页面乱码
2018-04-21 09:12:41
沙棠舟
  • 访问次数: 16
  • 注册日期: 2018-01-25
  • 最后登录: 2018-06-06

现在用的是备份的文件和在新的电脑上安装的chanzhi

修改文件名以后 输入ip/xxx.php后 出现下面的代码,修改的文件名只有英文,没有空格 特殊字符啥的

* @package chanzhiEPS * @version $Id$ * @link http://www.chanzhi.org */ /* Turn off error reporting first. */ /* Start output buffer. */ ob_start(); /* Define the run mode as admin. */ define('RUN_MODE', 'admin'); /* Load the framework.*/ include 'loader.php'; /* Check admin entry. */ checkAdminEntry(); /* Instance the app. */ $app = router::createApp('chanzhi', $systemRoot); $config = $app->config; /* Check the reqeust is getconfig or not. Check installed or not. */ if(isset($_GET['mode']) and $_GET['mode'] == 'getconfig') die($app->exportConfig()); if(!isset($config->installed) or !$config->installed) die(header('location: install.php')); $common = $app->loadCommon(); /* Change the request settings. */ $config->frontRequestType = $config->requestType; $config->requestType = 'GET'; $config->default->module = 'admin'; $config->default->method = 'index'; /* Run it. */ $app->parseRequest(); $common->checkPriv(); $app->loadModule(); /* Flush the buffer. */ echo helper::removeUTF8Bom(ob_get_clean());

沙发
2018-04-23 09:21:40
蝉知-Bee
  • 访问次数: 2590
  • 注册日期: 2017-02-22
  • 最后登录: 2021-02-05
该帖子已经转为问题, 查看问题
1/1
该帖已被设置为 只读,您暂时无法发表新的回复。
联系我们

联系人:ZSITE交流群

电话/微信:

Email:

QQ:

地址:青岛市黄岛区井冈山路157号中南金石国际广场A座3205室