Luke Ehresman преди 25 години
родител
ревизия
784885a602
променени са 12 файла, в които са добавени 46 реда и са изтрити 46 реда
  1. 1 1
      functions/array.php
  2. 1 1
      functions/date.php
  3. 3 3
      functions/display_messages.php
  4. 1 1
      functions/imap.php
  5. 2 2
      functions/mailbox.php
  6. 11 11
      functions/mailbox_display.php
  7. 3 3
      functions/page_header.php
  8. 5 5
      src/left_main.php
  9. 3 3
      src/login.php
  10. 11 11
      src/right_main.php
  11. 2 2
      src/signout.php
  12. 3 3
      src/webmail.php

+ 1 - 1
functions/array.php

@@ -1,6 +1,6 @@
 <?
    /**
-    **  array.php3
+    **  array.php
     **
     **  This contains functions that work with array manipulation.  They
     **  will help sort, and do other types of things with arrays

+ 1 - 1
functions/date.php

@@ -1,6 +1,6 @@
 <?
    /**
-    **  date.php3
+    **  date.php
     **
     **  Takes a date and parses it into a usable format.  The form that a
     **  date SHOULD arrive in is:

+ 3 - 3
functions/display_messages.php

@@ -1,6 +1,6 @@
 <?
    /**
-    **  display_messages.php3
+    **  display_messages.php
     **
     **  This contains all messages, including information, error, and just
     **  about any other message you can think of.
@@ -14,7 +14,7 @@
       echo "      <TD BGCOLOR=DCDCDC>";
       echo "         <FONT FACE=\"Arial,Helvetica\"><B><CENTER>ERROR</CENTER></B></FONT>";
       echo "   </TD></TR><TR><TD>";
-      echo "      <CENTER><FONT FACE=\"Arial,Helvetica\"><BR>Unknown user or password incorrect.<BR><A HREF=\"login.php3\" TARGET=_top>Click here to try again</A>.</FONT></CENTER>";
+      echo "      <CENTER><FONT FACE=\"Arial,Helvetica\"><BR>Unknown user or password incorrect.<BR><A HREF=\"login.php\" TARGET=_top>Click here to try again</A>.</FONT></CENTER>";
       echo "   </TD></TR>";
       echo "</TABLE>";
       echo "</BODY></HTML>";
@@ -47,4 +47,4 @@
       echo "</TABLE>";
       echo "</BODY></HTML>";
    }
-?>
+?>

+ 1 - 1
functions/imap.php

@@ -1,6 +1,6 @@
 <?
    /**
-    **  imap.php3
+    **  imap.php
     **
     **  Functions for the IMAP connection
     **

+ 2 - 2
functions/mailbox.php

@@ -1,6 +1,6 @@
 <?
    /**
-    **  mailbox.php3
+    **  mailbox.php
     **
     **  This contains functions that request information about a mailbox.  Including
     **  reading and parsing headers, getting folder information, etc.
@@ -120,4 +120,4 @@
 
       return $from;
    }
-?>
+?>

+ 11 - 11
functions/mailbox_display.php

@@ -1,6 +1,6 @@
 <?
    /**
-    **  mailbox_display.php3
+    **  mailbox_display.php
     **
     **  This contains functions that display mailbox information, such as the
     **  table row that has sender, date, subject, etc...
@@ -109,14 +109,14 @@
 
       echo "<TR BGCOLOR=FFFFFF><TD>";
       if (($nextGroup <= $numMessages) && ($prevGroup >= 0)) {
-         echo "<A HREF=\"right_main.php3?sort=$sort&startMessage=$prevGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">Previous</FONT></A>\n";
-         echo "<A HREF=\"right_main.php3?sort=$sort&startMessage=$nextGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">Next</FONT></A>\n";
+         echo "<A HREF=\"right_main.php?sort=$sort&startMessage=$prevGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">Previous</FONT></A>\n";
+         echo "<A HREF=\"right_main.php?sort=$sort&startMessage=$nextGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">Next</FONT></A>\n";
       }
       else if (($nextGroup > $numMessages) && ($prevGroup >= 0)) {
-         echo "<A HREF=\"right_main.php3?sort=$sort&startMessage=$prevGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">Previous</FONT></A>\n";
+         echo "<A HREF=\"right_main.php?sort=$sort&startMessage=$prevGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">Previous</FONT></A>\n";
       }
       else if (($nextGroup <= $numMessages) && ($prevGroup < 0)) {
-         echo "<A HREF=\"right_main.php3?sort=$sort&startMessage=$nextGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">Next</FONT></A>\n";
+         echo "<A HREF=\"right_main.php?sort=$sort&startMessage=$nextGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">Next</FONT></A>\n";
       }
       echo "</TD></TR>\n";
 
@@ -127,9 +127,9 @@
       echo "   <TD WIDTH=25%><FONT FACE=\"Arial,Helvetica\"><B>From</B></FONT></TD>";
       echo "   <TD WIDTH=15%><FONT FACE=\"Arial,Helvetica\"><B>Date</B></FONT>";
       if ($sort == 0)
-         echo "   <A HREF=\"right_main.php3?sort=1&startMessage=1&mailbox=$urlMailbox\" TARGET=\"right\"><IMG SRC=\"../images/up_pointer.gif\" BORDER=0></A></TD>\n";
+         echo "   <A HREF=\"right_main.php?sort=1&startMessage=1&mailbox=$urlMailbox\" TARGET=\"right\"><IMG SRC=\"../images/up_pointer.gif\" BORDER=0></A></TD>\n";
       else
-         echo "   <A HREF=\"right_main.php3?sort=0&startMessage=1&mailbox=$urlMailbox\" TARGET=\"right\"><IMG SRC=\"../images/down_pointer.gif\" BORDER=0></A></TD>\n";
+         echo "   <A HREF=\"right_main.php?sort=0&startMessage=1&mailbox=$urlMailbox\" TARGET=\"right\"><IMG SRC=\"../images/down_pointer.gif\" BORDER=0></A></TD>\n";
       echo "   <TD WIDTH=*><FONT FACE=\"Arial,Helvetica\"><B>Subject</B></FONT></TD>\n";
       echo "</TR>";
 
@@ -142,14 +142,14 @@
       echo "</TD></TR>\n";
       echo "<TR BGCOLOR=FFFFFF><TD>";
       if (($nextGroup <= $numMessages) && ($prevGroup >= 0)) {
-         echo "<A HREF=\"right_main.php3?sort=$sort&startMessage=$prevGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">Previous</FONT></A>\n";
-         echo "<A HREF=\"right_main.php3?sort=$sort&startMessage=$nextGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">Next</FONT></A>\n";
+         echo "<A HREF=\"right_main.php?sort=$sort&startMessage=$prevGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">Previous</FONT></A>\n";
+         echo "<A HREF=\"right_main.php?sort=$sort&startMessage=$nextGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">Next</FONT></A>\n";
       }
       else if (($nextGroup > $numMessages) && ($prevGroup >= 0)) {
-         echo "<A HREF=\"right_main.php3?sort=$sort&startMessage=$prevGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">Previous</FONT></A>\n";
+         echo "<A HREF=\"right_main.php?sort=$sort&startMessage=$prevGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">Previous</FONT></A>\n";
       }
       else if (($nextGroup <= $numMessages) && ($prevGroup < 0)) {
-         echo "<A HREF=\"right_main.php3?sort=$sort&startMessage=$nextGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">Next</FONT></A>\n";
+         echo "<A HREF=\"right_main.php?sort=$sort&startMessage=$nextGroup&mailbox=$urlMailbox\" TARGET=\"right\"><FONT FACE=\"Arial,Helvetica\">Next</FONT></A>\n";
       }
       echo "</TD></TR></TABLE>"; /** End of message-list table */
    }

