소스 검색

Added use of $imapPort

Luke Ehresman 25 년 전
부모
커밋
e2f6e8d72b

+ 2 - 2
functions/imap_general.php

@@ -63,9 +63,9 @@
     **  Logs the user into the imap server.  If $hide is set, no error messages
     **  will be displayed.  This function returns the imap connection handle.
     ******************************************************************************/
-   function sqimap_login ($username, $password, $imap_server_address, $hide) {
+   function sqimap_login ($username, $password, $imap_server_address, $imap_port, $hide) {
       global $color;
-      $imap_stream = fsockopen ($imap_server_address, 143, &$error_number, &$error_string);
+      $imap_stream = fsockopen ($imap_server_address, $imap_port, &$error_number, &$error_string);
       $server_info = fgets ($imap_stream, 1024);
       
       /** Do some error correction **/

+ 4 - 4
src/compose.php

@@ -278,14 +278,14 @@
          header ("Location: right_main.php");
       } else {
          echo "<HTML><BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n";
-         $imapConnection = sqimap_login($username, $key, $imapServerAddress, 0);
+         $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
          displayPageHeader($color, "None");
 
          showInputForm();
       }
    } else if (isset($attach)) {
       echo "<HTML><BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n";
-      $imapConnection = sqimap_login($username, $key, $imapServerAddress, 0);
+      $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
       displayPageHeader($color, "None");
 
       $localfilename = md5("$attachfile, $attachfile_name, $REMOTE_IP, $REMOTE_PORT, $UNIQUE_ID, and everything else that may add entropy");
@@ -313,7 +313,7 @@
       showInputForm();
    } else if (isset($do_delete)) {
       echo "<HTML><BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n";
-      $imapConnection = sqimap_login($username, $key, $imapServerAddress, 0);
+      $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
       displayPageHeader($color, "None");
 
       while (list($key, $localname) = each($delete)) {
@@ -325,7 +325,7 @@
       showInputForm();
    } else {
       echo "<HTML><BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n";
-      $imapConnection = sqimap_login($username, $key, $imapServerAddress, 0);
+      $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
       displayPageHeader($color, "None");
 
       $newmail = true;

+ 1 - 1
src/delete_message.php

@@ -14,7 +14,7 @@
 
    echo "<HTML><BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n";
 
-   $imapConnection = sqimap_login($username, $key, $imapServerAddress, 0);
+   $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
    sqimap_mailbox_select($imapConnection, $mailbox);
 
    displayPageHeader($color, $mailbox);

+ 1 - 1
src/download.php

@@ -35,7 +35,7 @@
       echo "</TT></TD></TR></TABLE>";
    }
 
-   $imapConnection = sqimap_login($username, $key, $imapServerAddress, 0);
+   $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
    sqimap_mailbox_select($imapConnection, $mailbox);
 
    // $message contains all information about the message

+ 1 - 1
src/empty_trash.php

@@ -11,7 +11,7 @@
 
    include("../src/load_prefs.php");
 
-   $imap_stream = sqimap_login($username, $key, $imapServerAddress, 0);
+   $imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
 
    sqimap_mailbox_list($imap_stream, $boxes);
 

+ 1 - 1
src/folders.php

@@ -22,7 +22,7 @@
    echo "   </TD></TR>\n";
    echo "</TABLE>\n";
 
-   $imapConnection = sqimap_login ($username, $key, $imapServerAddress, 0);
+   $imapConnection = sqimap_login ($username, $key, $imapServerAddress, $imapPort, 0);
    $boxes = sqimap_mailbox_list($imapConnection);
 
    /** DELETING FOLDERS **/

+ 1 - 1
src/folders_create.php

@@ -12,7 +12,7 @@
 
    include("../src/load_prefs.php");
 
-   $imapConnection = sqimap_login($username, $key, $imapServerAddress, 0);
+   $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
    $dm = sqimap_get_delimiter($imapConnection);
 
    if (strpos($folder_name, "\"") || strpos($folder_name, ".") ||

+ 1 - 1
src/folders_delete.php

@@ -24,7 +24,7 @@
    displayPageHeader($color, "None");  
 
    
-   $imap_stream = sqimap_login($username, $key, $imapServerAddress, 0);
+   $imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
    $boxes = sqimap_mailbox_list ($imap_stream);
    $dm = sqimap_get_delimiter($imap_stream);
    if (substr($mailbox, -1) == $dm)

+ 1 - 1
src/folders_rename_do.php

@@ -10,7 +10,7 @@
 
    include("../src/load_prefs.php");
 
-   $imapConnection = sqimap_login($username, $key, $imapServerAddress, 0);
+   $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
    $dm = sqimap_get_delimiter($imapConnection);
 
    if (strpos($orig, $dm))

+ 1 - 1
src/folders_rename_getname.php

@@ -10,7 +10,7 @@
 
    include("../src/load_prefs.php");
 
-   $imapConnection = sqimap_login($username, $key, $imapServerAddress, 0);
+   $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
 
    $dm = sqimap_get_delimiter($imapConnection);
    if (substr($old, strlen($old) - strlen($dm)) == $dm) {

+ 1 - 1
src/left_main.php

@@ -71,7 +71,7 @@
    }
 
    // open a connection on the imap port (143)
-   $imapConnection = sqimap_login($username, $key, $imapServerAddress, 10); // the 10 is to hide the output
+   $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 10); // the 10 is to hide the output
 
    /** If it was a successful login, lets load their preferences **/
    include("../src/load_prefs.php");

+ 1 - 1
src/move_messages.php

@@ -37,7 +37,7 @@
       }
    }
 
-   $imapConnection = sqimap_login($username, $key, $imapServerAddress, 0);
+   $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
    sqimap_mailbox_select($imapConnection, $mailbox);
 
    // If the delete button was pressed, the moveButton variable will not be set.

+ 1 - 1
src/options.php

@@ -17,7 +17,7 @@
    include("../src/load_prefs.php");
 
 
-   $imapConnection = sqimap_login($username, $key, $imapServerAddress);
+   $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort);
    $boxes = sqimap_mailbox_list($imapConnection, $boxes);
    fputs($imapConnection, "1 logout\n");
 

+ 1 - 1
src/read_body.php

@@ -14,7 +14,7 @@
 
    include("../src/load_prefs.php");
 
-   $imapConnection = sqimap_login($username, $key, $imapServerAddress, 0);
+   $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
    sqimap_mailbox_select($imapConnection, $mailbox);
 
    // $message contains all information about the message

+ 1 - 1
src/right_main.php

@@ -58,7 +58,7 @@
    /////////////////////////////////////////////////////////////////////////////////
 
    // open a connection on the imap port (143)
-   $imapConnection = sqimap_login($username, $key, $imapServerAddress, 0);
+   $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
 
    /** If it was a successful login, lets load their preferences **/
    include("../src/load_prefs.php");

+ 1 - 1
src/webmail.php

@@ -26,7 +26,7 @@
    include ("../functions/imap.php");
 
    // verify that username and password are correct
-   $imapConnection = sqimap_login($username, $key, $imapServerAddress, 0);
+   $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
    
    include ("../src/load_prefs.php");