Yes, here is the upper portion of the index.php of the chat directory.
Code: Select all
<?php
session_start();
include_once '../connect.php';
include_once '../session.php';
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "Quick chat";
$params["nick"] = $username;
$params['firstisadmin'] = true;
//$params["isadmin"] = true; // makes everybody admin: do not use it on production servers ;)
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["debug"] = false;
$chat = new phpFreeChat( $params );
When I add the includes for session start, connect.php, and session.php it gets stuck on:
I will continue looking through the other .php files and see if there are any other instances of "nick" that might be causing problems.
EDIT:
I found the following code in ../chat/src/pfcglobalconfig.class.php
Code: Select all
/**
* <p>If you have already identified the user (forum, portal...) you can force the user's nickname with this parameter.
* Defining a nick will skip the "Please enter your nickname" popup.</p>
* <p>Warning : Nicknames must be encoded in UTF-8.
* For example, if you get nicks from a databases where they are ISO-8859-1 encoded,
* you must convert it: <code>$params["nick"] = iconv("ISO-8859-1", "UTF-8", $bdd_nickname);</code>
* (Of course, change the <code>$bdd_nickname</code> parameter for your needs.)</p>
* <p>(Default value: "" - means users must choose a nickname when s/he connects.)</p>
*/
var $nick = "";
I believe this is where I would put the
and change the code to
but it's giving me the following error
Code: Select all
Warning: include_once(../../session.php) [function.include-once]: failed to open stream: No such file or directory
The structure is /public_html/game/chat/