View file wapirate/wml/guest/index.php

File size: 19.73Kb
<?php



include("../captainsafeconfig.php");

include("captainsafecore.php");

header("Content-type: text/vnd.wap.wml");

header("Cache-Control: no-store, no-cache, must-revalidate");

echo("<?xml version=\"1.0\"?>");

echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";

?>

<wml>

<?php

$bcon = connectdb();

if (!$bcon){

echo "<card id=\"main\" title=\"$sitename (ERROR!)\">";

echo "<p align=\"center\">";

echo "<img src=\"images/error.gif\" alt=\"*\"/><br/>";

echo "ERROR! cannot connect to database<br/><br/>";

echo "This error usually happens when backing up the database, please be patient, The site will be up as soon as possible<br/><br/>";

echo "You can temporary use our other <a href=\"http://wapirate.mygamesonline.org/chat/index.php\">chatroom</a> while wapirate is offline<br/>";

echo "<b>THANK YOU VERY MUCH</b>";

echo "</p>";

echo "</card>";

echo "</wml>";

exit();

}

$action = $_GET["action"];

$sid = $_GET["sid"];

$page = $_GET["page"];

$who = $_GET["who"];

$uid = getuid_sid($sid);

cleardata();

if(isipbanned($uip,$ubr)){

if(!isshield(getuid_sid($sid))){

echo "<card id=\"main\" title=\"$sitename\">";

echo "<p align=\"center\">";

echo "<img src=\"images/notok.gif\" alt=\"x\"/><br/>";

echo "This IP address is blocked<br/>";

echo "<br/>";

echo "However we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to login, if you keep coming to this page that means you are not shielded, so come back when the IP-Ban period is over<br/><br/>";

$banto = mysql_fetch_array(mysql_query("SELECT  timeto FROM ibwf_penalties WHERE  penalty='2' AND ipadd='".$uip."' AND browserm='".$ubr."' LIMIT 1 "));

$remain =  $banto[0] - time();

$rmsg = gettimemsg($remain);

echo "Time to unblock the IP: $rmsg<br/><br/>";

echo "</p>";

echo "<p>";

echo "UserID: <input name=\"loguid\" format=\"*x\" maxlength=\"30\"/><br/>";

echo "Password: <input type=\"password\" name=\"logpwd\"  maxlength=\"30\"/><br/>";

echo "<anchor>LOGIN<go href=\"login.php\" method=\"get\">";

echo "<postfield name=\"loguid\" value=\"$(loguid)\"/>";

echo "<postfield name=\"logpwd\" value=\"$(logpwd)\"/>";

echo "</go></anchor>";

echo "</p>";

echo "</card>";

echo "</wml>";

exit();

}

}



//echo isbanned($uid);

if(isbanned($uid)){

echo "<card id=\"main\" title=\"$sitename\">";

echo "<p align=\"center\">";

echo "<img src=\"images/notok.gif\" alt=\"x\"/><br/>";

echo "You are <b>Banned</b><br/>";

$banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1'"));

$banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'"));

$remain = $banto[0]- time();

$rmsg = gettimemsg($remain);

echo "Time to finish your penalty: $rmsg<br/><br/>";

echo "Ban Reason: $banres[0]";

echo "</p>";

echo "</card>";

echo "</wml>";

exit();

}



////////////////////////////////////////////////////forums menu

