in SQL:
PHP Code:
ALTER TABLE `users` ADD `egyip` ENUM( 'igen', 'nem' ) NOT NULL DEFAULT 'nem' AFTER `ip` ;
takelogin.php look at this line:
PHP Code:
$res = mysql_query("SELECT id, passhash, secret, enabled FROM users WHERE username = " . sqlesc($username) . " AND status = 'confirmed'");
replace this:
PHP Code:
$res = mysql_query("SELECT id, passhash, secret, egyip, ip, enabled FROM users WHERE username = " . sqlesc($username) . " AND status = 'confirmed'");
this subject:
PHP Code:
if ($row["enabled"] == "no")
bark("This user is banned!");
add this:
PHP Code:
if ($row['egyip'] != 'nem')
{
if(getip() != $row['ip']){bark('Do not even try kid, useless!!');}
}
Here's another one :)
bittorrent.php put it:
PHP Code:
function lopas($l)
{
$vd = array(
"cookie" => "&ookie"
);
return str_ireplace(array_keys($vd), array_values($vd), $l);
}