![]() |
Fatal error: Call to a member function on a non-object in /usr/local/home/httpd/vhtdocs/dsvr.claretandbanter.co.uk/chat/inc/classes/chatServer.php on line 112
I get this when going to the admin section. Install didn't give me any errors tho. Using the latest version of flashchat 4.3.3 |
^^Go back to the "in inc\classes\connection.php ;" file and make sure the edit change is correct.
Peace |
//Touch connection
$stmt = new Statement("UPDATE {$GLOBALS['fc_config']['db']['pref']}connections SET updated=NOW() WHERE id=?"); $stmt->process($this->id); //Touch room $this->updateSelfRoom(); return; } } $this->id = md5(uniqid(rand(), true)); $this->userid = ChatServer::isLoggedIn( $args ); $this->roomid = $this->getAvailableRoom($GLOBALS['fc_config']['defaultRoom']); $color = $GLOBALS['fc_config']['themes'][$GLOBALS['fc_config']['defaultTheme']]['recommendedUserColor']; if($color == null) $color = 0xFFFFFF; $this->color = $color; $this->state = 1; $this->lang = $GLOBALS['fc_config']['defaultLanguage']; // Paul M - Real ip detection $realip = ''; $proxyip = ''; $ignoreprivate = true; // Set to false to allow private 'real' ip's // if ($_SERVER['HTTP_FROM'] != '') $proxyip = $_SERVER['HTTP_FROM']; if ($_SERVER['HTTP_FORWARDED'] != '') $proxyip = $_SERVER['HTTP_FORWARDED']; if ($_SERVER['HTTP_CLIENT_IP'] != '') $proxyip = $_SERVER['HTTP_CLIENT_IP']; if ($_SERVER['HTTP_X_FORWARDED_FOR'] != '') $proxyip = $_SERVER['HTTP_X_FORWARDED_FOR']; if (preg_match("#\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}#" , $proxyip, $iplist)) { $proxyip = $iplist[0]; if ($ignoreprivate and preg_match("#^(127|10|172\.(1[6-9]|2[0-9]|3[0-1])|192\.168|169\.254)\.#", $proxyip)) $proxyip = ''; } else $proxyip = ''; if ($proxyip == '') $realip = $_SERVER['REMOTE_ADDR']; else $realip = $proxyip; $this->ip = ($args['ip'] == null)? $realip : $args['ip']; Taken from my connection.php |
Quote:
I'm working on a new CMS file that should eliminate this problem, it also removes the need to enter your vb licence number in the file (and also updates your location in the vb session table when you login). If anyone would like to test it please drop me a PM with your e-mail address. |
Quote:
When I use my IE 6 I used to get nothing so I turned off the popup blocker in that. Now as I close it I get a pop up that just hangs and stays there and never closes or logs me out? Any ideas? |
Quote:
|
Quote:
Thanks for this great well supported hack.............. |
Quote:
|
I have uploaded the new version.
Quote:
Import the plugins as a product using the vb Product Manager. Upload the new vbulletin35CMS.php to the flashchat /inc/cmses/ folder. If you use custom usergroups, edit the new CMS file to give them access (note, the section to edit is totally different and near the bottom of the file). |
Great fix and great upgrade. Thanks Paul :D
BTW Sorry I didn't see the request for wanting to test it first. Regards Don |
All times are GMT. The time now is 12:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|