|
#1
|
||||
|
||||
PMBT 2.0.4 php 5.3 error fixes
Error
Code:
Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\newbase\include\configdata.php on line 30 Code:
if (eregi ("configdata.php" , $_SERVER["PHP_SELF"])) die ("You can't access this file directly"); Code:
if (!defined('IN_PMBT')) die ("You can't access this file directly"); Code:
Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of ip_valid(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in C:\xampp\htdocs\newbase\include\functions.php on line 128 Code:
foreach ($check as $c) { if (ip_valid(&$_SERVER[$c])) { return ip_first($_SERVER[$c]); } } Code:
foreach ($check as $c) { if (@ip_valid($_SERVER[$c])) { return ip_first($_SERVER[$c]); } } Code:
Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\newbase\include\functions.php on line 4 Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\newbase\include\functions.php on line 6 Code:
// This file contains Bit Torrent main functions. MUST be included before every // other file at the beginning of any script if (eregi("functions.php",$_SERVER['PHP_SELF'])) die("You can't access this file directly"); if (!function_exists("sha1")) require_once("include/sha1lib.php"); if (!eregi("download.php",$_SERVER['PHP_SELF']))include ("./include/forum_settings.php"); if (!eregi("download.php",$_SERVER['PHP_SELF']))include ("./include/functions_phpBB3.php"); Code:
// This file contains Bit Torrent main functions. MUST be included before every // other file at the beginning of any script if (!defined('IN_PMBT')) die ("You can't access this file directly"); if (!function_exists("sha1")) require_once("include/sha1lib.php"); //if (!preg_match("download.php",$_SERVER['PHP_SELF']))include ("./include/forum_settings.php"); //if (!preg_match("download.php",$_SERVER['PHP_SELF']))include ("./include/functions_phpBB3.php"); Code:
Strict Standards: Resource ID#14 used as offset, casting to integer (14) in C:\xampp\htdocs\newbase\include\db\mysql.php on line 482 Strict Standards: Resource ID#14 used as offset, casting to integer (14) in C:\xampp\htdocs\newbase\include\db\mysql.php on line 484 Strict Standards: Resource ID#17 used as offset, casting to integer (17) in C:\xampp\htdocs\newbase\include\db\mysql.php on line 482 Strict Standards: Resource ID#17 used as offset, casting to integer (17) in C:\xampp\htdocs\newbase\include\db\mysql.php on line 484 Strict Standards: Resource ID#19 used as offset, casting to integer (19) in C:\xampp\htdocs\newbase\include\db\mysql.php on line 482 Strict Standards: Resource ID#19 used as offset, casting to integer (19) in C:\xampp\htdocs\newbase\include\db\mysql.php on line 484 Strict Standards: Resource ID#21 used as offset, casting to integer (21) in C:\xampp\htdocs\newbase\include\db\mysql.php on line 482 Strict Standards: Resource ID#21 used as offset, casting to integer (21) in C:\xampp\htdocs\newbase\include\db\mysql.php on line 484 Code:
function sql_fetchrow($query_id = 0) { if(!$query_id) { $query_id = $this->query_result; } if($query_id) { $this->row[$query_id] = @mysql_fetch_array($query_id); return $this->row[$query_id]; } else { return false; } } Code:
function sql_fetchrow($query_id = 0) { if(!$query_id) { $query_id = $this->query_result; } if($query_id) { $this->row[(int)$query_id] = @mysql_fetch_array($query_id); return $this->row[(int)$query_id]; } else { return false; } } Code:
Notice: Undefined variable: configquery in C:\xampp\htdocs\newbase\include\config.php on line 197 Code:
$db->sql_freeresult($configquery); Code:
//$db->sql_freeresult($configquery); Last edited by BitFarmer; 12th March 2012 at 01:12. |
Tags |
53 , error , fixes , php , pmbt |
|
|