mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +03:00
ability to turn off "Statistics" feature
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@429 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
76affc9b4b
commit
bf7d51201e
@ -520,6 +520,7 @@ $settings = array(
|
||||
'enablessl' => '0',
|
||||
'usercanchangename' => '1',
|
||||
'enabledepartments' => '0',
|
||||
'enablestatistics' => '1',
|
||||
);
|
||||
$settingsloaded = false;
|
||||
$settings_in_db = array();
|
||||
|
@ -221,7 +221,7 @@ function prepare_menu($operator,$hasright=true) {
|
||||
loadsettings();
|
||||
$page['showban'] = $settings['enableban'] == "1";
|
||||
$page['showdep'] = $settings['enabledepartments'] == "1";
|
||||
$page['showstat'] = true; //$settings['enablestatistics'] == "1";
|
||||
$page['showstat'] = $settings['enablestatistics'] == "1";
|
||||
$page['showadmin'] = is_capable($can_administrate, $operator);
|
||||
}
|
||||
}
|
||||
|
@ -322,8 +322,10 @@ settings.enableban.description=Using it you can block attacks from specific IPs
|
||||
settings.enableban=Enable feature "Malicious Visitors"
|
||||
settings.enabledepartments.description=Use it to have separate queues for different questions.
|
||||
settings.enabledepartments=Enable "Departments"
|
||||
settings.enablessl.description=Please, note that your web server should be<br/> configured to support https requests.
|
||||
settings.enablessl.description=Please, note that your web server should be configured to support https requests.
|
||||
settings.enablessl=Allow secure connections (SSL)
|
||||
settings.enablestatistics.description=Adds page with messenger usage reports.
|
||||
settings.enablestatistics=Enable "Statistics"
|
||||
settings.geolink.description=Each IP becomes a link opening in new window. {ip} is substituted with a real ip.
|
||||
settings.geolink=Link to an external geolocation service
|
||||
settings.geolinkparams.description=Window size and toolbars hiding
|
||||
|
@ -21,7 +21,7 @@ $operator = check_login();
|
||||
$page = array('agentId' => '');
|
||||
$errors = array();
|
||||
|
||||
$options = array('enableban', 'usercanchangename', 'enablessl', 'enabledepartments');
|
||||
$options = array('enableban', 'usercanchangename', 'enablessl', 'enabledepartments', 'enablestatistics');
|
||||
|
||||
loadsettings();
|
||||
$params = array();
|
||||
|
@ -53,15 +53,6 @@ require_once('inc_errors.php');
|
||||
<br clear="left"/>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<div class="flabel"><?php echo getlocal('settings.enableban') ?></div>
|
||||
<div class="fvalue">
|
||||
<input type="checkbox" name="enableban" value="on"<?php echo form_value_cb('enableban') ? " checked=\"checked\"" : "" ?>/>
|
||||
</div>
|
||||
<div class="fdescr"> — <?php echo getlocal('settings.enableban.description') ?></div>
|
||||
<br clear="left"/>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<div class="flabel"><?php echo getlocal('settings.enablessl') ?></div>
|
||||
<div class="fvalue">
|
||||
@ -72,7 +63,16 @@ require_once('inc_errors.php');
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<div class="flabel"><?php echo getlocal('settings.enabledepartments') ?> <span style="color:red;font-weight: bold;">- !!</span> incomplete in 1.6.0 alpha, use on your own risk</div>
|
||||
<div class="flabel"><?php echo getlocal('settings.enableban') ?></div>
|
||||
<div class="fvalue">
|
||||
<input type="checkbox" name="enableban" value="on"<?php echo form_value_cb('enableban') ? " checked=\"checked\"" : "" ?>/>
|
||||
</div>
|
||||
<div class="fdescr"> — <?php echo getlocal('settings.enableban.description') ?></div>
|
||||
<br clear="left"/>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<div class="flabel"><?php echo getlocal('settings.enabledepartments') ?></div>
|
||||
<div class="fvalue">
|
||||
<input type="checkbox" name="enabledepartments" value="on"<?php echo form_value_cb('enabledepartments') ? " checked=\"checked\"" : "" ?>/>
|
||||
</div>
|
||||
@ -80,6 +80,15 @@ require_once('inc_errors.php');
|
||||
<br clear="left"/>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<div class="flabel"><?php echo getlocal('settings.enablestatistics') ?></div>
|
||||
<div class="fvalue">
|
||||
<input type="checkbox" name="enablestatistics" value="on"<?php echo form_value_cb('enablestatistics') ? " checked=\"checked\"" : "" ?>/>
|
||||
</div>
|
||||
<div class="fdescr"> — <?php echo getlocal('settings.enablestatistics.description') ?></div>
|
||||
<br clear="left"/>
|
||||
</div>
|
||||
|
||||
<div class="fbutton">
|
||||
<input type="image" name="save" value="" src='<?php echo $webimroot.getlocal("image.button.save") ?>' alt='<?php echo getlocal("button.save") ?>'/>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user