File size: 1.78Kb
<?php
/****************************************************************
Copyright (c) 2004 GAN Ying Hung <[email protected]>,Rudi Pittman <[email protected]>, Gaston Annebicque <[email protected]>
Licensed under the GNU GPL. For full terms see the file COPYING.
gmail-mobile is a program to allow any wap enabled phone to read, compose
and reply to email using the free email service provided by Google
called GMAIL (http://gmail.google.com)
*****************************************************************/
$err = (isset($_REQUEST["err"]))?$_REQUEST["err"]:0;
$erra = array(0=>"",1=>"You have to sign-in first.", 10=>"Signin failed. Please check your login/password/cookie setting.");
$login = isset($_REQUEST["login"])?$_REQUEST["login"]:"";
$timezone = isset($_REQUEST["timezone"])?$_REQUEST["timezone"]:"+8";
@header("Content-type: text/vnd.wap.wml; charset=utf-8");
echo("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="gmail-mobile">
<p><b><? if ($err) echo $erra[$err] ?></b></p>
<p>login: <input name="login" type="text" value="<? echo $login ?>" /></p>
<p>password: <input name="pass" type="password" /></p>
<p>timezone: GMT <input value="<? echo $timezone ?>" name="tz" type="text" size="4" />:00</p>
<p>
<do type="accept">
<go method="POST" href="main.php">
<postfield name="login" value="$(login)" />
<postfield name="sum" value="1" />
<postfield name="pass" value="$(pass)" />
<postfield name="tz" value="$(tz)" />
</go>
</do>
</p>
<p align="right">
<do type="prev" label="[<<]">
<prev />
</do>
</p>
</card>
</wml>