View Single Post
  #1  
Old 16th January 2013, 17:30
ppdsgame ppdsgame is offline
Member
 
Join Date: Feb 2011
P2P
Posts: 11
Default Account theft protection!
in SQL:
PHP Code:
ALTER TABLE  `usersADD  `egyipENUM(  '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);


Reply With Quote