<s id="ux55u"><sub id="ux55u"></sub></s><thead id="ux55u"><legend id="ux55u"><sup id="ux55u"></sup></legend></thead>

    1. <strike id="ux55u"><u id="ux55u"><xmp id="ux55u"><dd id="ux55u"></dd>
      已解決 修改admin.php文件,打開后臺后頁面亂碼

      現在用的是備份的文件和在新的電腦上安裝的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

      php沒有解析,是官網的一鍵安裝包部署的話,可以看下:

      xampp/runner/res/apache/conf/httpd.conf

      xampp/apache/conf/httpd.conf

      這2個配置文件,參考下admin.php的邏輯,添加一個修改后的:

      <VirtualHost *:%APACHE_PORT%>
        ServerAdmin %PRODUCT_ID%@local.net
        DocumentRoot "%APP_LOCATION%%PRODUCT_ID%/www"
        ServerName localhost:%APACHE_PORT%
        <Directory />
          AllowOverride all
          Require all granted

          <Files "index.php">
            SetHandler application/x-httpd-php
          </Files>
          <Files "admin.php">
            SetHandler application/x-httpd-php
          </Files>

          <Files "test.php">
            SetHandler application/x-httpd-php
          </Files>

          <Files "install.php">
            SetHandler application/x-httpd-php
          </Files>
          <Files "upgrade.php">
            SetHandler application/x-httpd-php
          </Files>
          <Files "file.php">
            SetHandler application/x-httpd-php
          </Files>

        </Directory>
        <DirectoryMatch "%APP_LOCATION%%PRODUCT_ID%/www/.+/.*">
          <FilesMatch ".+\.ph(p[3457]?|t|tml)$">
            SetHandler text/plain
          </FilesMatch>
        </DirectoryMatch>
       
        ErrorLog "%APP_LOCATION%apache/logs/error_log"
        CustomLog "%APP_LOCATION%apache/logs/access_log" combind
      </VirtualHost>


      聯系我們

      聯系人:ZSITE交流群

      電話/微信:

      Email:

      QQ:

      地址:青島市黃島區井岡山路157號中南金石國際廣場A座3205室

      无遮挡H肉动漫视频在线观看
        <s id="ux55u"><sub id="ux55u"></sub></s><thead id="ux55u"><legend id="ux55u"><sup id="ux55u"></sup></legend></thead>

      1. <strike id="ux55u"><u id="ux55u"><xmp id="ux55u"><dd id="ux55u"></dd>