Codice PHP:
<?php
require 'wapheader.php';
$username = (empty($_GET['un'])) ? "0" :
$_GET['un'];
$password = (empty($_GET['pw'])) ? "0" :
md5($_GET['pw']);
if(isset($_GET['logout']))
{
$session = session_end($userdata['session_id'],
$userdata['user_id']);
echo $header;
echo $lang['wap_logged_out'] . "[i]Logout Eseguito[/i]
Torna A Trovarci
";
$wapphp = append_sid("wap.$phpEx");
exit("<anchor>" . $lang['Menu'] . "<go href=\"" . append_sid("index.php") . "\" />Home</anchor>
" .
$footer);
}
else if ($userdata['session_logged_in'])
{
echo $header;
echo sprintf($lang['wap_logged_in'],"<anchor>","<go href=\"" . append_sid("wap.$phpEx") . "\" />Bacheca</anchor>");
exit("Sei gia loggato nel forum! " . $footer);
}
else if($username == "0" || $password == "0")
{
if(!isset($_GET['logout']))
echo $header;
?>