Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   Account theft protection! (http://www.bvlist.com/showthread.php?t=8775)

ppdsgame 16th January 2013 17:30

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);




Timisoreanul 16th January 2013 22:34

Quote:

'igen', 'nem'
Replace igen with yes end nem with no

joeroberts 16th January 2013 22:41

Looks like this well cause all kinda problems to someone that dont have a static IP :lol:


All times are GMT +2. The time now is 07:18.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.