|
@@ -90,15 +90,14 @@
|
|
** will be displayed. This function returns the imap connection handle.
|
|
** will be displayed. This function returns the imap connection handle.
|
|
******************************************************************************/
|
|
******************************************************************************/
|
|
function sqimap_login ($username, $password, $imap_server_address, $imap_port, $hide) {
|
|
function sqimap_login ($username, $password, $imap_server_address, $imap_port, $hide) {
|
|
- global $color, $squirrelmail_language, $HTTP_ACCEPT_LANGUAGE, $onetimepad, $otp_pad;
|
|
|
|
|
|
+ global $color, $squirrelmail_language, $HTTP_ACCEPT_LANGUAGE, $onetimepad;
|
|
|
|
|
|
$imap_stream = fsockopen ($imap_server_address, $imap_port,
|
|
$imap_stream = fsockopen ($imap_server_address, $imap_port,
|
|
&$error_number, &$error_string, 15);
|
|
&$error_number, &$error_string, 15);
|
|
$server_info = fgets ($imap_stream, 1024);
|
|
$server_info = fgets ($imap_stream, 1024);
|
|
|
|
|
|
// Decrypt the password
|
|
// Decrypt the password
|
|
- $onetpad = OneTimePadDecrypt($onetimepad, $otp_pad);
|
|
|
|
- $password = OneTimePadDecrypt($password, $onetpad);
|
|
|
|
|
|
+ $password = OneTimePadDecrypt($password, $onetimepad);
|
|
|
|
|
|
/** Do some error correction **/
|
|
/** Do some error correction **/
|
|
if (!$imap_stream) {
|
|
if (!$imap_stream) {
|