page counter next up previous contents
Next: empty_trash.php Up: 目錄 src Previous: compose.php   Contents

configtest.php

  1. 修改設定檔位置在 /etc/squirrelmail/config.php。
    [root@mail squirrelmail-1.4.8]# diff -wuN ./src/configtest.php /var/www/squirrelmail/src/configtest.php
    --- ./src/configtest.php	2006-07-25 17:16:25.000000000 +0800
    +++ /var/www/squirrelmail/src/configtest.php	2006-12-31 08:18:15.000000000 +0800
    @@ -36,8 +36,8 @@
      * any html output starts. If config.php is missing, error will be displayed 
      * later.
      */
    -if (file_exists(SM_PATH . 'config/config.php')) {
    -    include(SM_PATH . 'config/config.php');
    +if (file_exists('/etc/squirrelmail/config.php')) {
    +    include('/etc/squirrelmail/config.php');
         include(SM_PATH . 'functions/strings.php');
     }
     
    @@ -62,7 +62,7 @@
     
     $included = array_map('basename', get_included_files() );
     if(!in_array('config.php', $included)) {
    -    if(!file_exists(SM_PATH . 'config/config.php')) {
    +    if(!file_exists('/etc/squirrelmail/config.php')) {
             do_err('Config file '.SM_PATH . 'config/config.php does not exist!<br />'.
                    'You need to run <tt>conf.pl</tt> first.');
         }
    @@ -78,7 +78,7 @@
     echo "<p><table>\n<tr><td>SquirrelMail version:</td><td><b>" . $version . "</b></td></tr>\n" .
          '<tr><td>Config file version:</td><td><b>' . $config_version . "</b></td></tr>\n" .
          '<tr><td>Config file last modified:</td><td><b>' . 
    -         date ('d F Y H:i:s', filemtime(SM_PATH . 'config/config.php')) .
    +         date ('d F Y H:i:s', filemtime('/etc/squirrelmail/config.php')) .
              "</b></td></tr>\n</table>\n</p>\n\n";
     
     echo "Checking PHP configuration...<br />\n";
    



2016-03-11