Moderators: OldWolf, re*s.t.a.r.s.*2
header("Location: http://www.example.com/phpbb/ucp.php?mode=login&redirect=/phpfreechat/");
header("Location: http://" . $_SERVER[SERVER_NAME] ."/forum/ucp.php?mode=login&redirect=/chat/");
<?php
define('IN_PHPBB', true);
$phpbb_root_path = '/home/landmanb/public_html/untolerable/phpBB3/'; // 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.untolerable.com/phpBB3/ucp.php?mode=login&redirect=/chat/");
}
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "Untolerable";
$params["nick"] = $user->data [username];
$params["frozen_nick"] = true; // do not allow to change the nickname
$params["isadmin"] = false; // just for debug ;)
$params["serverid"] = md5(Untolerable); // calculate a unique id for this chat
//$params["debug"] = true;
$params["theme_path"] = dirname(__FILE__)."/themes";
$params["theme"] = "green";
$params["channels"] = array("Main Chat");
$chat = new phpFreeChat( $params );
?>
Warning: include(/phpBB3/common.php) [function.include]: failed to open stream: No such file or directory in (directoryname)/chat/index.php on line 6
Warning: include() [function.include]: Failed opening '/phpBB3/common.phpphp' for inclusion (include_path='.:/usr/local/lib/php-5.2.4/lib/php') in (directoryname)phpBB3/chat/index.php on line 6
Fatal error: Call to a member function session_begin() on a non-object in (directoryname)phpBB3/chat/index.php on line 9
<?php
define('IN_PHPBB', true);
$phpbb_root_path = '/phpBB3/'; // 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://" . $_SERVER[SERVER_NAME] ."/phpBB3/ucp.php?mode=login&redirect=/chat/");
}
$utz = $user->data['user_timezone']; // Get user's time zone information from phpBB3 account settings
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "Name";
$params["nick"] = $user->data [username];
$params["frozen_nick"] = true; // do not allow to change the nickname
$params["isadmin"] = false; // just for debug wink
$params["language"] = "ru_RU";
$params["serverid"] = md5(Name);
//$params["debug"] = true;
$params["theme_path"] = dirname(__FILE__)."/themes";
$params["theme"] = "green";
$params["time_offset"] = $utz*60*60; // Sets user's time_offset to their timezone
$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></title>
</head>
<body>
<div class="content">
<?php $chat->printChat(); ?>
</div>
</body></html>
<?php
define('IN_PHPBB', true);
$phpbb_root_path = 'http://galacticcampaigns.com/'; // See phpbb_root_path documentation
$phpEx = substr(strrchr(__FILE__, '.'), 1); // Set the File extension for page-wide usage.
include($phpbb_root_path . 'common.php'); // 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.galacticcampaigns.com/ucp.php?mode=login&redirect=http://swrpgrc.com/phpfreechat/");
}
$utz = $user->data['user_timezone']; // Get user's time zone information from phpBB3 account settings
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "Chat Room";
$params["nick"] = $user->data [username];
$params["frozen_nick"] = true; // do not allow to change the nickname
$params["isadmin"] = false; // just for debug wink
$params["serverid"] = md5(__FILE__);
//$params["debug"] = true;
$chat = new phpFreeChat( $params );
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>phpFreeChat- Sources Index</title>
<link rel="stylesheet" title="classic" type="text/css" href="style/generic.css" />
</head>
<body>
<div>
<?php $chat->printChat(); ?>
<?php if (isset($params["isadmin"]) && $params["isadmin"]) { ?>
<p style="color:red;font-weight:bold;">Warning: because of "isadmin" parameter, everybody is admin. Please modify this script before using it on production servers !</p>
<?php } ?>
</div>
</body></html>
Чат загружается...
Пожалуйста, подождите
Return to phpBB, Simple Machines Forum (SMF), and Forum Software (v1.x)
Users browsing this forum: No registered users and 1 guest