next up previous contents
Next: 目錄 functions Up: 比對 Previous: 比對   Contents

檔案比對

  1. 已完成程式修改才進行文件撰寫,先比對修改前後的差異。
    [root@mail src]# cd squirrelmail-1.4.8
    [root@mail squirrelmail-1.4.8]# diff --ignore-all-space -qr . /var/www/squirrelmail/ | egrep -v "(\.png|locale:|decode:|help:|\.bak|Only.*plugins|tar.gz|hlp)" | sort
    Files ./functions/db_prefs.php and /var/www/squirrelmail/functions/db_prefs.php differ
    Files ./functions/display_messages.php and /var/www/squirrelmail/functions/display_messages.php differ
    Files ./functions/global.php and /var/www/squirrelmail/functions/global.php differ
    Files ./functions/i18n.php and /var/www/squirrelmail/functions/i18n.php differ
    Files ./functions/imap_general.php and /var/www/squirrelmail/functions/imap_general.php differ
    Files ./functions/imap_messages.php and /var/www/squirrelmail/functions/imap_messages.php differ
    Files ./functions/imap_search.php and /var/www/squirrelmail/functions/imap_search.php differ
    Files ./functions/mailbox_display.php and /var/www/squirrelmail/functions/mailbox_display.php differ
    Files ./functions/mime.php and /var/www/squirrelmail/functions/mime.php differ
    Files ./functions/page_header.php and /var/www/squirrelmail/functions/page_header.php differ
    Files ./functions/strings.php and /var/www/squirrelmail/functions/strings.php differ
    Files ./functions/tree.php and /var/www/squirrelmail/functions/tree.php differ
    Files ./include/load_prefs.php and /var/www/squirrelmail/include/load_prefs.php differ
    Files ./include/options/personal.php and /var/www/squirrelmail/include/options/personal.php differ
    Files ./include/validate.php and /var/www/squirrelmail/include/validate.php differ
    Files ./index.php and /var/www/squirrelmail/index.php differ
    Files ./plugins/administrator/auth.php and /var/www/squirrelmail/plugins/administrator/auth.php differ
    Files ./plugins/administrator/options.php and /var/www/squirrelmail/plugins/administrator/options.php differ
    Files ./plugins/filters/filters.php and /var/www/squirrelmail/plugins/filters/filters.php differ
    Files ./plugins/filters/setup.php and /var/www/squirrelmail/plugins/filters/setup.php differ
    Files ./plugins/message_details/message_details_bottom.php and /var/www/squirrelmail/plugins/message_details/message_details_bottom.php differ
    Files ./plugins/squirrelspell/sqspell_interface.php and /var/www/squirrelmail/plugins/squirrelspell/sqspell_interface.php differ
    Files ./plugins/squirrelspell/sqspell_options.php and /var/www/squirrelmail/plugins/squirrelspell/sqspell_options.php differ
    Files ./src/addressbook.php and /var/www/squirrelmail/src/addressbook.php differ
    Files ./src/compose.php and /var/www/squirrelmail/src/compose.php differ
    Files ./src/configtest.php and /var/www/squirrelmail/src/configtest.php differ
    Files ./src/download.php and /var/www/squirrelmail/src/download.php differ
    Files ./src/empty_trash.php and /var/www/squirrelmail/src/empty_trash.php differ
    Files ./src/left_main.php and /var/www/squirrelmail/src/left_main.php differ
    Files ./src/login.php and /var/www/squirrelmail/src/login.php differ
    Files ./src/mailto.php and /var/www/squirrelmail/src/mailto.php differ
    Files ./src/printer_friendly_bottom.php and /var/www/squirrelmail/src/printer_friendly_bottom.php differ
    Files ./src/printer_friendly_main.php and /var/www/squirrelmail/src/printer_friendly_main.php differ
    Files ./src/read_body.php and /var/www/squirrelmail/src/read_body.php differ
    Files ./src/redirect.php and /var/www/squirrelmail/src/redirect.php differ
    Files ./src/right_main.php and /var/www/squirrelmail/src/right_main.php differ
    Files ./src/view_header.php and /var/www/squirrelmail/src/view_header.php differ
    Files ./src/view_text.php and /var/www/squirrelmail/src/view_text.php differ
    Files ./src/webmail.php and /var/www/squirrelmail/src/webmail.php differ
    Only in /var/www/squirrelmail/: apachequota.sh
    Only in /var/www/squirrelmail/: favicon.ico
    Only in /var/www/squirrelmail/themes/css: dywang.css
    Only in /var/www/squirrelmail/themes: dywang_theme.php
    
  2. 根目錄上的 index.php,變更設定位置。
    [root@mail squirrelmail-1.4.8]# diff -wuN ./index.php /var/www/squirrelmail/index.php
    --- ./index.php	2006-02-04 06:27:46.000000000 +0800
    +++ /var/www/squirrelmail/index.php	2006-12-31 08:18:15.000000000 +0800
    @@ -12,7 +12,7 @@
      */
     
     // Are we configured yet?
    -if( ! file_exists ( 'config/config.php' ) ) {
    +if( ! file_exists ( '/etc/squirrelmail/config.php' ) ) {
         echo '<html><body><p><strong>ERROR:</strong> Config file ' .
             '&quot;<tt>config/config.php</tt>&quot; not found. You need to ' .
             'configure SquirrelMail before you can use it.</p></body></html>';
    


2016-03-11