I call this fonksiyon on top of every page.
How would I do so it removes sona ermekd yasakları also? If current time() is more than sona ermek field.
Would really appricate help.
yasakları
- kimlik
- ip
- sona ermek
(Aşımına uğrarsa NULL onun daimi)
fonksiyon
fonksiyon check_yasakları()
{
$user_ip = $_SERVER['REMOTE_ADDR'];
// Se if users ip is banned
$query = mysql_query("SELECT ip FROM yasakları WHERE ip = '$user_ip'");
// If they are, kill script and show message
if (mysql_num_rows($query))
die('You have been IP banished. Expires: <b>Never</b>');
}