if ($action=="forumsmenu")           {



		echo "<card id=\"forumview\" title=\"wapirate\">";

  

  echo "<p align=\"center\">";



echo "<small>";

echo getshoutbox($sid);

echo "</small></p>";

  echo "<p><small>";

  $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id");

  $iml = "<img src=\"images/1.gif\" alt=\"*\"/>";

  while($fcat=mysql_fetch_array($fcats))

  {

    $catlink = "<a href=\"index.php?action=viewcat&amp;cid=$fcat[0]\">$iml$fcat[1]</a>";

    echo "<br/>$catlink";

    $forums = mysql_query("SELECT id, name FROM ibwf_forums WHERE cid='".$fcat[0]."' AND clubid='0' ORDER BY position, id, name");

    if(getfview()==0)

    {

    echo "<br/><small>";

    while($forum=mysql_fetch_array($forums))

        {

      if(canaccess(getuid_sid($sid),$forum[0]))

      {

        

      echo "<a href=\"index.php?action=viewfrm&amp;fid=$forum[0]\">$forum[1]</a>, ";

      }

    }

    echo "</small>";

    }else if(getfview()==20)

    {

      echo "<br/>Forums: <select name=\"fid\">";

      while($forum=mysql_fetch_array($forums))

        {

      if(canaccess(getuid_sid($sid),$forum[0]))

      {

        $notp = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE fid='".$forum[0]."'"));

      echo "<option value=\"$forum[0]\">$forum[1] [$notp[0]]</option>";

      }

      }

      echo "</select>";

      echo "<anchor>[GO]";

      echo "<go href=\"index.php\" method=\"get\">";

      echo "<postfield name=\"action\" value=\"viewfrm\"/>";

      echo "<postfield name=\"sid\" value=\"$sid\"/>";

      echo "<postfield name=\"fid\" value=\"$(fid)\"/>";

      echo "</go>";

      echo "</anchor>";

    }

    

  }

  echo "</small></p>";

  echo "<p align=\"center\">";

  echo "<br/><a href=\"index.php?action=main\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a><br/>";

        echo "</p>";

        echo "</card>";

		}



//////////////////////////////////View category



else if($action=="viewcat"){

$cid = $_GET["cid"];

$cinfo = mysql_fetch_array(mysql_query("SELECT name from ibwf_fcats WHERE id='".$cid."'"));

echo "<card id=\"main\" title=\"$cinfo[0]\">";

echo "<p align=\"center\">";



echo "<small>";

echo getshoutbox($sid);

echo "</small>";

echo "</p>";

echo "<p>";

$forums = mysql_query("SELECT id, name FROM ibwf_forums WHERE cid='".$cid."' AND clubid='0' ORDER BY position, id, name");

echo "<small>";

while($forum = mysql_fetch_array($forums)){

if(canaccess(getuid_sid($sid), $forum[0])){

$notp = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE fid='".$forum[0]."'"));

$nops = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts a INNER JOIN ibwf_topics b ON a.tid = b.id WHERE b.fid='".$forum[0]."'"));

$iml = "<img src=\"images/1.gif\" alt=\"*\"/>";

echo "<a href=\"index.php?action=viewfrm&amp;fid=$forum[0]\">$iml$forum[1] [$notp[0]/$nops[0]]</a><br/>";

$lpt = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_topics WHERE fid='".$forum[0]."' ORDER BY lastpost DESC LIMIT 0,1"));

$nops = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE tid='".$lpt[0]."'"));

if($nops[0]==0){

$pinfo = mysql_fetch_array(mysql_query("SELECT authorid FROM ibwf_topics WHERE id='".$lpt[0]."'"));

$tluid = $pinfo[0];

}else{

$pinfo = mysql_fetch_array(mysql_query("SELECT  uid  FROM ibwf_posts WHERE tid='".$lpt[0]."' ORDER BY dtpost DESC LIMIT 0, 1"));

$tluid = $pinfo[0];

}

$tlnm = htmlspecialchars($lpt[1]);

$tlnick = getnick_uid($tluid);

$tpclnk = "<a href=\"index.php?action=viewtpc&amp;tid=$lpt[0]&amp;go=last\">$tlnm</a>";

$vulnk = "<a href=\"index.php?action=viewuser&amp;who=$tluid\">$tlnick</a>";

echo "Last Post: $tpclnk, BY: $vulnk<br/><br/>";

}

}

echo "</small>";

echo "</p>";

echo "<p align=\"center\">";



echo "<a href=\"index.php?action=forumsmenu\"><img src=\"images/Forums.gif\" alt=\"*\"/>Forums</a><br/>";

echo "<a href=\"index.php?action=main\"><img src=\"images/home.gif\" alt=\"*\"/>";

echo "Home</a>";

echo "</p>";

echo "</card>";

}



