<?php
if($id == "jungiama")
{
if(!mysql_fetch_row(mysql_query("SELECT `nick` FROM users WHERE `nick` LIKE '".$_GET['nn']."' AND pass='".md5($_GET['pas'])."'")))
{
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml><card id=\"index\" title=\"***\">";
echo "<p align=\"center\">Blogi duomenys</p></card></wml>";
exit;
}
else
{
session_name('wapID');
session_start();
$_SESSION['nick'] = $_GET['nn'];
$_SESSION['pass'] = $_GET['pas'];
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml><card id=\"index\" title=\"***\">";
echo "<p align=\"center\">
Prisijungei sėkmingai!
<anchor>Toliau<go href=\"prisijungus.php?wapID=".session_id()."\"></go></anchor>
</p>";
}
}
echo "</card></wml>";
?>
Can you say what's wrong?
if($id == "jungiama")
{
if(!mysql_fetch_row(mysql_query("SELECT `nick` FROM users WHERE `nick` LIKE '".$_GET['nn']."' AND pass='".md5($_GET['pas'])."'")))
{
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml><card id=\"index\" title=\"***\">";
echo "<p align=\"center\">Blogi duomenys</p></card></wml>";
exit;
}
else
{
session_name('wapID');
session_start();
$_SESSION['nick'] = $_GET['nn'];
$_SESSION['pass'] = $_GET['pas'];
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml><card id=\"index\" title=\"***\">";
echo "<p align=\"center\">
Prisijungei sėkmingai!
<anchor>Toliau<go href=\"prisijungus.php?wapID=".session_id()."\"></go></anchor>
</p>";
}
}
echo "</card></wml>";
?>
Can you say what's wrong?
Comment