Added "logged_in_refresh_link" agc/options.php option, to allow clickable "Logged in as..." link at top to force Javascript refresh. New behavior is to default this to off.

git-svn-id: svn://192.168.202.10@3086 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2019-03-30 12:24:02 +00:00
parent 0757435542
commit b88c532b78
2 changed files with 12 additions and 4 deletions
+3 -1
View File
@@ -1,7 +1,7 @@
<?php
# options.php - manually defined options for vicidial.php
#
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
# Copyright (C) 2019 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
#
# rename this file to options.php for the settings here to go into effect
#
@@ -15,6 +15,7 @@
# 160910-1317 - Added use_agent_colors option
# 180223-1657 - Added $INSERT_ variables
# 180425-2035 - Added #INSERT_first_onload variable
# 190330-0817 - Added logged_in_refresh_link
#
$conf_silent_prefix = '5'; # vicidial_conferences prefix to enter silently and muted for recording
@@ -52,6 +53,7 @@ $mrglock_ig_select_ct = '4'; # number of seconds to leave in-group select screen
$link_to_grey_version = '1'; # show link to old grey version of agent screen at login screen, next to timeclock link
$use_agent_colors = '1'; # agent chat colors
$no_empty_session_warnings=0; # set to 1 to disable empty session warnings on agent screen
$logged_in_refresh_link = '0'; # set to 1 to allow clickable "Logged in as..." link at top to force Javascript refresh
$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen
+9 -3
View File
@@ -609,10 +609,11 @@
# 190108-0833 - Added manual_dial_validation option, updated dates for 2019
# 190222-1316 - Added recent session per-call logging
# 190310-2017 - Added mute_recordings system/campaign/user option
# 190330-0815 - Added logged_in_refresh_link option
#
$version = '2.14-578c';
$build = '190310-2017';
$version = '2.14-579c';
$build = '190330-0815';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=87;
$one_mysql_log=0;
@@ -832,6 +833,7 @@ $consult_custom_delay = '2'; # number of seconds to delay consultative transfers
$mrglock_ig_select_ct = '4'; # number of seconds to leave in-group select screen open if agent select is disabled
$link_to_grey_version = '1'; # show link to old grey version of agent screen at login screen, next to timeclock link
$no_empty_session_warnings=0; # set to 1 to disable empty session warnings on agent screen
$logged_in_refresh_link = '0'; # set to 1 to allow clickable "Logged in as..." link at top to force Javascript refresh
$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen, FOR DEBUG ONLY
@@ -19318,7 +19320,11 @@ $zi=2;
<input type="hidden" name="custom_field_values" id="custom_field_values" value="" />
<input type="hidden" name="FORM_LOADED" id="FORM_LOADED" value="0" />
<font class="queue_text">
<a href="#" onclick="start_all_refresh();"><font class="queue_text"><?php echo _QXZ("Logged in as User"); ?></font></a><?php
<?php
if ($logged_in_refresh_link > 0)
{echo "<a href=\"#\" onclick=\"start_all_refresh();\"><font class=\"queue_text\">"._QXZ("Logged in as User")."</font></a>";}
else
{echo "<font class=\"queue_text\">"._QXZ("Logged in as User")."</font>";}
echo _QXZ(": %1s on Phone: %2s",0,'',$VD_login,$SIP_user);
if ($on_hook_agent == 'Y')
{echo "(<a href=\"#\" onclick=\"NoneInSessionCalL();return false;\">"._QXZ("ring")."</a>)";}