cotonti.com : Ajaxchat for error https://www.cotonti.com Останні повідомлення в темі Cotonti en Sat, 28 Feb 2026 11:36:31 -0000 Spuner
Warning: require_once(./system/xtemplate.class.php) [function.require-once]: failed to open stream: No such file or directory in S:\home\revolution-pk.ru\www\system\functions.php on line 4769
Fatal error: require_once() [function.require]: Failed opening required './system/xtemplate.class.php' (include_path='.;/usr/local/php5/PEAR') in S:\home\revolution-pk.ru\www\system\functions.php on line 4769
when I go to http://revolution-pk.ru/chat/
What it's just need to do to have correct work of this plugin?]]>
Thu, 09 Лип 2009 23:52:09 -0000
Kilandor Пт, 08 Травень 2009 20:13:49 -0000 fedai
<?php
/*
 * @package AJAX_Chat
 * @author Sebastian Tschan
 * @copyright (c) Sebastian Tschan
 * @license GNU Affero General Public License
 * @link https://blueimp.net/ajax/
 */


define('SED_CODE', TRUE);

require('../system/functions.php');
require('../system/xtemplate.class.php');
require('../datas/config.php');

// START - common.php

/* ======== First... ======== */

set_magic_quotes_runtime(0);
define('MQGPC', get_magic_quotes_gpc());
error_reporting(E_ALL ^ E_NOTICE);

/* ======== Connect to the SQL DB======== */

require('../system/database.'.$cfg['sqldb'].'.php');
sed_sql_connect($cfg['mysqlhost'], $cfg['mysqluser'], $cfg['mysqlpassword'], $cfg['mysqldb']);
unset($cfg['mysqlhost'], $cfg['mysqluser'], $cfg['mysqlpassword']);

/* ======== Check the banlist ======== */

$userip = explode('.', $usr['ip']);
$ipmasks = "('".$userip[0].".".$userip[1].".".$userip[2].".".$userip[3]."','".$userip[0].".".$userip[1].".".$userip[2].".*','".$userip[0].".".$userip[1].".*.*','".$userip[0].".*.*.*')";

$sql = sed_sql_query("SELECT banlist_id, banlist_ip, banlist_reason, banlist_expire FROM $db_banlist WHERE banlist_ip IN ".$ipmasks, 'Common/banlist/check');

If (sed_sql_numrows($sql)>0)
	{
	$row=sed_sql_fetcharray($sql);
	if ($sys['now']>$row['banlist_expire'] && $row['banlist_expire']>0)
		{
		$sql = sed_sql_query("DELETE FROM $db_banlist WHERE banlist_id='".$row['banlist_id']."' LIMIT 1");
		}
	else
		{
		$disp = "Your IP is banned.<br />Reason: ".$row['banlist_reason']."<br />Until: ";
		$disp .= ($row['banlist_expire']>0) ? @date($cfg['dateformat'], $row['banlist_expire'])." GMT" : "Never expire.";
		sed_diefatal($disp);
		}
	}

/* ======== Groups ======== */

if (!$sed_groups )
	{
	$sql = sed_sql_query("SELECT * FROM $db_groups WHERE grp_disabled=0 ORDER BY grp_level DESC");

	if (sed_sql_numrows($sql)>0)
		{
		while ($row = sed_sql_fetcharray($sql))
			{
			$sed_groups[$row['grp_id']] = array (
				'id' => $row['grp_id'],
				'alias' => $row['grp_alias'],
				'level' => $row['grp_level'],
   				'disabled' => $row['grp_disabled'],
   				'hidden' => $row['grp_hidden'],
				'state' => $row['grp_state'],
				'title' => sed_cc($row['grp_title']),
				'desc' => sed_cc($row['grp_desc']),
				'icon' => $row['grp_icon'],
				'pfs_maxfile' => $row['grp_pfs_maxfile'],
				'pfs_maxtotal' => $row['grp_pfs_maxtotal'],
				'ownerid' => $row['grp_ownerid']
					);
			}
		}
	else
		{ sed_diefatal('No groups found.'); }

	sed_cache_store('sed_groups',$sed_groups,3600);
	}

/* ======== User/Guest ======== */

if ($cfg['authmode']==2 || $cfg['authmode']==3)
	{ session_start(); }

if (isset($_SESSION['rsedition']) && ($cfg['authmode']==2 || $cfg['authmode']==3))
	{
	$rsedition = $_SESSION['rsedition'];
	$rseditiop = $_SESSION['rseditiop'];
	$rseditios = $_SESSION['rseditios'];
	}
elseif (isset($_COOKIE['SEDITIO']) && ($cfg['authmode']==1 || $cfg['authmode']==3))
	{
	$u = base64_decode($_COOKIE['SEDITIO']);
	$u = explode(':_:',$u);
	$rsedition = sed_import($u[0],'D','INT');
	$rseditiop = sed_import($u[1],'D','PSW');
	$rseditios = sed_import($u[2],'D','ALP');
	}

if ($rsedition>0 && $cfg['authmode']>0)
	{

	$sql = sed_sql_query("SELECT * FROM $db_users WHERE user_id='$rsedition' AND user_password='$rseditiop'");

	if ($row = sed_sql_fetcharray($sql))
		{
		if ($row['user_maingrp']>3)
			{
			$usr['id'] = $row['user_id'];
			$usr['name'] = $row['user_name'];
			$usr['lang'] = ($cfg['forcedefaultlang']) ? $cfg['defaultlang'] : $row['user_lang'];
			$usr['maingrp'] = $row['user_maingrp'];
			$usr['level'] = $sed_groups[$usr['maingrp']]['level'];
			}
		}
	}


/* ======== Language ======== */
$usr['lang'] = (empty($_COOKIE['deflang'])) ? $cfg['defaultlang'] : $_COOKIE['deflang'];


// END - common.php

?>
]]>
Пт, 08 Травень 2009 19:58:49 -0000
Kilandor
Notice: Undefined index: system_dir in /home/xxx/public_html/system/functions.php on line 4564

Indicates your problem, this is a minor notice, and not a techincal error its saying $cfg['system_dir'] is not defined. Please compare your config file, with that of the config-sample.php

It would appear your missing these configs.]]>
Пт, 08 Травень 2009 05:22:37 -0000
fedai Пт, 08 Травень 2009 05:03:38 -0000 aiwass Пт, 08 Травень 2009 03:30:12 -0000 fedai
Ajaxchat system integrated to seditio

Neocrome.ru forum topic:
http://www.neocrome.ru/forums.php?m=posts&q=2800
Ajaxchat system website:
https://blueimp.net/ajax/

Download ajaxchat integrated to seditio:
http://slil.ru/27514551

Mywebsite install error:
Notice: Undefined index: system_dir in /home/xxx/public_html/system/functions.php on line 4564

Warning: require_once() [function.require-once]: Unable to access /xtemplate.class.php in /home/xxx/public_html/system/functions.php on line 4564

Warning: require_once(/xtemplate.class.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxx/public_html/system/functions.php on line 4564

Fatal error: require_once() [function.require]: Failed opening required '/xtemplate.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/public_html/system/functions.php on line 4564


chat/lib/custom.php:
require('../system/functions.php');
require('../system/templates.php');
require('../datas/config.php');

Cotonti for system/templates.php Not Found]]>
Пт, 08 Травень 2009 02:45:14 -0000