Problem with login page
Collapse
X
-
this code is common for lava but you have to make this supportable with yor sql :pPHP Code:
////////////////////////////////////////////Session expiry time
function getsxtm()
{
$getdata = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sesexp'"));
return $getdata[0];
}
$tm = time();
$xtm = $tm + (getsxtm()*60);
$did = $u.$tm;
$res = mysql_query("INSERT INTO ibwf_ses SET id='".md5($did)."', uid='".getuid_nick($u)."', expiretm='".$xtm."'");
$sid = md5($did);
Leave a comment:
-
lol it can but i dont want it like tht lol its not my coding eitherOriginally posted by Ponick View Post$sid = $unick.$mytime.$p;
its may bePHP Code:
$mytime=time();
$sid = $u.$mytime;
mysql_query("update users set ts ='$ts' where username='$thelogin'"); are you sure about this? :P :P
hey ponick if you could me a sid coding like wats on lava login page tht wud be cool
Leave a comment:
-
$sid = $unick.$mytime.$p;
its may bePHP Code:
$mytime=time();
$sid = $u.$mytime;
mysql_query("update users set ts ='$ts' where username='$thelogin'"); are you sure about this? :P :P
Leave a comment:
-
PHP Code:if ($_GET["spy"]=="1")
{
$u = $_GET["u"];
$p = $_GET["p"];
}
Leave a comment:
-
hey i got it recode the page and got it now i need sid how do i do that?
Leave a comment:
-
nothing wrong with sql...try sumting else and it worked so ama figure out whats wrong and fix it......
Leave a comment:
-
what does the debug line say ? if it comes back something like:
Debug: spy: 1
User: something_else
pass: random
Usercheck:
passcheck
then you know there is a problem with your sql
Leave a comment:
-
or just debug your work to find the error eg:
PHP Code:echo "Debug: spy: $spy <br/>User: $u<br/> pass: $p <br/>Usercheck: $n[0] <br/> passcheck $s[0]";
Leave a comment:
Leave a comment: