From f8a2afaba869f120909c7742abfe270756655e5b Mon Sep 17 00:00:00 2001 From: squirrel Date: Mon, 22 Nov 1999 00:32:55 +0000 Subject: [PATCH 1/1] Initial revision git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- .mailboxMessageList.php3.swp | Bin 0 -> 16384 bytes ATHORS | 2 + BUG | 4 + TODO | 15 ++ config/config.php3 | 16 ++ functions/array.php3 | 33 ++++ functions/date.php3 | 144 +++++++++++++++ functions/imap.php3 | 15 ++ functions/pageheader.php3 | 23 +++ functions/strings.php3 | 30 +++ images/button_next.gif | Bin 0 -> 281 bytes images/down_pointer.gif | Bin 0 -> 193 bytes images/om_mini_logo.gif | Bin 0 -> 1074 bytes images/om_webmail.gif | Bin 0 -> 7376 bytes images/om_webmail.png | Bin 0 -> 13315 bytes images/up_pointer.gif | Bin 0 -> 193 bytes index.html | 9 + left.php3 | 89 +++++++++ login.php3 | 51 ++++++ mailboxMessageList.php3 | 299 ++++++++++++++++++++++++++++++ mailboxMessageListtmp.php3 | 345 +++++++++++++++++++++++++++++++++++ signout.php3 | 34 ++++ webmail.php3 | 19 ++ 23 files changed, 1128 insertions(+) create mode 100644 .mailboxMessageList.php3.swp create mode 100644 ATHORS create mode 100644 BUG create mode 100644 TODO create mode 100644 config/config.php3 create mode 100644 functions/array.php3 create mode 100644 functions/date.php3 create mode 100644 functions/imap.php3 create mode 100644 functions/pageheader.php3 create mode 100644 functions/strings.php3 create mode 100644 images/button_next.gif create mode 100644 images/down_pointer.gif create mode 100644 images/om_mini_logo.gif create mode 100644 images/om_webmail.gif create mode 100644 images/om_webmail.png create mode 100644 images/up_pointer.gif create mode 100644 index.html create mode 100644 left.php3 create mode 100644 login.php3 create mode 100644 mailboxMessageList.php3 create mode 100644 mailboxMessageListtmp.php3 create mode 100644 signout.php3 create mode 100644 webmail.php3 diff --git a/.mailboxMessageList.php3.swp b/.mailboxMessageList.php3.swp new file mode 100644 index 0000000000000000000000000000000000000000..a94c0a29f592a64e918f29480d601cd385782771 GIT binary patch literal 16384 zcmeHOO>87b6)uu&fF&XcMB>1K=gzP@tD$GTk-d9;NvJD%BZ9mPz)#r6a$I@ z#eiZ!F`yVw3@8Q^1BwB~z6Pd?5n_+fyaUKz!dQIQO14?{1A8nXaN_1BfuZ-VC)ItEN~Qf?L%lE_%3iA z_$KfSZ~^!;wg~J{NGe!~Gf3jP-JDt==eaHfCqF0xd0(WjX;bh%(mDZHKn!QkRGI zs6bM%Ku1KjS94jp376S2~py(30lT=n#Ri`J7=FbkuaA^$$E3Ps5s$2ZVP$P zYLERich3NEH9I}q;e;Mhk=owS4fAoW1>pv1OSpi<63vh65Q`$8?+zTV!}A(xu)N@^ zu$U2*1ctud&r6B%`lUe94{;mmANh2Ar&ZU==j&SG#F@RGi6_}kCD!6T?>^@9fn&Cz zTeAS=v^@nUHlHby->=B%fE!nCk2uL~e!NTbFwE%!O~DuX@t09m9=3b5@es!7v11s= zawNso3h^@&#FxtzZNx~{U^vM!$D61cjg?hc@&On#qO$2~soUz)(=hWiEl@0$k0dDH zEW5!DXz5V1&bf;=A*BoQM&}UukyllC`i(kRxLu zX7F6bS!kB-PkSBLG}&QF!uZ>Va+snhvNfqlG|D5d$(r|EG&O7WSp5g!1tTLb)5ne( z@*6sM`o<2Pc`tPk-j20Lt3daIduRDx|6T6g>}<3O8W$^*i~{RVHhpBrvGp^Z*I4W_ z_?>7?+1V<(GTPby&RigMo7|^;+^40!cV(A)Oj0%yO$(bGX0%Jcr7}d?zO)aVf@a z_Qh&sXdkA-;Af!Q zxn9rEEEXa$l8r01dIRflI#KQK-O17we+pdZj+mhjSnAHorEW|1~-us@4gd7+Ma9KT|NGjN)#Vt#p=ez z235-|#*$X{ZPS@q<<32?2eeVd@|h* z4a^|e@%)aM>dbZ;U;)KBYyq*j9eZ4g!w1W>L&F`xxaLAT5Bvyw`WJxj15X2&flELEI4W@q{=Oya`irPfCB=YZKrx^g zPz)#r6a$I@#eiZ!F`yXuA2LwXrEi!W75$(&AAegjnL!y<~43g#~34tL9o>R%66q`vFeUaJsdn)hZg! zxJELnn;Ywytop;t7ZBLVrpB2NDae0}NT literal 0 HcmV?d00001 diff --git a/ATHORS b/ATHORS new file mode 100644 index 00000000..1ebe0685 --- /dev/null +++ b/ATHORS @@ -0,0 +1,2 @@ +Nathan Ehresman +Luke Ehresman diff --git a/BUG b/BUG new file mode 100644 index 00000000..e4d4e62f --- /dev/null +++ b/BUG @@ -0,0 +1,4 @@ +KNOWN BUGS +---------------------------------------- +- Subject in Nathan's INBOX message 757 is bad +- There are no grid lines in IE on message list diff --git a/TODO b/TODO new file mode 100644 index 00000000..0e7604f5 --- /dev/null +++ b/TODO @@ -0,0 +1,15 @@ +TODO +------------ +- Don't view "deleted" messages +- Write JavaScript for left side bar to auto log out on unload +- Todo manager +- Bug tracker +- Moving messages to folders +- Deleting messages (send to trash) +- Expunge mailboxes + + +DONE +------------ +- (nathan) Abstract header stuff so it can be used on all pages +- (luke) Genericize login page diff --git a/config/config.php3 b/config/config.php3 new file mode 100644 index 00000000..3797b6f4 --- /dev/null +++ b/config/config.php3 @@ -0,0 +1,16 @@ +Nathan or Luke."; + +/* SquirrelMail version number */ +$version = "0.0.1"; +?> diff --git a/functions/array.php3 b/functions/array.php3 new file mode 100644 index 00000000..18d0e83b --- /dev/null +++ b/functions/array.php3 @@ -0,0 +1,33 @@ +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 new file mode 100644 index 00000000..f9008689 --- /dev/null +++ b/functions/date.php3 @@ -0,0 +1,144 @@ + Mon, Tue, Wed + // $dateParts[1] == 23 + // $dateParts[2] == Jan, Feb, Mar + // $dateParts[3] == 1999 + // $dateParts[4] ==