updating directory structure
authorsquirrel <squirrel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 22 Nov 1999 16:25:31 +0000 (16:25 +0000)
committersquirrel <squirrel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 22 Nov 1999 16:25:31 +0000 (16:25 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11 7612ce4b-ef26-0410-bec9-ea0150e637f0

12 files changed:
config/config.php3 [deleted file]
functions/array.php3 [deleted file]
functions/date.php3 [deleted file]
functions/imap.php3 [deleted file]
functions/pageheader.php3 [deleted file]
functions/strings.php3 [deleted file]
images/button_next.gif [deleted file]
images/down_pointer.gif [deleted file]
images/om_mini_logo.gif [deleted file]
images/om_webmail.gif [deleted file]
images/om_webmail.png [deleted file]
images/up_pointer.gif [deleted file]

diff --git a/config/config.php3 b/config/config.php3
deleted file mode 100644 (file)
index 3797b6f..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<?
-/* Organization's logo picture (blank if none) */
-$org_logo = "images/om_webmail.gif";
-
-/* Organization's name */
-$org_name = "Operation Mobilization";
-
-/* The server that your imap server is on */
-$imapServerAddress = "adam.usa.om.org";
-
-/* This is displayed right after they log in */
-$motd = "  Welcome to OM's webmail system, SquirrelMail.  We are currently in beta, and have not yet released a full version of SquirrelMail.  Please feel free to look around, and please report any bugs to <A HREF=\"mailto:nathan@usa.om.org\">Nathan</A> or <A HREF=\"mailto:luke@usa.om.org\">Luke</A>.";
-
-/* SquirrelMail version number */
-$version = "0.0.1";
-?>
diff --git a/functions/array.php3 b/functions/array.php3
deleted file mode 100644 (file)
index 18d0e83..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<?
-   function ary_sort($ary,$col, $dir = 1){
-      // The globals are used because USORT determines what is passed to comp2
-      // These should be $this->col and $this->dir in a class
-      // Would beat using globals
-      if(!is_array($col)){
-         $col = array("$col");
-      }
-      $GLOBALS["col"] = $col;  // Column or Columns as an array
-      $GLOBALS["dir"] = $dir;  // Direction, a positive number for ascending a negative for descending
-  
-      function comp2($a,$b,$i = 0) {
-         global $col;
-         global $dir;
-         $c = count($col) -1;
-         if ($a["$col[$i]"] == $b["$col[$i]"]){
-            $r = 0;
-            while($i < $c && $r == 0){
-               $i++;
-               $r = comp2($a,$b,$i);
-            }
-         } elseif($a["$col[$i]"] < $b["$col[$i]"]){
-            $r = -1 * $dir; // Im not sure why you must * dir here, but it wont work just before the return...
-         } else {
-            $r = 1 * $dir;
-         }
-         return $r;
-      }
-  
-      usort($ary,comp2);
-      return $ary;
-   }
-?>
diff --git a/functions/date.php3 b/functions/date.php3
deleted file mode 100644 (file)
index f900868..0000000
+++ /dev/null
@@ -1,144 +0,0 @@
-<?
-   //*************************************************************************
-   // Takes a date and parses it into usable format
-   //
-   // Tue, 29 Jun 1999 09:52:11 -0500 (EDT)
-   //
-   // $dateParts[0] == <day of week>   Mon, Tue, Wed
-   // $dateParts[1] == <day of month>  23
-   // $dateParts[2] == <month>         Jan, Feb, Mar
-   // $dateParts[3] == <year>          1999
-   // $dateParts[4] == <time>          18:54:23 (HH:MM:SS)
-   // $dateParts[5] == <from GMT>      +0100
-   // $dateParts[6] == <zone>          (EDT)
-   //
-   //*************************************************************************
-
-   function getHour($hour) {
-      $time = explode(":", $hour);
-      return $time[0];
-   }
-
-   function getMinute($min) {
-      $time = explode(":", $min);
-      return $time[1];
-   }
-
-   function getSecond($sec) {
-      $time = explode(":", $sec);
-      return $time[2];
-   }
-
-   function getMonthNum($month) {
-      if (eregi("jan|january", $month, $tmp))
-         $date = "01";
-      else if (eregi("feb|february|febuary", $month, $tmp))
-         $date = "02";
-      else if (eregi("mar|march", $month, $tmp))
-         $date = "03";
-      else if (eregi("apr|april", $month, $tmp))
-         $date = "04";
-      else if (eregi("may", $month, $tmp))
-         $date = "05";
-      else if (eregi("jun|june", $month, $tmp))
-         $date = "06";
-      else if (eregi("jul|july", $month, $tmp))
-         $date = "07";
-      else if (eregi("aug|august", $month, $tmp))
-         $date = "08";
-      else if (eregi("sep|sept|september", $month, $tmp))
-         $date = "09";
-      else if (eregi("oct|october", $month, $tmp))
-         $date = "10";
-      else if (eregi("nov|november", $month, $tmp))
-         $date = "11";
-      else if (eregi("dec|december", $month, $tmp))
-         $date = "12";
-
-      return $date;
-   }
-
-   function getDayOfWeek($day) {
-      $date = "{WEEKDAY}";
-
-      if (eregi("(mon|monday)", $day, $tmp))
-         $date = "Mon";
-      else if (eregi("(tue|tuesday)", $day, $tmp))
-         $date = "Tue";
-      else if (eregi("(wed|wednesday)", $day, $tmp))
-         $date = "Wed";
-      else if (eregi("(thurs|thu|thursday)", $day, $tmp))
-         $date = "Thu";
-      else if (eregi("(fri|friday)", $day, $tmp))
-         $date = "Fri";
-      else if (eregi("(sat|saturday)", $day, $tmp))
-         $date = "Sat";
-      else if (eregi("(sun|sunday)", $day, $tmp))
-         $date = "Sun";
-
-      return $date;
-   }
-
-   function getDayOfMonth($day) {
-      return ereg_replace("^0", "", $day); /* remove a preceeding 0 */
-   }
-
-   function getMonth($month) {
-      $date = "{MONTH}";
-      if (eregi("jan|january", $month, $tmp))
-         $date = "Jan";
-      else if (eregi("feb|february|febuary", $month, $tmp))
-         $date = "Feb";
-      else if (eregi("mar|march", $month, $tmp))
-         $date = "Mar";
-      else if (eregi("apr|april", $month, $tmp))
-         $date = "Apr";
-      else if (eregi("may", $month, $tmp))
-         $date = "May";
-      else if (eregi("jun|june", $month, $tmp))
-         $date = "Jun";
-      else if (eregi("jul|july", $month, $tmp))
-         $date = "Jul";
-      else if (eregi("aug|august", $month, $tmp))
-         $date = "Aug";
-      else if (eregi("sep|sept|september", $month, $tmp))
-         $date = "Sep";
-      else if (eregi("oct|october", $month, $tmp))
-         $date = "Oct";
-      else if (eregi("nov|november", $month, $tmp))
-         $date = "Nov";
-      else if (eregi("dec|december", $month, $tmp))
-         $date = "Dec";
-
-      return $date;
-   }
-
-   function getYear($year) {
-      return $year;
-   }
-
-   function getDateString($dateParts) {
-      /* if the first part is a day */
-      if (eregi("mon|tue|wed|thu|fri|sat|sun", $dateParts[0], $tmp)) {
-         $dateParts[0] = getDayOfWeek($dateParts[0]);
-         $dateParts[1] = getDayOfMonth($dateParts[1]);
-         $dateParts[2] = getMonth($dateParts[2]);
-         $dateParts[3] = getYear($dateParts[3]);
-         return "$dateParts[2] $dateParts[1], $dateParts[3]";
-      }
-      $dateParts[0] = getDayOfMonth($dateParts[0]);
-      $dateParts[1] = getMonth($dateParts[1]);
-      $dateParts[2] = getYear($dateParts[2]);
-      return "$dateParts[1] $dateParts[0], $dateParts[2]";
-   }
-
-   function getTimeStamp($dateParts) {
-      $d[0] = getHour($dateParts[4]);
-      $d[1] = getMinute($dateParts[4]);
-      $d[2] = getSecond($dateParts[4]);
-      $d[3] = getMonthNum($dateParts[2]);
-      $d[4] = getDayOfMonth($dateParts[1]);
-      $d[5] = getYear($dateParts[3]);
-      return mktime($d[0], $d[1], $d[2], $d[3], $d[4], $d[5]);
-   }
-?>
diff --git a/functions/imap.php3 b/functions/imap.php3
deleted file mode 100644 (file)
index 33140bf..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<?
-   // *****************************************
-   //    Read from the connection until we get either an OK or BAD message.
-   // *****************************************
-   function imapReadData($connection) {
-      $read = fgets($connection, 1024);
-      $counter = 0;
-      while ((substr($read, strpos($read, " ") + 1, 2) != "OK") && (substr($read, strpos($read, " ") + 1, 3) != "BAD")) {
-         $data[$counter] = $read;
-         $read = fgets($connection, 1024);
-         $counter++;
-      }
-      return $data;
-   }
-?>
diff --git a/functions/pageheader.php3 b/functions/pageheader.php3
deleted file mode 100644 (file)
index 031a376..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?
-   function displayPageHeader($mailbox) {
-      /** Here is the header and wrapping table **/
-      $shortBoxName = readShortMailboxName($mailbox, ".");
-      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 "      </TD><TD ALIGN=right WIDTH=50%>";
-      echo "         <FONT FACE=\"Arial,Helvetica\"><div align=right>Current Folder: <B>$shortBoxName</div></B></FONT>";
-      echo "      </TD>";
-      echo "   </TR><TR>";
-      echo "      <TD ALIGN=left WIDTH=50%>";
-      echo "         <FONT FACE=\"Arial,Helvetica\">Compose</FONT>&nbsp&nbsp";
-      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\">Help!</FONT>";
-      echo "      </TD>";
-      echo "</TABLE>";
-  }
-?>
diff --git a/functions/strings.php3 b/functions/strings.php3
deleted file mode 100644 (file)
index c7b6544..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<?
-   //*************************************************************************
-   // Count the number of occurances of $needle are in $haystack.
-   //*************************************************************************
-   function countCharInString($haystack, $needle) {
-      $len = strlen($haystack);
-      for ($i = 0; $i < $len; $i++) {
-         if ($haystack[$i] == $needle)
-            $count++;
-      }
-      return $count;
-   }
-
-   //*************************************************************************
-   // Read from the back of $haystack until $needle is found, or the begining
-   //    of the $haystack is reached.
-   //*************************************************************************
-   function readShortMailboxName($haystack, $needle) {
-      $len = strlen($haystack);
-      for ($i = $len - 1; ($i >= 0) && (!$found);$i--) {
-         $char = $haystack[$i];
-         if ($char == $needle)
-            $found = 1;
-         else
-            $data .= $char;
-      }
-      return strrev($data);
-   }
-
-?>
diff --git a/images/button_next.gif b/images/button_next.gif
deleted file mode 100644 (file)
index bf75b2f..0000000
Binary files a/images/button_next.gif and /dev/null differ
diff --git a/images/down_pointer.gif b/images/down_pointer.gif
deleted file mode 100644 (file)
index bc2d251..0000000
Binary files a/images/down_pointer.gif and /dev/null differ
diff --git a/images/om_mini_logo.gif b/images/om_mini_logo.gif
deleted file mode 100644 (file)
index 67c220b..0000000
Binary files a/images/om_mini_logo.gif and /dev/null differ
diff --git a/images/om_webmail.gif b/images/om_webmail.gif
deleted file mode 100644 (file)
index be940c7..0000000
Binary files a/images/om_webmail.gif and /dev/null differ
diff --git a/images/om_webmail.png b/images/om_webmail.png
deleted file mode 100644 (file)
index 2851788..0000000
Binary files a/images/om_webmail.png and /dev/null differ
diff --git a/images/up_pointer.gif b/images/up_pointer.gif
deleted file mode 100644 (file)
index a7eb5a5..0000000
Binary files a/images/up_pointer.gif and /dev/null differ