for deleted mail to something that works on Blackberries // // v0.2, Mar 14 04 // - fixed bug where mailbox has less than 14 pieces of mail // - fixed bug where mail showed up even when deleted // - added 'type=password' to the password field // - added 'You have no mail' when you, er, have no mail // // http://james.cridland.net/code // // You're free to use this, but please keep this URL intact //////////////////////////////////////////////////// //////////////////////////////////////////////////// // Tiddly configs: // This site - for setting the cookie. // Example: "www.yahoo.com"; $site = "www.yahoo.com"; // Where will this script run? // You need to include this here. // Example "/mail/" $where = "/mail/"; // Advanced configuration. You don't need to fiddle unless you want to. $heightofpage = "8"; $widthofpage = "45"; // These are the defaults for the height and width of the page. Users // can still change them should they wish. // That's all the config you need //////////////////////////////////////////////////// //Compress this page ob_start( 'ob_gzhandler' ); //Set no caching header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); //Add correct encoding charset to enable validation //header ("Content-Type: text/html; charset=ISO-8859-1"); if ($action==setcookie) { //Set the cookie setcookie("mailusername",$setmailusername,time()+60*60*24*365,$where,$site); setcookie("mailpassword",$setmailpassword,time()+60*60*24*365,$where,$site); setcookie("mailemail",$setmailemail,time()+60*60*24*365,$where,$site); setcookie("mailname",$setmailname,time()+60*60*24*365,$where,$site); setcookie("mailserver",$setmailserver,time()+60*60*24*365,$where,$site); setcookie("widthofpage",$setwidthofpage,time()+60*60*24*365,$where,$site); setcookie("heightofpage",$setheightofpage,time()+60*60*24*365,$where,$site); //...and also set the variables as if they've been set by the cookie $mailusername=$setmailusername; $mailpassword=$setmailpassword; $mailemail=$setmailemail; $mailname=$setmailname; $mailserver=$setmailserver; $widthofpage=$setwidthofpage; $heightofpage=$setheightofpage; $action="list"; } if ($action==logout) { //Log out only deletes the mail password cookie setcookie("mailpassword",'',time()-1000,$where,$site); $action="loggedout"; } if ($action==fulllogout) { //Full logout deletes everything setcookie("mailusername",'',time()-1000,$where,$site); setcookie("mailpassword",'',time()-1000,$where,$site); setcookie("mailemail",'',time()-1000,$where,$site); setcookie("mailname",'',time()-1000,$where,$site); setcookie("mailserver",'',time()-1000,$where,$site); setcookie("widthofpage",'',time()-1000,$where,$site); setcookie("heightofpage",'',time()-1000,$where,$site); $action="fullloggedout"; } //Start the HTML page echo "
Privacy info
This service does not use any databases, and does not store your information in any way.
All login information is stored in a cookie on your own machine, and not stored on this server.
All activity with this server is not sent securely. You use this at your own risk.
"; die; } if ($action=="loggedout") { echo "Logged out.
All your details except your password still live in a cookie on your Blackberry, for ease of logging in next time. To delete them all, click this.
Have a good day!