next up previous contents
Next: imap_messages.php Up: 目錄 functions Previous: i18n.php   Contents

imap_general.php

  1. 系統記錄登入錯誤訊息。
    [root@mail squirrelmail-1.4.8]# diff -uwN ./functions/imap_general.php /var/www/squirrelmail/functions/imap_general.php
    --- ./functions/imap_general.php	2006-07-07 04:39:38.000000000 +0800
    +++ /var/www/squirrelmail/functions/imap_general.php	2013-03-18 17:59:07.000000000 +0800
    @@ -15,6 +15,7 @@
     /** Includes.. */
     require_once(SM_PATH . 'functions/page_header.php');
     require_once(SM_PATH . 'functions/auth.php');
    +require_once(SM_PATH . 'functions/mime.php');
     
     
     /**
    @@ -100,6 +101,7 @@
             }
             $results .= $read;
         }
    +	//$results = decodeHeader ($resulte, true,true,false);
         return $results;
     }
     
    @@ -571,6 +573,8 @@
                     sqsession_destroy();
                     /* terminate the session nicely */
                     sqimap_logout($imap_stream);
    +                sqgetGlobalVar('REMOTE_ADDR', $remote_ip, SQ_SERVER);
    +                syslog(LOG_MAIL|LOG_NOTICE,"Squirrelmail login failed for Username: $username (HostIP: $remote_ip)");
                     logout_error( _("Unknown user or password incorrect.") );
                     exit;
    



2016-03-11