"send message with:" option

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@469 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2009-04-10 16:06:20 +00:00
parent 3866f37f22
commit 88057b15d0
5 changed files with 16 additions and 1 deletions

View File

@ -531,6 +531,7 @@ $settings = array(
'email' => '', /* inbox for left messages */ 'email' => '', /* inbox for left messages */
'left_messages_locale' => $home_locale, 'left_messages_locale' => $home_locale,
'sendmessagekey' => 'center',
'enableban' => '0', 'enableban' => '0',
'enablessl' => '0', 'enablessl' => '0',

View File

@ -391,6 +391,7 @@ settings.no.title=Please enter your company title
settings.onehostconnections.description=0 allows any number of connections settings.onehostconnections.description=0 allows any number of connections
settings.onehostconnections=Max number of threads from one address settings.onehostconnections=Max number of threads from one address
settings.saved=Changes saved settings.saved=Changes saved
settings.sendmessagekey=Send messages with:
settings.survey.askgroup.description=Show/hide department selection field in the survey settings.survey.askgroup.description=Show/hide department selection field in the survey
settings.survey.askgroup=Allows visitor to choose department/group settings.survey.askgroup=Allows visitor to choose department/group
settings.survey.askmail.description=Show/hide email field in the survey settings.survey.askmail.description=Show/hide email field in the survey

View File

@ -391,6 +391,7 @@ settings.no.title=
settings.onehostconnections.description=0 разрешает любое количество соединений settings.onehostconnections.description=0 разрешает любое количество соединений
settings.onehostconnections=Максимальное количество диалогов с одного адреса settings.onehostconnections=Максимальное количество диалогов с одного адреса
settings.saved=Изменения сохранены settings.saved=Изменения сохранены
settings.sendmessagekey=Посылать сообщение по:
settings.survey.askgroup.description=Показать/спрятать выбор группы в диалоге перед началом чата settings.survey.askgroup.description=Показать/спрятать выбор группы в диалоге перед началом чата
settings.survey.askgroup=Позволять посетителю выбирать группу операторов settings.survey.askgroup=Позволять посетителю выбирать группу операторов
settings.survey.askmail.description=Показать/спрятать поле ввода адреса электронной почты settings.survey.askmail.description=Показать/спрятать поле ввода адреса электронной почты

View File

@ -34,7 +34,7 @@ if($handle = opendir($stylesfolder)) {
$options = array( $options = array(
'email', 'title', 'logo', 'hosturl', 'usernamepattern', 'email', 'title', 'logo', 'hosturl', 'usernamepattern',
'chatstyle', 'chattitle', 'geolink', 'geolinkparams', 'max_connections_from_one_host'); 'chatstyle', 'chattitle', 'geolink', 'geolinkparams', 'max_connections_from_one_host', 'sendmessagekey');
loadsettings(); loadsettings();
$params = array(); $params = array();
@ -52,6 +52,7 @@ if (isset($_POST['email']) && isset($_POST['title']) && isset($_POST['logo'])) {
$params['geolink'] = getparam('geolink'); $params['geolink'] = getparam('geolink');
$params['geolinkparams'] = getparam('geolinkparams'); $params['geolinkparams'] = getparam('geolinkparams');
$params['max_connections_from_one_host'] = trim(getparam('onehostconnections')); $params['max_connections_from_one_host'] = trim(getparam('onehostconnections'));
$params['sendmessagekey'] = verifyparam('sendmessagekey', "/^c?enter$/");
$params['chatstyle'] = verifyparam("chatstyle","/^\w+$/", $params['chatstyle']); $params['chatstyle'] = verifyparam("chatstyle","/^\w+$/", $params['chatstyle']);
if(!in_array($params['chatstyle'], $stylelist)) { if(!in_array($params['chatstyle'], $stylelist)) {
@ -94,6 +95,7 @@ $page['formusernamepattern'] = topage($params['usernamepattern']);
$page['formchatstyle'] = $params['chatstyle']; $page['formchatstyle'] = $params['chatstyle'];
$page['formchattitle'] = topage($params['chattitle']); $page['formchattitle'] = topage($params['chattitle']);
$page['formonehostconnections'] = $params['max_connections_from_one_host']; $page['formonehostconnections'] = $params['max_connections_from_one_host'];
$page['formsendmessagekey'] = $params['sendmessagekey'];
$page['availableStyles'] = $stylelist; $page['availableStyles'] = $stylelist;
$page['stored'] = isset($_GET['stored']); $page['stored'] = isset($_GET['stored']);

View File

@ -134,6 +134,16 @@ require_once('inc_errors.php');
<br clear="left"/> <br clear="left"/>
</div> </div>
<div class="field">
<div class="flabel"><?php echo getlocal('settings.sendmessagekey') ?></div>
<div class="fvaluenodesc">
<label>
<input type="radio" name="sendmessagekey" value="enter" <?php echo form_value("sendmessagekey") == "enter" ? " checked=\"checked\"" : ""?>/>Enter</label>
<label>
<input type="radio" name="sendmessagekey" value="center" <?php echo form_value("sendmessagekey") == "center" ? " checked=\"checked\"" : ""?>/>Ctrl-Enter</label>
</div>
</div>
<div class="fbutton"> <div class="fbutton">
<input type="image" name="save" value="" src='<?php echo $webimroot.getlocal("image.button.save") ?>' alt='<?php echo getlocal("button.save") ?>'/> <input type="image" name="save" value="" src='<?php echo $webimroot.getlocal("image.button.save") ?>' alt='<?php echo getlocal("button.save") ?>'/>
</div> </div>