//////////////////////////////////View Topic



else if($action=="viewtpc"){

$tid = $_GET["tid"];

$go = $_GET["go"];

$tfid = mysql_fetch_array(mysql_query("SELECT fid FROM ibwf_topics WHERE id='".$tid."'"));

if(!canaccess(getuid_sid($sid), $tfid[0])){

echo "<card id=\"main\" title=\"$sitename\">";

echo "<p align=\"center\">";

echo "You Don't Have Permission To View The Contents Of This Forum<br/><br/>";

echo "<a href=\"index.php?action=main\">Home</a>";

echo "</p>";

echo "</card>";

echo "</wml>";

exit();

}

$tinfo = mysql_fetch_array(mysql_query("SELECT name, text, authorid, crdate, views, fid, pollid from ibwf_topics WHERE id='".$tid."'"));

$tnm = htmlspecialchars($tinfo[0]);

echo "<card id=\"main\" title=\"$tnm\">";

echo "<p align=\"center\">";



echo "<small>";

echo getshoutbox($sid);

echo "</small><br/><br/>";

$num_pages = getnumpages($tid);

if($page==""||$page<1)$page=1;

if($go!="")$page=getpage_go($go,$tid);

$posts_per_page = 5;

if($page>$num_pages)$page=$num_pages;

$limit_start = $posts_per_page *($page-1);

echo "<a href=\"index.php?action=post&amp;tid=$tid\">Post Reply</a>";

$lastlink = "<a href=\"index.php?action=$action&amp;tid=$tid&amp;go=last\">Last Page</a>";

$firstlink = "<a href=\"index.php?action=$action&amp;tid=$tid&amp;page=1\">First Page</a> ";

$golink = "";

if($page>1){

$golink = $firstlink;

}

if($page<$num_pages){

$golink .= $lastlink;

}

if($golink !=""){

echo "<br/>$golink";

}

echo "</p>";

echo "<p>";

$vws = $tinfo[4]+1;

$rpls = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE tid='".$tid."'"));

echo "<small>Replies: $rpls[0] - Views: $vws</small><br/>";

///fm here

if($page==1){

$posts_per_page=4;

mysql_query("UPDATE ibwf_topics SET views='".$vws."' WHERE  id='".$tid."'");

$ttext = mysql_fetch_array(mysql_query("SELECT authorid, text, crdate, pollid FROM ibwf_topics WHERE id='".$tid."'"));

$unick = getnick_uid($ttext[0]);

if(isonline($ttext[0])){

$iml = "<img src=\"images/onl.gif\" alt=\"+\"/>";

}else{

$iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>";

}

$usl = "<br/><a href=\"index.php?action=viewuser&amp;who=$ttext[0]\">$iml$unick</a>";

$topt = "<a href=\"index.php?action=tpcopt&amp;tid=$tid\">*</a>";

if($go==$tid){

$fli = "<img src=\"images/flag.gif\" alt=\"!\"/>";

}else{

$fli ="";

}

$pst = parsemsg($ttext[1],$sid);

echo "$usl: $fli$pst $topt<br/>";

////

$path = mysql_fetch_array(mysql_query("SELECT path, hits, size, filename FROM download_topic WHERE tid='".$tid."'"));

$osize = round($path[2],1);

if($osize>1023)

{

$msize = $osize / 1024;

$nsize = round($msize,2);

$size = "$nsize mb";

}else{

$size = "$osize kb";

}

if($path[1]==1)

{

$views = "1 view";

}else{

$views = "$path[1] views";

}

if($path[0]==""){

$hmm = "";

}else{

$hmm = "<small>&#187;Attatchment<br/>&#187;<a href=\"index.php\">$path[3]</a> ($size / $views)</small><br/>";

}

echo "$hmm";

////

$dtot = date("d-m-y - H:i:s",$ttext[2]);

echo $dtot;

echo "<br/>";

if($ttext[3]>0){

echo "<a href=\"index.php?action=viewtpl&amp;who=$tid\">POLL</a><br/>";

}

}

if($page>1){

$limit_start--;

}

$sql = "SELECT id, text, uid, dtpost, quote FROM ibwf_posts WHERE tid='".$tid."' ORDER BY dtpost LIMIT $limit_start, $posts_per_page";

$posts = mysql_query($sql);

while($post = mysql_fetch_array($posts)){

$unick = getnick_uid($post[2]);

if(isonline($post[2])){

$iml = "<img src=\"images/onl.gif\" alt=\"+\"/>";

}else{

$iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>";

}

$usl = "<br/><a href=\"index.php?action=viewuser&amp;who=$post[2]\">$iml$unick</a>";

$pst = parsemsg($post[1], $sid);

$topt = "<a href=\"index.php?action=pstopt&amp;pid=$post[0]&amp;page=$page&amp;fid=$tinfo[5]\">*</a>";

if($post[4]>0){

$qtl = "<small><i><a href=\"index.php?action=viewtpc&amp;tid=$tid&amp;pst=\">(quote:p=wapirate,d=16-04-2006)</a></i></small>";

}

if($go==$post[0]){

$fli = "<img src=\"images/flag.gif\" alt=\"!\"/>";

}else{

$fli ="";

}

echo "$usl: $fli$pst $topt<br/>";

///////////

$path = mysql_fetch_array(mysql_query("SELECT path, hits, size, filename FROM download_post WHERE pid='".$post[0]."'"));

//$size = round($path[2],0);

$osize = round($path[2],1);

if($osize>1023)

{

$msize = $osize / 1024;

$nsize = round($msize,2);

$size = "$nsize mb";

}else{

$size = "$osize kb";

}

if($path[1]==1)

{

$views = "1 view";

}else{

$views = "$path[1] views";

}

if($path[0]==""){

$hmm = "";

}else{

$hmm = "<small>&#187;Attatchment<br/>&#187;<a href=\"index.php\">$path[3]</a> ($size / $views)</small><br/>";

}

echo "$hmm";

////////////

$dtot = date("d-m-y - H:i:s",$post[3]);

echo $dtot;

echo "<br/>";

}

echo "</p>";

echo "<p align=\"center\">";

if($page>1){

$ppage = $page-1;

echo "<a href=\"index.php?action=viewtpc&amp;page=$ppage&amp;tid=$tid\">&#171;PREV</a> ";

}

if($page<$num_pages){

$npage = $page+1;

echo "<a href=\"index.php?action=viewtpc&amp;page=$npage&amp;tid=$tid\">Next&#187;</a>";

}

echo "<br/>$page/$num_pages<br/>";

if($num_pages>2){

$rets = "Jump To Page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";

$rets .= "<anchor>[GO]";

$rets .= "<go href=\"index.php\" method=\"get\">";

$rets .= "<postfield name=\"action\" value=\"$action\"/>";

$rets .= "<postfield name=\"tid\" value=\"$tid\"/>";

$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";

$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";

$rets .= "</go></anchor>";

echo $rets;

}

echo "<br/>";

echo "<a href=\"index.php?action=post&amp;tid=$tid\">Post Reply</a>";

echo "</p>";

echo "<p><small>";

$fid = $tinfo[5];

$fname = getfname($fid);

$cid = mysql_fetch_array(mysql_query("SELECT cid FROM ibwf_forums WHERE id='".$fid."'"));

$cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_fcats WHERE id='".$cid[0]."'"));

$cname = $cinfo[0];

echo "<a href=\"index.php?action=main\">";

echo "Home</a>>";

echo "<a href=\"index.php?action=forumsmenu\">Forums</a>><br/>";

$cid = mysql_fetch_array(mysql_query("SELECT cid FROM ibwf_forums WHERE id='".$fid."'"));

if($cid[0]>0){

$cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_fcats WHERE id='".$cid[0]."'"));

$cname = htmlspecialchars($cinfo[0]);

echo "<a href=\"index.php?action=viewcat&amp;cid=$cid[0]\">";

echo "$cname</a><br/>";

}else{

$cid = mysql_fetch_array(mysql_query("SELECT clubid FROM ibwf_forums WHERE id='".$fid."'"));

$cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_clubs WHERE id='".$cid[0]."'"));

$cname = htmlspecialchars($cinfo[0]);

echo "<a href=\"index.php?action=gocl&amp;clid=$cid[0]\">";

echo "$cname Club</a><br/>";

}

$fname = htmlspecialchars($fname);

echo "><a href=\"index.php?action=viewfrm&amp;fid=$fid\">$fname</a>>$tnm";

echo "</small></p>";

echo "</card>";

}

