For some reason, some of my params aren't cooperating. For example, at the moment, the channels list is only coming up with "My room" - the default, despite the fact that it's set in the list below. When I first set it up, that was working correctly; with nothing else changed, after a server restart it stopped working. I've tried deleting the data/private folder numerous times, I'm not sure where else that data could be stored.
Additionally, the lines below that, which set isadmin true if the user_id is 2, have the same problem. Was working before, and just... stopped.
How do I do a COMPLETE flush? If I delete data/private, it's obviously not getting it all. If I delete data/public (as mentioned somewhere else on the board), then it complains about the js files missing. What am I doing wrong?
Thanks
- Code: Select all
<?php
define('IN_PHPBB', true);
$phpbb_root_path = '/app/domains/azwingnutz.org/www/htdocs/forum3/'; // See phpbb_root_path documentation
$phpEx = substr(strrchr(__FILE__, '.'), 1); // Set the File extension for page-wide usage.
include($phpbb_root_path . 'common.' . $phpEx); // include the common.php file, this is important, especially for database connects.
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');
get_username_string ;
$oog = $user->data[username];
// redirect to phpBB logon page if the user is not logged in
if ($oog == "Anonymous")
{
header("Location: http://www.azwingnutz.org/forum3/ucp.php?mode=login");
}
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "Arizona WingNutz Chat";
$params["channels"] = array('WingNutz');
$params["nick"] = iconv("ISO-8859-1", "UTF-8", $user->data['username']);
$params["frozen_nick"] = true; // do not allow to change the nickname
$params["isadmin"] = false; // just for debug ;)
$params["serverid"] = md5(phpfreechat); // calculate a unique id for this chat
$params["theme_path"] = dirname(__FILE__)."/themes";
$params["theme"] = "blune";
if ($user->data['user_id'] == 2)
{ $params["isadmin"] = true; }
$chat = new phpFreeChat( $params );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Arizona WingNutz</title>
</head>
<body>
<div class="header">
<center><img src=http://www.azwingnutz.org/images/logo.mini.320x140t.gif></center>
</div>
<div class="content">
<?php $chat->printChat(); ?>
</div>
</body></html>