bugfixes
[squirrelmail.git] / src / download.php
index f8a334d180b98465c4ba92fd0e356e109034d43a..982c7e0f69d5d08579a334c42adc7f8d8b699a25 100644 (file)
@@ -1,4 +1,6 @@
-<?
+<?php
+   session_start();
+
    if (!isset($config_php))
       include("../config/config.php");
    if (!isset($strings_php))
@@ -24,9 +26,9 @@
       echo "</CENTER></B>";
       echo "</TD></TR><TR><TD BGCOLOR=\"$color[4]\">";
       $urlmailbox = urlencode($mailbox);
-      echo "<FONT FACE=\"Arial, Helvetica\"><CENTER><A HREF=\"../src/download.php?absolute_dl=true&passed_id=$id&passed_ent_id=$entid&mailbox=$urlmailbox\">";
+      echo "<CENTER><A HREF=\"../src/download.php?absolute_dl=true&passed_id=$id&passed_ent_id=$entid&mailbox=$urlmailbox\">";
       echo _("Download this as a file");
-      echo "</A></CENTER><BR><BR></FONT><TT>";
+      echo "</A></CENTER><BR><BR><TT>";
       if ($type1 == "html")
          echo $body;
       else
@@ -35,7 +37,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