<?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=false;
$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
$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 = 'disabled';
//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='root';
$password='';
$client_db_name='joomlaold';
$host='localhost';
$driver='Custom';
$db_prefix='jos_';
$uid='4e4a97179523c';
/* NOTE:= Below setting only applies to users using custom driver*/
$usertable='users'; //specifies the name of the table in which your user information is stored.
$row_username='name'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='id'; //specifies the name of the field in which the user's id is stored (usually id or userid)
//Avatar
$avatar_field_name = 'avatar';
?>