Re: An introduction to security
Sorry I Think I Forgot To Post Enough.
Now Using Your Code It Makes You Loose All Your Exp, And Displays 'You Lost All Your Exp For Running From The Fight'
I Am Using This Code.
if(isset($dosessh) && (isset($_SESSION['attacking']) || isset($ir['attacking'])))
{
print "You lost all your exp for running from the fight.";
$db->query("UPDATE users SET exp=0, attacking=0 WHERE userid=$userid");
$_SESSION['attacking']=0;
}
Thanks For You Help Haunted, +1