Bravo List
Register
Go Back   Bravo List > P2P > Free Zone > General Discussion
Reply
  #1  
Old 02-07-09, 10:29
wolfman2's Avatar
Banned
 
Join Date: Apr 2009
Latvia
Posts: 459
Activity Longevity
0/20 10/20
Today Posts
0/11 ssssss459
Default TorrentFox alfa
anyone wants fixed xzone source ? with extra security like
PHP Code:
////////////////////////////////////////////here we go with some security///////////////////////////////////////////////
function maxsysop () {
global 
$CURUSER;
$lmaxclass  6//max class
$lsysopnames = array("wolfman"); //staff names
if ($CURUSER["class"] >= $lmaxclass)
if (!
in_array($CURUSER["username"], $lsysopnamestrue)) { // true for strict comparison
$msg "Fake Account Detected: Username: ".$CURUSER["username"]." - UserID: ".$CURUSER["id"]." - UserIP : ".getip();
write_log($msg);
stderr("Access Denied!","We come to believe you are using a fake account, therefore we've logged this action!");
}
// Check Staff IDS            
define ('UC_STAFF'4); // moderator
if ($CURUSER['class'] >= UC_STAFF) {
$allowed_ID = array(34); // staff IDs
if (!in_array((int)$CURUSER['id'], $allowed_IDtrue)) { // true for strict comparison
$msg "Fake Account Detected: Username: ".$CURUSER["username"]." - UserID: ".$CURUSER["id"]." - UserIP : ".getip();
write_log($msg);
stderr("Access Denied!","We come to believe you are using a fake account, therefore we've logged this action!");            
}        
}
}
function 
hacker_dork($hacked_what)
{
$ip=getip();
$ban_ip sqlesc(trim($_SERVER['REMOTE_ADDR']));
$res mysql_query("SELECT id, username, modcomment FROM users WHERE ip = $ban_ip AND class < ".UC_ADMINISTRATOR);
if (
mysql_num_rows($res) > 0){    
$arr mysql_fetch_assoc($res);
$subject sqlesc($arr['username']." tired to hack $hacked_what");
$body sqlesc("user: [url=userdetails.php?id=".$arr['id']."]".$arr['username']."[/url] \n with IP: $ban_ip [server remote address] $ip [function getip]\n tried to hack $hacked_what.\n ");
$modcomment gmdate("Y-m-d") . " Banned for trying to hack $hacked_what...\n"$arr['modcomment'];
mysql_query("UPDATE users set enabled='no', modcomment = ".sqlesc($modcomment)." where id=".$arr['id']);    
} else {
$subject sqlesc("attempt to hack $hacked_what");
$body sqlesc("user with IP: $ban_ip \n tried to hack $hacked_what.\n ");
}
auto_post$subject $body );
stderr("Wtf You Aint Staff""Tut Tut..Nice try... You've just gone and banned yourself n00b !!");
die();    
}
////////// /* to pages what this suppose to secure add this */ /////////////
////////// /* if (get_user_class() < UC_MODERATOR) */ //////////////////////
////////// /* hacker_dork("haa haa - what ever!"); */ //////////////////////
//////////////////////////////////////////edit ore get error :D //////////////////////////////////////////////////////// 
i only need to put up default style for it
Reply With Quote
  #2  
Old 02-07-09, 12:10
Strikey's Avatar
Elite
 
Join Date: Jan 2009
United Kingdom
Posts: 62
Activity Longevity
0/20 12/20
Today Posts
0/11 sssssss62
Exclamation
well it's not exactly fixed as there are are a fair few bugs on the source but they only take two minutes to fix mate.
__________________
Click the image to open in full size.
Reply With Quote
Reply

Tags
alfa , torrentfox

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 19:35. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Advertisement System V2.6 By   Branden