I Installed the Module in my DZCP installation ..
I can see the chatwindow down reight ..
But i become the message
alert('module freichatx says: arg.php file not found!');"; } return 0; } } ?>
And nothing goes on .. i tryed some pathways but nothing ..
I Dont know what should i do know ..
Can anyone help me?
Here my index.html Headercode and the arg.php code also the main.php code
What is wrong??
1:index.html
<!--==========================FreiChatX====VERSIONS====5.X====START========================-->
<!-- For uninstalling ME , first remove/comment all FreiChatX related code i.e below code
Then remove FreiChatX tables frei_session & frei_chat if necessary
The best/recommended way is using the module for installation -->
<?php $ses=null;
if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){
if(is_file("/html/forum/inc/_templates_/version1.5/freichat/arg.php")){
require "/html/forum/inc/_templates_/version1.5/freichat/arg.php";
$temp_id = $ses . $uid;
return md5($temp_id);
}
else
{
echo "<script>alert('module freichatx says: arg.php file not
found!');";
}
return 0;
}
}
?>
<script type="text/javascript" language="javascipt" src="%5Bdir%5D/freichat/client/main.php?id=<?php%20echo%20%24ses;?>&xhash=<?php%20echo%20freichatx_get_hash(%24ses);%20?>"></script><script type="text/javascript" language="javascipt" src="http://evnix-dot-com.appspot.com/?time=<?php%20echo%20time();%20?>"></script><link rel="stylesheet" href="%5Bdir%5D/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css"><!-- NOTE:: The copypaste code differs from 4.X to 5.X and may differ for further versions--><!-- So to be at a safer side always replace the entire FreiChatX code during installation--><!--===========================FreiChatX====VERSIONS====5.X====END=========================-->
2: arg.php
<?php /* FreiChatX parameters */
if(!defined('RDIR'))
{
define('RDIR', dirname(__FILE__));
define('PARENTDIR',dirname(RDIR));
}
if(@$_SERVER["HTTPS"] == "on")
{
$protocol = "https://";
}
else
{
$protocol = "http://";
}
$parameters=unserialize(file_get_contents(str_replace('arg.php','config.dat',__FILE__)));
$PATH = 'freichat/'; // Use this only if you have placed the freichat folder somewhere else
$installed=true;
$admin_pswd='adminpass';
$url=$protocol.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
$show_name=$parameters['show_name']; //you can have guest or user
$displayname=$parameters['displayname']; //you can have username / name(nickname)
$show_module=$parameters['show_module']; //you can have'visible' or'hidden'
$chatspeed=$parameters['chatspeed']; //Do not change this value
$fxval=$parameters['fxval']; //Set it to false if you do not want animations
$draggable=$parameters['draggable'];
$conflict=$parameters['conflict']; //Jquery Conflicts 'true' or ''
$msgSendSpeed=$parameters['msgSendSpeed']; //Message are sent after 1 second of post, reducing it will increase FreiChatX message sending speed but also will send more requests to the server! NOTE:: Do not decrease it below 1000
$show_avatar=$parameters['show_avatar']; //Can have block or none
$debug=$parameters['debug']; //option for debugging ,default is false
$freichat_theme=$parameters['freichat_theme'];
$css=$freichat_theme; //background color
$color=$css; //colour for chatbuttons
$lang=$parameters['lang']; //Language please do not include .php here only file name
$load=$parameters['load']; //chatbox
$dyncss='disable'; //template patch
$evnixpower='visible'; //powered by evnix
$show_chatbox='';
$time=$parameters['time']; //In seconds
$GZIP_handler = $parameters['GZIP_handler'];
$JSdebug=$parameters['JSdebug']; // Javascript debug info shown in firebug (firefox extension). No quotes around true or false
$busy_timeOut=$parameters['busy_timeOut']; //In seconds user will be switched to busy status
$offline_timeOut=$parameters['offline_timeOut']; //In seconds user will be switched to offline status
/*FreiChatX plugin parameters*/
// File sending
$show_file_sending_plugin=$parameters['plugins']['file_sender']['show'];
$file_size_limit=$parameters['plugins']['file_sender']['file_size']; //In Kilobytes
$expirytime=$parameters['plugins']['file_sender']['expiry']; //In minutes after which the uploaded files will be deleted
$valid_exts=$parameters['plugins']['file_sender']['valid_exts']; //valid extensions separated by comma
$playsound = $parameters["playsound"];
//Translate
$show_translate_plugin = 'enabled';
//Chatroom plugin
$show_chatroom_plugin = 'enabled';
//Video Chat plugin
$show_videochat_plugin = 'disabled'; //Pending !!
//coversation save
$show_save_plugin = 'enabled';
$show_smiley_plugin = 'enabled';
//send conversation plugin
$show_mail_plugin = 'enabled';
$smtp_username='';
$smtp_password='';
$mailtype=$parameters["plugins"]["send_conv"]["mailtype"];
$smtp_server=$parameters["plugins"]["send_conv"]["smtp_server"];
$smtp_port=$parameters["plugins"]["send_conv"]["smtp_port"];
$smtp_protocol=$parameters["plugins"]["send_conv"]["smtp_protocol"];
$mail_from_address=$parameters["plugins"]["send_conv"]["from_address"];
$mail_from_name=$parameters["plugins"]["send_conv"]["from_name"];
/* ACL PERMISSIONS */
/* Here allow or noallow can be used to grant and prohibit permissions respectively */
$ACL = array(
'FILE' => array( /* File upload/send plugin */
'user' => 'allow',
'guest' => 'allow'
),
'TRANSLATE' => array(
'user' => 'allow',
'guest' => 'allow'
),
'SAVE' => array(
'user' => 'allow',
'guest' => 'allow'
),
'SMILEY' => array(
'user' => 'allow',
'guest' => 'allow'
),
'MAIL' => array(
'user' => 'allow',
'guest' => 'allow'
),
'VIDEOCHAT' => array(
'user' => 'noallow',
'guest' => 'noallow'
)
);
/* ACL PERMISSIONS */
/* To ensure boolean is parsed */
if($debug == "true")
{
$debug = true;
}
else
{
$debug = false;
}
//Also
if($JSdebug == "true")
{
$JSdebug = true;
}
else
{
$JSdebug = false;
}
/* Data base details */
$con='mysql';
$username='web1217';
$password='7WrTvSNe';
$client_db_name='usr_web1217_2';
$host='localhost';
$driver='Custom';
$db_prefix='testing';
$uid='4ee3a51894a42';
/* NOTE:= Below setting only applies to users using custom driver*/
//Tell FreiChatX what to use { Pure session } OR { Session and database }
/*
* Psession -> Pure sessions
* Sdatabase -> Session with database
*/
$freiuse="Psession"; //can have value as Psession or Sdatabase
/* If you are using only sessions to store User details */
//Please use only the index of session variable
//The default value in user name or user id session when user is a guest
$default_ses=null; //If you dont make any checks leave it null
$ses_username='root'; /* Username stored in session*/ //Only index value
$ses_userid='loginid'; /* Userid stored in session */ //Only index value
/* OR */
/* if you are using database table to store User details */
$usertable='login'; //specifies the name of the table in which your user information is stored.
$row_username='root'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='loginid'; //specifies the name of the field in which the user's id is stored (usually id or userid)
//Avatar
$avatar_field_name = 'avatar';
?>
3: main.php
<?php session_start();
error_reporting(-1);
require_once '../arg.php';
$zlib = false;
if($GZIP_handler == 'ON')
{
if (extension_loaded('zlib')) {
$zlib = true;
ob_start('ob_gzhandler');
}
}
//header("Content-type: text/javascript");
if (!isset($_GET['id']) || !isset($_GET['xhash'])) {
//exit;
}
//-------------------PHP includes----------------------------------------------
require '../define.php';
//require 'themeBC.php';
//-----------------------------------------------------------------------------
class X_main extends freichatXconstruct {
public function __construct() {
parent::__construct();
}
public function initiateFreiChatX() {
require_once '../server/drivers/' . $this->driver . '.php';
$this->freichat_debug("main.php loaded");
if (!isset($_SESSION[$this->uid . 'freistatus'])) {
$_SESSION[$this->uid . 'freistatus'] = 1;
}
if (!isset($_SESSION[$this->uid . 'custom_mesg'])) {
$_SESSION[$this->uid . 'custom_mesg'] = $this->frei_trans['default_status'];
}
if (isset($_SESSION[$this->uid . 'ses_id']) == false) {
$parameters = array(
"id" => strip_tags($_GET['id']),
"custom_mesg" => false,
"first" => false
);
if (!isset($_SESSION[$this->uid . 'in_room'])) {
$_SESSION[$this->uid . 'in_room'] = -1;
}
$this->connectDB();
$sessions = new $this->driver($this->db);
$sessions->uid = $this->uid;
$sessions->permanent_name = $this->permanent_name;
$sessions->permanent_id = $this->permanent_id;
$sessions->online_time = $this->online_time;
$sessions->online_time2 = $this->online_time2;
$sessions->time_string = $this->time_string;
$sessions->show_name = $this->show_name;
$sessions->usr_list_wanted = false;
$sessions->db_prefix = $this->db_prefix;
$sessions->displayname = $this->displayname;
$sessions->frei_trans = $this->frei_trans;
$sessions->debug = $this->debug;
$sessions->update_usr_info = true;
$sessions->url = $this->url;
$sessions->driver = $this->driver;
$sessions->to_freichat_path = $this->to_freichat_path;
$sessions->options = $parameters;
$sessions->row_username = $this->row_username;
$sessions->row_userid = $this->row_userid;
$sessions->usertable = $this->usertable;
$sessions->load_driver();
}
}
}
$construct = new X_main;
$construct->initiateFreiChatX();
if (isset($_SESSION)) {
$username = $_SESSION[$construct->uid . 'usr_name'];
$id = $_SESSION[$construct->uid . 'usr_ses_id'];
} else {
$construct->freichat_debug("Session Not Yet Created in client side");
}
$frei_trans[] = Array();
require '../arg.php';
require '../client/jquery/freichat_themes/defarg.php';
require '../client/jquery/freichat_themes/' . $freichat_theme . '/argument.php';
$frei_trans = $construct->inc_lang();
$url = str_replace('client/main.php', '', $url);
if(isset($_SERVER['HTTP_REFERER'])){
$referer_url = $_SERVER['HTTP_REFERER'];
}else
{
$referrer_url = $url;
}
if (strpos($referer_url, 'www.') == TRUE) {
$url = str_replace('http://', 'http://www.', $url);
}
if (strpos($url, 'www.www.') == TRUE) {
$url = str_replace('http://www.www.', 'http://www.', $url);
}
$pfromname = str_replace("'", "\'", $_SESSION[$uid . "usr_name"]);
$custom_mesg = "";
if (isset($_SESSION[$uid . "custom_mesg"])) {
if ($_SESSION[$uid . "custom_mesg"] != "" && $_SESSION[$uid . "custom_mesg"] != "i am null" && $_SESSION[$uid . "custom_mesg"] != null) {
$custom_mesg = $_SESSION[$uid . "custom_mesg"];
}
} else {
$custom_mesg = 'I am available';
}
require_once 'jquery/js/jquery.1.6.js';
require_once 'jquery/js/jquery-ui.js';
require_once 'plugins/translate/js/jquery.translate-1.3.9.min.js';
require_once 'jquery/js/combined.js'; //include SM 2_.2.97a + slick + dragx
require_once 'jsdef.js';
require_once 'plugins.js';
require_once 'freichat.js';
//require("chatroom_orig.js");
if ($construct->show_chatroom_plugin == 'enabled') {
}else{
//$jn("#dc-slick-9").hide();
}
if($GZIP_handler == 'ON')
{
if ($zlib == true) {
ob_end_flush();
}
}
?>
4. freixlog
December 10, 2011, 2:26 pm: Inserted the user with the following data :: Username = Gast-1kn7 And ID = 1323657119 Default status = I am available
December 10, 2011, 2:26 pm: main.php loaded
December 10, 2011, 2:26 pm: connected to database successfully
December 10, 2011, 2:26 pm: Wrong method defined!
December 10, 2011, 2:27 pm: main.php loaded
December 10, 2011, 2:27 pm: connected to database successfully
December 10, 2011, 2:27 pm: Wrong method defined!
December 10, 2011, 2:28 pm: main.php loaded
December 10, 2011, 2:28 pm: connected to database successfully
December 10, 2011, 2:28 pm: Wrong method defined!
The Adminpanel is working too ..
I Think my Minds are wrong but wich, where ?
The address 4 my site ( its 4 testing reasons don´t worry if it get a crash ;- ) )
http://eplay-forum.de
4 Admin ( Standardpassword )
http://www.eplay-forum.de/inc/_templates_/version1.5/freichat/administrator/index.php
login: WolF
PW: h6w5wZWUQW368GW
Thx 4 Help!
WOlF
If this here at the wrong Place .. Sry 4 that !