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/cometchatcss.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/cometchatcss.php on line 67
Warning: include_once(/home/loftxbiz/public_html/cometchat/themes//css/cometchat.css) [function.include-once]: failed to open stream: No such file or directory in /home/loftxbiz/public_html/cometchat/cometchatcss.php on line 69
Warning: include_once() [function.include]: Failed opening '/home/loftxbiz/public_html/cometchat/themes//css/cometchat.css' for inclusion (include_path='.:/usr/share/pear') in /home/loftxbiz/public_html/cometchat/cometchatcss.php on line 69