Ajouter un ami";
$language[8] = "SVP logguez vous pour utiliser LoftXmessenger";
$language[9] = "LoftXmessenger";
$language[10] = "Moi";
$language[11] = "Se mettre hors ligne";
$language[12] = "Qui est en ligne";
$language[13] = " Desactiver les sons";
$language[14] = "Personne en ligne";
$language[15] = "Nouveau Message";
$language[16] = "http://www.loftxbiz.biz/login.php"; // Login link when user clicks on yellow triangle (specify only link i.e. http://yoursite.com/login.php)
$language[17] = "Hors Ligne";
$status['available'] = "Je suis disponible";
$status['busy'] = "Je suis occupé";
$status['offline'] = "Je suis hors ligne";
$status['invisible'] = "Je suis hors ligne";
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* ICONS */
$trayicon[] = array('home.png','Accueil','/');
$trayicon[] = array('chatrooms.png','Chatrooms',BASE_URL.'modules/chatrooms/index.php','_popup','500','300');
// $trayicon[] = array('themechanger.png','Change theme',BASE_URL.'modules/themechanger/index.php','_popup','200','100');
// $trayicon[] = array('games.png','Single Player Games',BASE_URL.'modules/games/index.php','_popup','650','490');
// $trayicon[] = array('share.png','Share This Page','http://www.addthis.com/bookmark.php','_popup','480','400');
// $trayicon[] = array('translate.png','Translate This Page',BASE_URL.'modules/translate/index.php','_popup','300','200');
$trayicon[] = array('twitter.png','Twitter',BASE_URL.'modules/twitter/index.php','_popup','500','300');
$trayicon[] = array('facebook.png','Facebook',BASE_URL.'modules/facebook/index.php','_popup','500','470');
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* PLUGINS */
$plugins = array(
'filetransfer',
'divider',
'clearconversation',
'chathistory',
'chattime',
'handwrite'
);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* SMILEYS */
$smileys = array(
':)' => 'smiley',
':-)' => 'smiley',
':(' => 'smiley-sad',
':-(' => 'smiley-sad',
':D' => 'smiley-lol',
';-)' => 'smiley-wink',
';)' => 'smiley-wink',
':o' => 'smiley-surprise',
':-o' => 'smiley-surprise',
'8-)' => 'smiley-cool',
'8)' => 'smiley-cool',
':|' => 'smiley-neutral',
':-|' => 'smiley-neutral',
":'(" => 'smiley-cry',
":'-(" => 'smiley-cry',
":p" => 'smiley-razz',
":-p" => 'smiley-razz',
":s" => 'smiley-confuse',
":-s" => 'smiley-confuse',
":x" => 'smiley-mad',
":-x" => 'smiley-mad',
);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* BANNED WORDS */
$bannedWords = array(
'webxfrance','najoh','bizpowa','bitch'
);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* ADMIN */
define('ADMIN_USER','LoftXbiz');
define('ADMIN_PASS','cometchat');
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* COOKIE */
$cookiePrefix = 'cc_'; // Modify only if you have multiple CometChat instances on the same site
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* THEME */
$theme = 'dark'; // Default theme, if no cookie preference is found
if (!empty($_COOKIE[$cookiePrefix."theme"])) {
$theme = $_COOKIE[$cookiePrefix."theme"];
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* MISCELLANEOUS */
$autoPopupChatbox = 1; // Auto-open chatbox when a new message arrives
$messageBeep = 1; // Beep on arrival of new messages (user can over-ride this setting)
$minHeartbeat = 3000; // Minimum poll-time
$maxHeartbeat = 12000; // Maximum poll-time
define('REFRESH_BUDDYLIST','10'); // Time in seconds after which the user's "Who's Online" list is refreshed
define('ONLINE_TIMEOUT','360'); // Time in seconds after which a user is considered offline
define('DISABLE_SMILEYS','0'); // Set to 1 if you want to disable smileys
define('DISABLE_LINKING','0'); // Set to 1 if you want to disable auto linking
define('DISABLE_YOUTUBE','0'); // Set to 1 if you want to disable YouTube thumbnail
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* ADVANCED */
define('DEV_MODE','0'); // Set to 1 only during development
define('ERROR_LOGGING','0'); // Set to 1 to log all errors (error.log file)
define('SET_SESSION_NAME',''); // Session name
define('DO_NOT_START_SESSION','0'); // Set to 1 if you have already started the session
define('DO_NOT_DESTROY_SESSION','0'); // Set to 1 if you do not want to destroy session on logout
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* DATABASE */
include_once dirname(dirname(__FILE__))."/includes/config.php";
/* DO NOT EDIT */
define('DB_SERVER', $config['MasterServer']['servername'] );
define('DB_PORT', $config['MasterServer']['port'] );
define('DB_USERNAME', $config['MasterServer']['username'] );
define('DB_PASSWORD', $config['MasterServer']['password'] );
define('DB_NAME', $config['Database']['dbname'] );
define('TABLE_PREFIX', $config['Database']['tableprefix'] );
define('DB_USERTABLE', 'user' );
define('DB_USERTABLE_NAME', 'username' );
define('DB_USERTABLE_USERID', 'userid' );
define('DB_USERTABLE_LASTACTIVITY', 'lastactivity' );
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* FUNCTIONS */
function getUserID() {
$userid = 0;
global $config;
$cookie = $config['Misc']['cookieprefix'].'sessionhash';
if (!empty($_COOKIE[$cookie])) {
$sql = ("select userid from ".TABLE_PREFIX."session where sessionhash = '".mysql_real_escape_string($_COOKIE[$cookie])."'");
$query = mysql_query($sql);
$session = mysql_fetch_array($query);
$userid = $session['userid'];
}
$cookie = 'bb_sessionhash';
if (!empty($_COOKIE[$cookie])) {
$sql = ("select userid from ".TABLE_PREFIX."session where sessionhash = '".mysql_real_escape_string($_COOKIE[$cookie])."'");
$query = mysql_query($sql);
$session = mysql_fetch_array($query);
$userid = $session['userid'];
}
return $userid;
}
function getFriendsList($userid,$time) {
$sql = ("select DISTINCT ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." userid, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_NAME." username, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_LASTACTIVITY." lastactivity, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." avatar, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." link, cometchat_status.message, cometchat_status.status from ".TABLE_PREFIX.DB_USERTABLE." left join cometchat_status on ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." = cometchat_status.userid where ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." <> '".mysql_real_escape_string($userid)."' and ('".$time."'-lastactivity < 180) order by username asc");
return $sql;
}
function getUserDetails($userid) {
$sql = ("select ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." userid, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_NAME." username, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_LASTACTIVITY." lastactivity, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." link, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." avatar, cometchat_status.message, cometchat_status.status from ".TABLE_PREFIX.DB_USERTABLE." left join cometchat_status on ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." = cometchat_status.userid where ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." = '".mysql_real_escape_string($userid)."'");
return $sql;
}
function updateLastActivity($userid) {
$sql = ("update `".TABLE_PREFIX.DB_USERTABLE."` set ".DB_USERTABLE_LASTACTIVITY." = '".getTimeStamp()."' where ".DB_USERTABLE_USERID." = '".mysql_real_escape_string($userid)."'");
return $sql;
}
function getUserStatus($userid) {
$sql = ("select cometchat_status.message, cometchat_status.status from cometchat_status where userid = '".mysql_real_escape_string($userid)."'");
return $sql;
}
function getLink($link) {
return "./member.php?u=".$link;
}
function getAvatar($image) {
return "./ccpic.php?userid=".$image;
}
function getTimeStamp() {
return time();
}
function processTime($time) {
return $time;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* HOOKS */
function hooks_statusupdate($userid,$statusmessage) {
}
function hooks_forcefriends() {
}
function hooks_activityupdate($userid,$status) {
}
function hooks_message($userid,$unsanitizedmessage) {
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Warning: Cannot modify header information - headers already sent by (output started at /home/loftxbiz/public_html/cometchat/config.php:120) in /home/loftxbiz/public_html/cometchat/cometchatjs.php on line 66
Warning: Cannot modify header information - headers already sent by (output started at /home/loftxbiz/public_html/cometchat/config.php:120) in /home/loftxbiz/public_html/cometchat/cometchatjs.php on line 67
Warning: implode() [function.implode]: Invalid arguments passed in /home/loftxbiz/public_html/cometchat/cometchatjs.php on line 79
if(typeof(jqcc) === 'undefined') {
jqcc = jQuery;
}
/**
* Cookie plugin
*
* Copyright (c) 2006 Klaus Hartl (stilbuero.de)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
*/
jqcc.cookie=function(a,b,c){if(typeof b!='undefined'){c=c||{};if(b===null){b='';c.expires=-1}var d='';if(c.expires&&(typeof c.expires=='number'||c.expires.toUTCString)){var e;if(typeof c.expires=='number'){e=new Date();e.setTime(e.getTime()+(c.expires*24*60*60*1000))}else{e=c.expires}d='; expires='+e.toUTCString()}var f=c.path?'; path='+(c.path):'';var g=c.domain?'; domain='+(c.domain):'';var h=c.secure?'; secure':'';document.cookie=[a,'=',encodeURIComponent(b),d,f,g,h].join('')}else{var j=null;if(document.cookie&&document.cookie!=''){var k=document.cookie.split(';');for(var i=0;i7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="