Here is the entire file. Line 38 was in question, I even moved it to another line, error went there.. of coarse I did put it back.
<?
/*
+------------------------------------------------------------------------+
| |
| CHAT VERSION 2.1 |
| |
| COPYRIGHT 2003 - 2004 |
| |
| |
| |
| This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation; either version 2 of the License, or |
| (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License (docs/GPL) for more details. |
| |
+------------------------------------------------------------------------+
*/
// Start a new session and tell it to expire session cookies after 24 minutes:
ini_set('session.cookie_lifetime',1440);
ini_set('session.use_only_cookies',1);
session_start();
// Load the config file:
require_once ('./zrc-conf.inc.php');'.:/usr/lib/php:/usr/local/lib/php'
// Which action was requested:
$action = ($POST['action'] != '') ? $POST['action'] : $_GET['action'];
// Define an associative array of actions and functions:
$actions = array (login => 'do_login', logout => 'do_logout', chat => 'livechat',
prefs => 'edit_prefs', shop => 'visit_shop', register => 'register_user',
mail => 'user_mail', mod => 'mod',
remind => 'send_reminder');
// Load Ultra Chat common libraries:
load_funcs($commondir,'',0);
if ($dbmode == "single"){
$livetable = "live_users";
$userstable = "main_users";
$usersdb = $livedb;
}else{
$livetable = "users";
$userstable = "users";
}
require_once ("$actionsdir/welcome.inc.php");
if ($_GET['x'] == "x" AND $action != "login"){
require_once ("$actionsdir/logout/do_logout.inc.php");
do_logout();
}
if ($actions[$action]){
load_funcs($actionsdir,$action,0);
}elseif ($action == "hub"){
show_hub('','');
}else{
welcome('');
}
/************************
Begin function loader:
************************/
function load_funcs($dir,$function,$no_recurse)
{
global $actions;
$loaddir = ($function) ? "$dir/$function" : $dir;
$dirhandle = opendir($loaddir) OR die ();
while (false !== ($file = readdir($dirhandle))) {
if ($file == "." OR $file == ".."){ continue; }
if (preg_match("/(\w+.inc.php)$/",$file,$match)){
require_once ("$loaddir/$match[1]");
}elseif(is_dir("$loaddir/$file") AND !$no_recurse){
load_funcs("$loaddir/$file",'',0);
}else{
;
}
}
closedir($dirhandle);
if ($function){ call_user_func($actions[$function]); }
}
/************************
End function loader
************************/
?>
THX in advance,
Grizz