+ 3 - 3
functions/page_header.php

@@ -1,6 +1,6 @@
 <?
    /**
-    **  page_header.php3
+    **  page_header.php
     **
     **  Prints the page header (duh)
     **
@@ -12,7 +12,7 @@
       echo "<TABLE BGCOLOR=FFFFFF BORDER=0 COLS=2 WIDTH=100% CELLSPACING=0 CELLPADDING=2>";
       echo "   <TR BGCOLOR=A0B8C8 WIDTH=50%>";
       echo "      <TD ALIGN=left>";
-      echo "         <FONT FACE=\"Arial,Helvetica\" SIZE=-1><A HREF=\"signout.php3\" TARGET=_top><B>Sign Out</B></A></FONT>";
+      echo "         <FONT FACE=\"Arial,Helvetica\" SIZE=-1><A HREF=\"signout.php\" TARGET=_top><B>Sign Out</B></A></FONT>";
       echo "      </TD><TD ALIGN=right WIDTH=50%>";
       echo "         <FONT FACE=\"Arial,Helvetica\"><div align=right>Current Folder: <B>$shortBoxName</div></B></FONT>";
       echo "      </TD>";
@@ -22,7 +22,7 @@
       echo "         <FONT FACE=\"Arial,Helvetica\">Addresses</FONT>&nbsp&nbsp";
       echo "         <FONT FACE=\"Arial,Helvetica\">Options</FONT>&nbsp&nbsp";
       echo "      </TD><TD ALIGN=right WIDTH=50%>";
-      echo "         <FONT FACE=\"Arial,Helvetica\"><A HREF=\"http://adam.usa.om.org/~luke/main.php3\" TARGET=_top>Todos & Bugs</A></FONT>&nbsp&nbsp";
+      echo "         <FONT FACE=\"Arial,Helvetica\"><A HREF=\"http://adam.usa.om.org/~luke/main.php\" TARGET=_top>Todos & Bugs</A></FONT>&nbsp&nbsp";
       echo "         <FONT FACE=\"Arial,Helvetica\">Help!</FONT>";
       echo "      </TD>";
       echo "</TABLE>";

+ 5 - 5
src/left_main.php

@@ -1,6 +1,6 @@
 <?
    /**
-    **  left_main.php3
+    **  left_main.php
     **
     **  This is the code for the left bar.  The left bar shows the folders
     **  available, and has cookie information.
@@ -34,9 +34,9 @@
 <BODY BGCOLOR=A0B8C8 TEXT="#000000" LINK="#0000EE" VLINK="#0000EE" ALINK="#0000EE" onUnLoad="unSetCookies()">
 <FONT FACE="Arial,Helvetica">
 <?
-   include("../config/config.php3");
-   include("../functions/strings.php3");
-   include("../functions/imap.php3");
+   include("../config/config.php");
+   include("../functions/strings.php");
+   include("../functions/imap.php");
 
    // *****************************************
    //    Parse the incoming mailbox name and return a string that is the FOLDER.MAILBOX
@@ -85,7 +85,7 @@
          echo "&nbsp;&nbsp;";
       
       $mailboxURL = urlencode($mailbox);
-      echo "<a href=\"right_main.php3?sort=0&startMessage=1&mailbox=$mailboxURL\" target=\"right\" style=\"text-decoration:none\"><FONT FACE=\"Arial,Helvetica\">";
+      echo "<a href=\"right_main.php?sort=0&startMessage=1&mailbox=$mailboxURL\" target=\"right\" style=\"text-decoration:none\"><FONT FACE=\"Arial,Helvetica\">";
       echo readShortMailboxName($mailbox, ".");
       echo "</FONT></a><br>\n";
    }

+ 3 - 3
src/login.php

@@ -1,6 +1,6 @@
 <?
    /**
-    **  login.php3
+    **  login.php
     **
     **  Very simple login screen that clears the cookie every time it's loaded
     **
@@ -13,9 +13,9 @@
 <HTML>
 <BODY BGCOLOR=FFFFFF>
 <?
-   include("../config/config.php3");
+   include("../config/config.php");
 
-   echo "<FORM ACTION=webmail.php3 METHOD=POST NAME=f>\n";
+   echo "<FORM ACTION=webmail.php METHOD=POST NAME=f>\n";
    echo "<CENTER><IMG SRC=\"$org_logo\"</CENTER>\n";
    echo "<CENTER><FONT FACE=\"Arial,Helvetica\" SIZE=-2>SquirrelMail version $version<BR>By Nathan and Luke Ehresman<BR></FONT><CENTER>\n";
    echo "<TABLE COLS=1 WIDTH=350>\n";

+ 11 - 11
src/right_main.php

@@ -1,6 +1,6 @@
 <?
    /**
-    **  right_main.php3
+    **  right_main.php
     **
     **  This is where the mailboxes are listed.  This controls most of what
     **  goes on in SquirrelMail.
@@ -8,7 +8,7 @@
     **/
 
    if(!isset($logged_in)) {
-      echo "You must <a href=\"login.php3\">login</a> first.";
+      echo "You must <a href=\"login.php\">login</a> first.";
       exit;
    }
    if(!isset($username) || !isset($key)) {
@@ -20,15 +20,15 @@
 <BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000EE" VLINK="#0000EE" ALINK="#0000EE">
 <FONT FACE="Arial,Helvetica">
 <?
-   include("../config/config.php3");
-   include("../functions/imap.php3");
-   include("../functions/strings.php3");
-   include("../functions/date.php3");
-   include("../functions/page_header.php3");
-   include("../functions/array.php3");
-   include("../functions/mailbox.php3");
-   include("../functions/mailbox_display.php3");
-   include("../functions/display_messages.php3");
+   include("../config/config.php");
+   include("../functions/imap.php");
+   include("../functions/strings.php");
+   include("../functions/date.php");
+   include("../functions/page_header.php");
+   include("../functions/array.php");
+   include("../functions/mailbox.php");
+   include("../functions/mailbox_display.php");
+   include("../functions/display_messages.php");
 
    /////////////////////////////////////////////////////////////////////////////////
    //

+ 2 - 2
src/signout.php

@@ -1,6 +1,6 @@
 <?
 	/**
-	 **  signout.php3
+	 **  signout.php
 	 **
 	 **  Clears the cookie, and logs them out.
 	 **
@@ -26,7 +26,7 @@
    echo "   <TR BGCOLOR=FFFFFF WIDTH=100%>";
    echo "      <TD ALIGN=CENTER>";
    echo "         <FONT FACE=\"Arial,Helvetica\"><BR>You have been successfully signed out.<BR></FONT>";
-   echo "         <FONT FACE=\"Arial,Helvetica\">Click here to <A HREF=\"login.php3\" TARGET=_top>log back in.</A></FONT><BR><BR>";
+   echo "         <FONT FACE=\"Arial,Helvetica\">Click here to <A HREF=\"login.php\" TARGET=_top>log back in.</A></FONT><BR><BR>";
    echo "      </TD>";
    echo "   </TR>";
    echo "   <TR BGCOLOR=DCDCDC WIDTH=100%>";

+ 3 - 3
src/webmail.php

@@ -1,6 +1,6 @@
 <?
    /**
-    **  webmail.php3
+    **  webmail.php
     **
     **  This simply creates the frames.
     **
@@ -20,7 +20,7 @@
 OM-USA WebMail
 </TITLE>
 <FRAMESET COLS="200, *" NORESIZE BORDER=0>
-   <FRAME SRC="left_main.php3" NAME="left">
-   <FRAME SRC="right_main.php3" NAME="right">
+   <FRAME SRC="left_main.php" NAME="left">
+   <FRAME SRC="right_main.php" NAME="right">
 </FRAMESET>
 </HEAD></HTML>