aha okay thanx!!!! anyway ill try it 1st at my demo site lol
and heres the 1st problem
add this to login.php
$validated = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$uid."' AND pass='".$epwd."' AND validated='0'"));
if(($validated[0]>0)&&(validation()))
{
echo "<img src="../images/notok.gif" alt="X"/>Account Not Validated
This could take up to 12hrs pls be patient and try again soon
thank you
";
}
whr in the file should i put this??? after this?
$uid = $_GET["loguid"];
$pwd = $_GET["logpwd"];
$tolog = false;
echo "<card id="main" title="$uid@blabla">";
echo "
";
and this troubles me....
after i added that line to login.php i had to edit this part or u will hav serious problem
//check for pwd
$epwd = md5($pwd);
$uinf = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$uid."' AND pass='".$epwd."'"));
if($uinf[0]==0)
{
echo "<img src="../images/notok.gif" alt="X"/>Incorrect Password
";
echo "<a href="index.php"><img src="../images/home.gif" alt=""/>Home</a>";
}
so change it to this
//check for pwd
$epwd = md5($pwd);
$uinf = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$uid."' AND pass='".$epwd."'"));
if($uinf[0]==0)
{
echo "<img src="../images/notok.gif" alt="X"/>Incorrect Password
";
echo "<a href="index.php"><img src="../images/home.gif" alt=""/>Home</a>";
echo "
";
echo "</card>";
echo "</wml>";
exit();
}
its diferent tht my login.php
//check for pwd
$epwd = md5($pwd);
$uinf = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$uid."' AND pass='".$epwd."'"));
if($uinf[0]==0)
{
echo "<img src="images/notok.gif" alt="X"/>Incorrect Password
";
}else{
$tm = time();
$xtm = $tm + (getsxtm()*60);
$did = $uid.$tm;
$res = mysql_query("INSERT INTO ibwf_ses SET id='".md5($did)."', uid='".getuid_nick($uid)."', expiretm='".$xtm."'");
cuz if i put it like this
//check for pwd
$epwd = md5($pwd);
$uinf = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$uid."' AND pass='".$epwd."'"));
if($uinf[0]==0)
{
echo "<img src="../images/notok.gif" alt="X"/>Incorrect Password
";
echo "
";
echo "</card>";
echo "</wml>";
exit();
}else{
$tm = time();
$xtm = $tm + (getsxtm()*60);
$did = $uid.$tm;
$res = mysql_query("INSERT INTO ibwf_ses SET id='".md5($did)."', uid='".getuid_nick($uid)."', expiretm='".$xtm."'");
ill get bloody PARSE ERROR, am i right?