Bonjour
Bravo pour PFC ; super simple à installer et très ergonomique.
Je cherche à implanter 'phpfreechat-1.0-beta11' sur un site oScommerce. Comment rendre le chat uniquement accessible aux visiteurs identifiés ? (Mon niveau en php et sql est proche de 0 wacko.gif ...). Mais bon ! je suis très obstiné ; ça compense parfois.
voici l'index du chat :
<?php
require_once "/home.2/monid/www/monsite/chat/src/phpfreechat.class.php"; // pensez a ajuster le chemin
$params["serverid"] = md5(__FILE__); // permet d'identifier ce chat
$params["refresh_delay"] = 1000; // 3000ms = 3s
$params["language"] = "fr_FR";
$params["theme"] = "green";
$params['admins'] = array('monidadmin' => 'mdp');
$params["timeout"] = 180000; // 30 min
$params["quit_on_closedwindow"] = true;
$params['channels'] = array("room");
$chat = new phpFreeChat($params);
require('/home.2/monid/www/monsite/catalog/includes/application_top.php');
require('/home.2/monid/www/monsite/catalog/includes/classes/http_client.php');
if (!tep_session_is_registered('customer_id')) {
tep_redirect(tep_href_link('/home.2/monid/www/monsite/catalog/login.php'));
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Slave'Chat</title>
<?php $chat->printJavascript(); ?>
<?php $chat->printStyle(); ?>
</head>
<body>
<?php $chat->printChat(); ?>
</body>
</html>
Voici le message d'erreur que j'obtiens :
Warning: main(includes/configure.php) [function.main]: failed to open stream: No such file or directory in /home.2/monid/www/monsite/catalog/includes/application_top.php on line 29
Merci de votre aide !
Fatal error: main() [function.require]: Failed opening required 'includes/configure.php' (include_path='.:/usr/local/lib/php') in /home.2/monid/www/monsite/catalog/includes/application_top.php on line 29