diff -Naur wapreader.orig/wapreader.php wapreader/wapreader.php --- wapreader.orig/wapreader.php 2006-10-24 10:44:17.000000000 +0200 +++ wapreader/wapreader.php 2006-12-05 01:08:55.000000000 +0100 @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -Version: 1.1.vmiklos +Version: 1.1.vmiklos2 Project home page: http://wapreader.dp.ua/ @@ -28,6 +28,15 @@ //--------------- config ----------------------------------- //---------------------------------------------------------- +function print_header() +{ + print(' + + + +'); +} + //Defaul imap/pop3 host. $host_default=""; @@ -80,6 +89,13 @@ } } +else if(empty($action) && !empty($_COOKIE["wapreader"])) { + $qs=explode(":", $_COOKIE["wapreader"]); + if(count($qs)>1) { + list($login, $password, $host, $protocol)=$qs; + $action="login"; + } +} if(!function_exists("imap_open")) { $action="error"; @@ -119,16 +135,16 @@ } else { @header("Content-type: text/vnd.wap.wml; charset=utf-8"); - echo "\n"; } - -?> - - - - -
?action=write&sid=">[new message >>>]
+?action=logout&sid=">[logout >>>]

name) < strtoupper($b->name)) ? -1 : 1; } +?>