Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
View Poll Results: It was useful to the defense?
Yes! 9 75.00%
No! 3 25.00%
Voters: 12. You may not vote on this poll

Reply
  #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
  #2  
Old 16th January 2013, 22:34
Timisoreanul's Avatar
Timisoreanul Timisoreanul is offline
Senior Member
 
Join Date: Apr 2008
P2P
Posts: 211
Default
Quote:
'igen', 'nem'
Replace igen with yes end nem with no
__________________
only me
Reply With Quote
  #3  
Old 16th January 2013, 22:41
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
Looks like this well cause all kinda problems to someone that dont have a static IP
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
Reply

Tags
account , protection , theft

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 17:07. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.