View Single Post
  #95  
Old 19th March 2012, 18:26
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
first one replace
PHP Code:
if(eregi("graphics.php",$_SERVER["PHP_SELF"])) die("You can't access this file directly"); 
with
PHP Code:
if(preg_match("/graphics.php/",$_SERVER["PHP_SELF"])) die("You can't access this file directly"); 
second one replace
PHP Code:
if(eregi("database.php",$_SERVER['PHP_SELF'])) die("You can't access this file directly"); 
with
PHP Code:
if(preg_match("/database.php/",$_SERVER['PHP_SELF'])) die("You can't access this file directly"); 
and third replace
PHP Code:
if (eregi("mysql.php",$_SERVER["PHP_SELF"])) die("You cannot access this file directly"); 
with
PHP Code:
if (preg_match("/mysql.php/",$_SERVER["PHP_SELF"])) die("You cannot access this file directly"); 
and the sql error I can not read
__________________
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