2007-10-10 19:15:47 +04:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* This file is part of Web Instant Messenger project.
|
|
|
|
*
|
2008-10-02 16:01:31 +04:00
|
|
|
* Copyright (c) 2005-2008 Web Messenger Community
|
2007-10-10 19:15:47 +04:00
|
|
|
* All rights reserved. This program and the accompanying materials
|
|
|
|
* are made available under the terms of the Eclipse Public License v1.0
|
|
|
|
* which accompanies this distribution, and is available at
|
|
|
|
* http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
*
|
|
|
|
* Contributors:
|
|
|
|
* Evgeny Gryaznov - initial API and implementation
|
|
|
|
*/
|
|
|
|
|
2008-09-30 03:07:06 +04:00
|
|
|
/*
|
|
|
|
* Application path on server
|
2007-10-30 15:13:04 +03:00
|
|
|
*/
|
|
|
|
$webimroot = "/webim";
|
|
|
|
|
2007-10-10 19:15:47 +04:00
|
|
|
/*
|
|
|
|
* MySQL Database parameters
|
|
|
|
*/
|
|
|
|
$mysqlhost = "localhost";
|
|
|
|
$mysqldb = "webim_db";
|
|
|
|
$mysqllogin = "webim_lite";
|
|
|
|
$mysqlpass = "123";
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Localization parameters
|
|
|
|
*/
|
|
|
|
|
2008-05-06 01:08:57 +04:00
|
|
|
/* Use UTF-8 database */
|
2007-10-10 19:15:47 +04:00
|
|
|
$dbencoding = "utf8";
|
2008-05-06 15:14:48 +04:00
|
|
|
$webim_encoding = "utf-8";
|
2007-10-10 19:15:47 +04:00
|
|
|
$force_charset_in_connection = true;
|
|
|
|
|
2008-05-12 13:23:16 +04:00
|
|
|
/*
|
|
|
|
* Web Messenger 1.0.8 an earlier stored user name in cookie in "webim_encoding". If
|
|
|
|
* you used this versions of webim set your previous encoding here.
|
|
|
|
*/
|
|
|
|
$compatibility_encoding = "cp1251";
|
|
|
|
|
2008-06-05 02:51:46 +04:00
|
|
|
/*
|
|
|
|
* This encoding will be used for emails
|
|
|
|
*/
|
|
|
|
$mail_encoding = $webim_encoding;
|
|
|
|
|
2007-10-10 19:15:47 +04:00
|
|
|
/*
|
|
|
|
* From field in outgoing mail.
|
|
|
|
*/
|
2008-05-06 01:08:57 +04:00
|
|
|
$webim_from_email = "webim@yourdomain.com"; /* email from field */
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2007-12-03 00:32:47 +03:00
|
|
|
/*
|
2008-09-30 03:07:06 +04:00
|
|
|
* Inbox for left messages encoding
|
2007-12-03 00:32:47 +03:00
|
|
|
*/
|
2008-06-05 02:51:46 +04:00
|
|
|
$webim_messages_locale = "en";
|
2007-12-03 00:32:47 +03:00
|
|
|
|
2007-10-10 19:15:47 +04:00
|
|
|
/*
|
2008-09-30 03:07:06 +04:00
|
|
|
* Locales
|
2007-10-10 19:15:47 +04:00
|
|
|
*/
|
|
|
|
$available_locales = array("en", "ru");
|
2008-09-30 03:07:06 +04:00
|
|
|
$home_locale = "ru"; /* native name will be used in this locale */
|
|
|
|
$default_locale = "en"; /* if user does not provide known lang */
|
2007-10-10 19:15:47 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Allows users to change their names
|
|
|
|
*/
|
|
|
|
$user_can_change_name = true;
|
|
|
|
|
|
|
|
/*
|
2008-10-03 19:15:09 +04:00
|
|
|
* How to build presentable visitor name from {name}, {id} or {addr}. Default: {name}
|
2008-09-30 03:07:06 +04:00
|
|
|
*/
|
2007-10-10 19:15:47 +04:00
|
|
|
$presentable_name_pattern = "{name}";
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Method of getting information about remote user. For example, you could
|
|
|
|
* have user name or id in session. Default value: visitor_from_request
|
|
|
|
*/
|
|
|
|
$remote_visitor = 'visitor_from_request';
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Timeout (in seconds) when online operator becomes offline.
|
|
|
|
*/
|
|
|
|
$online_timeout = 30;
|
|
|
|
|
2008-10-03 19:15:09 +04:00
|
|
|
/*
|
|
|
|
* Link to page with information about user, {id} is substituted
|
|
|
|
*/
|
|
|
|
$user_link_pattern = "";
|
|
|
|
|
2007-10-10 19:15:47 +04:00
|
|
|
?>
|