//////////////////////////////////View Forum



else if($action=="viewfrm"){

$fid = $_GET["fid"];

if(!canaccess(getuid_sid($sid), $fid)){

echo "<card id=\"main\" title=\"$sitename\">";

echo "<p align=\"center\">";

echo "You Don't Have Permission To View The Contents Of This Forum<br/><br/>";

echo "<a href=\"index.php?action=main\">Home</a>";

echo "</p>";

echo "</card>";

echo "</wml>";

exit();

}

$finfo = mysql_fetch_array(mysql_query("SELECT name from ibwf_forums WHERE id='".$fid."'"));

$fnm = htmlspecialchars($finfo[0]);

echo "<card id=\"main\" title=\"$fnm\">";

echo "<p align=\"center\">";

$norf = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_rss WHERE fid='".$fid."'"));

if($norf[0]>0){

echo "<a href=\"index.php\"><img src=\"images/rss.gif\" alt=\"rss\"/>$finfo[0] Extras</a><br/>";

}



echo "<small>";

echo getshoutbox($sid);

echo "</small><br/><br/>";

echo "<a href=\"index.php?action=newtopic&amp;fid=$fid\">New Topic</a>";

echo "</p>";

echo "<p>";

echo "<small>";

if($page=="" || $page<=0)$page=1;

if($page==1){



///////////////////////pinned topics



$topics = mysql_query("SELECT id, name, closed, views, pollid FROM ibwf_topics WHERE fid='".$fid."' AND pinned='1' ORDER BY lastpost DESC, name, id LIMIT 0,5");

while($topic = mysql_fetch_array($topics)){

$iml = "<img src=\"images/normal.gif\" alt=\"*\"/>";

$iml = "*";

$atxt ="";

if($topic[2]=='1'){

$atxt = "(X)";

}

if($topic[4]>0){

$pltx = "(P)";

}else{

$pltx = "";

}

$tnm = htmlspecialchars($topic[1]);

$nop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE tid='".$topic[0]."'"));

echo "<a href=\"index.php?action=viewtpc&amp;tid=$topic[0]\">$iml$pltx$tnm($nop[0])$atxt</a> &#187;<a href=\"index.php?action=viewtpc&amp;go=last&amp;tid=$topic[0]\">&#187;</a><br/>";

}

echo "<br/>";

}

$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE fid='".$fid."' AND pinned='0'"));

$num_items = $noi[0]; //changable

$items_per_page= 10;

$num_pages = ceil($num_items/$items_per_page);

if($page>$num_pages)$page= $num_pages;

$limit_start = ($page-1)*$items_per_page;

if($limit_start<0)$limit_start=0;

$topics = mysql_query("SELECT id, name, closed, views, moved, pollid FROM ibwf_topics WHERE fid='".$fid."' AND pinned='0' ORDER BY lastpost DESC, name, id LIMIT $limit_start, $items_per_page");

while($topic = mysql_fetch_array($topics)){

$nop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE tid='".$topic[0]."'"));

$iml = "<img src=\"images/normal.gif\" alt=\"*\"/>";

if($nop[0]>24){

$iml = "<img src=\"images/hot.gif\" alt=\"*\"/>";

}

if($topic[4]=='1'){

$iml = "<img src=\"images/moved.gif\" alt=\"*\"/>";

}

if($topic[2]=='1'){

$iml = "<img src=\"images/closed.gif\" alt=\"*\"/>";

}

if($topic[5]>0){

$iml = "<img src=\"images/poll.gif\" alt=\"*\"/>";

}

$atxt ="";

if($topic[2]=='1'){

$atxt = "(X)";

}

$tnm = htmlspecialchars($topic[1]);

echo "<a href=\"index.php?action=viewtpc&amp;tid=$topic[0]\">$iml$tnm($nop[0])$atxt</a> &#187;<a href=\"index.php?action=viewtpc&amp;go=last&amp;tid=$topic[0]\">&#187;</a><br/>";

}

echo "</small>";

echo "</p>";

echo "<p align=\"center\">";



if($page>1){

$ppage = $page-1;

echo "<a href=\"index.php?action=viewfrm&amp;page=$ppage&amp;fid=$fid\">&#171;PREV</a> ";

}

if($page<$num_pages){

$npage = $page+1;

echo "<a href=\"index.php?action=viewfrm&amp;page=$npage&amp;fid=$fid\">Next&#187;</a>";

}

echo "<br/>$page/$num_pages<br/>";

if($num_pages>2){

$rets = "Jump To Page: <input name=\"pg\" format=\"*N\" size=\"3\"/>";

$rets .= "<anchor>[GO]";

$rets .= "<go href=\"index.php\" method=\"get\">";

$rets .= "<postfield name=\"action\" value=\"$action\"/>";

$rets .= "<postfield name=\"fid\" value=\"$fid\"/>";

$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";

$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";

$rets .= "</go></anchor>";

echo $rets;

}

echo "<br/><br/><a href=\"index.php?action=newtopic&amp;fid=$fid\">New Topic</a><br/>";

$cid = mysql_fetch_array(mysql_query("SELECT cid FROM ibwf_forums WHERE id='".$fid."'"));

if($cid[0]>0){

$cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_fcats WHERE id='".$cid[0]."'"));

$cname = htmlspecialchars($cinfo[0]);

echo "<a href=\"index.php?action=viewcat&amp;cid=$cid[0]\">";

echo "$cname</a><br/>";

}else{

$cid = mysql_fetch_array(mysql_query("SELECT clubid FROM ibwf_forums WHERE id='".$fid."'"));

$cinfo = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_clubs WHERE id='".$cid[0]."'"));

$cname = htmlspecialchars($cinfo[0]);

echo "<a href=\"index.php?action=gocl&amp;clid=$cid[0]\">";

echo "$cname Club</a><br/>";

}

echo "<a href=\"index.php?action=forumsmenu\"><img src=\"images/Forums.gif\" alt=\"*\"/>Forums</a><br/>";

echo "<a href=\"index.php?action=main\"><img src=\"images/home.gif\" alt=\"*\"/>";

echo "Home</a>";

echo "</p>";

echo "</card>";

}

///////////////////////////////////

else{

  /////////////////////////Main Page Here

echo "<card id=\"main\" title=\"$sitename\">";

echo "<p align=\"center\">";

echo "You Need To Login To Access This Feature<br/><br/><br/>";

echo "UserID: <input name=\"loguid\" format=\"*x\" maxlength=\"30\"/><br/>";

echo "Password: <input type=\"password\" name=\"logpwd\"  maxlength=\"30\"/><br/>";

echo "<anchor>LOGIN<go href=\"/login.php\" method=\"get\">";

echo "<postfield name=\"loguid\" value=\"$(loguid)\"/>";

echo "<postfield name=\"logpwd\" value=\"$(logpwd)\"/>";

echo "</go></anchor>";

echo "<br/><br/><small>Not registered yet? <br/><a href=\"/register.php\">SIGN UP</a><br/>";

echo "<br/><br/><br/>";

echo "<br/><a href=\"/index.php\"><img src=\"/images/home.gif\" alt=\"*\"/>";

echo "Home</a><br/>";

echo "<b>&#169; wapirate</b><br/></small>";

echo "</p>";

echo "</card>";

}

?>

</wml>