Added some new User Group settings
git-svn-id: svn://192.168.202.10@3546 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -754,7 +754,10 @@ agent_xfer_park_3way ENUM('Y','N') default 'Y',
|
||||
admin_ip_list VARCHAR(30) default '',
|
||||
agent_ip_list VARCHAR(30) default '',
|
||||
api_ip_list VARCHAR(30) default '',
|
||||
webphone_layout VARCHAR(255) default ''
|
||||
webphone_layout VARCHAR(255) default '',
|
||||
allowed_queue_groups TEXT,
|
||||
reports_header_override ENUM('DISABLED','LOGO_ONLY_SMALL','LOGO_ONLY_LARGE','ALT_1','ALT_2','ALT_3','ALT_4') default 'DISABLED',
|
||||
admin_home_url VARCHAR(255) default ''
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_campaigns (
|
||||
@@ -5040,4 +5043,4 @@ INSERT INTO vicidial_settings_containers(container_id,container_notes,container_
|
||||
|
||||
UPDATE system_settings set vdc_agent_api_active='1';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1649',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1650',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
|
||||
@@ -1850,3 +1850,9 @@ active ENUM('Y','N')
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1649',db_schema_update_date=NOW() where db_schema_version < 1649;
|
||||
|
||||
ALTER TABLE vicidial_user_groups ADD allowed_queue_groups TEXT;
|
||||
ALTER TABLE vicidial_user_groups ADD reports_header_override ENUM('DISABLED','LOGO_ONLY_SMALL','LOGO_ONLY_LARGE','ALT_1','ALT_2','ALT_3','ALT_4') default 'DISABLED';
|
||||
ALTER TABLE vicidial_user_groups ADD admin_home_url VARCHAR(255) default '';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1650',db_schema_update_date=NOW() where db_schema_version < 1650;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -90,6 +90,7 @@
|
||||
# 210707-0730 - Added header links for timezones, phone codes and postal codes
|
||||
# 210907-1904 - Added new OWNERCUSTOMx handle methods for menu options
|
||||
# 211208-1920 - Added Queue Groups to admin sidebar and sub-menu
|
||||
# 211215-2225 - Added User Group options for altered header display
|
||||
#
|
||||
|
||||
$stmt="SELECT admin_home_url,enable_tts_integration,callcard_enabled,custom_fields_enabled,allow_emails,level_8_disable_add,allow_chats,enable_languages,admin_row_click,admin_screen_colors,user_new_lead_limit,user_territories_active,qc_features_active,agent_soundboards,enable_drop_lists,allow_ip_lists from system_settings;";
|
||||
@@ -112,6 +113,8 @@ $SSagent_soundboards = $row[13];
|
||||
$SSenable_drop_lists = $row[14];
|
||||
$SSallow_ip_lists = $row[15];
|
||||
|
||||
if (strlen($SSadmin_home_url) > 5) {$admin_home_url_LU = $SSadmin_home_url;}
|
||||
|
||||
$SSmenu_background='015B91';
|
||||
$SSframe_background='D9E6FE';
|
||||
$SSstd_row1_background='9BB9FB';
|
||||
@@ -301,52 +304,71 @@ if($short_header)
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<TABLE CELLPADDING=0 CELLSPACING=0 BGCOLOR=#<?php echo "$SSmenu_background" ?>><TR>
|
||||
<TD><A HREF="./admin.php"><IMG SRC="<?php echo $selected_small_logo; ?>" WIDTH=71 HEIGHT=22 BORDER=0 ALT="System logo"></A> </TD>
|
||||
<?php
|
||||
if ( ($reports_only_user < 1) and ($qc_only_user < 1) )
|
||||
if ( ($LOGreports_header_override == 'LOGO_ONLY_SMALL') or ($LOGreports_header_override == 'LOGO_ONLY_LARGE') )
|
||||
{
|
||||
?>
|
||||
<TD> <A HREF="admin.php?ADD=999999" ALT="Reports" STYLE="text-decoration:none;"><?php echo $reports_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Reports"); ?></B></FONT></A> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=0A" ALT="Users" STYLE="text-decoration:none;"><?php echo $users_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Users"); ?></B></FONT></A> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=10" ALT="Campaigns" STYLE="text-decoration:none;"><?php echo $campaigns_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Campaigns"); ?></B></FONT></A> </TD>
|
||||
<?php
|
||||
if (($SSqc_features_active=='1') && ($qc_auth=='1'))
|
||||
$temp_logo = $selected_logo;
|
||||
$temp_logo_size = 'WIDTH=170 HEIGHT=45 BORDER=0';
|
||||
if ($LOGreports_header_override == 'LOGO_ONLY_SMALL')
|
||||
{
|
||||
$temp_logo = $selected_small_logo;
|
||||
$temp_logo_size = 'WIDTH=71 HEIGHT=22';
|
||||
}
|
||||
# echo "$SSmenu_background"
|
||||
?>
|
||||
<TABLE CELLPADDING=0 CELLSPACING=0 BGCOLOR=white><TR>
|
||||
<TD><A HREF="<?php echo $admin_home_url_LU ?>"><IMG SRC="<?php echo $temp_logo; ?>" <?php echo $temp_logo_size ?> BORDER=0 ALT="System logo"></A> </TD>
|
||||
<TD> </TD>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<TD> <A HREF="admin.php?ADD=100000000000000" ALT="Quality Control" STYLE="text-decoration:none;"><?php echo $qc_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Quality Control"); ?></B></FONT></A> </TD>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<TD> <A HREF="admin.php?ADD=100" ALT="Lists" STYLE="text-decoration:none;"><?php echo $lists_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Lists"); ?></B></FONT></A> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=1000000" ALT="Scripts" STYLE="text-decoration:none;"><?php echo $scripts_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Scripts"); ?></B></FONT></A> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=10000000" ALT="Filters" STYLE="text-decoration:none;"><?php echo $filters_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Filters"); ?></B></FONT></A> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=1001" ALT="Inbound" STYLE="text-decoration:none;"><?php echo $inbound_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Inbound"); ?></B></FONT></A> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=100000" ALT="User Groups" STYLE="text-decoration:none;"><?php echo $usergroups_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("User Groups"); ?></B></FONT></A> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=10000" ALT="Remote Agents" STYLE="text-decoration:none;"><?php echo $remoteagents_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Remote Agents"); ?></B></FONT></A> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=999998" ALT="Admin" STYLE="text-decoration:none;"><?php echo $admin_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Admin"); ?></B></FONT></A> </TD>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
<TABLE CELLPADDING=0 CELLSPACING=0 BGCOLOR=#<?php echo "$SSmenu_background" ?>><TR>
|
||||
<TD><A HREF="./admin.php"><IMG SRC="<?php echo $selected_small_logo; ?>" WIDTH=71 HEIGHT=22 BORDER=0 ALT="System logo"></A> </TD>
|
||||
<?php
|
||||
if ( ($reports_only_user < 1) and ($qc_only_user < 1) )
|
||||
{
|
||||
?>
|
||||
<TD width=600> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=999999" ALT="Reports" STYLE="text-decoration:none;"><?php echo $reports_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Reports"); ?></B></FONT></A> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=0A" ALT="Users" STYLE="text-decoration:none;"><?php echo $users_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Users"); ?></B></FONT></A> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=10" ALT="Campaigns" STYLE="text-decoration:none;"><?php echo $campaigns_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Campaigns"); ?></B></FONT></A> </TD>
|
||||
<?php
|
||||
if ($reports_only_user > 0)
|
||||
if (($SSqc_features_active=='1') && ($qc_auth=='1'))
|
||||
{
|
||||
?>
|
||||
<TD> <A HREF="admin.php?ADD=999999" ALT="Reports"><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Reports"); ?></B></A> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=100000000000000" ALT="Quality Control" STYLE="text-decoration:none;"><?php echo $qc_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Quality Control"); ?></B></FONT></A> </TD>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
if (($SSqc_features_active=='1') && ($qc_auth=='1'))
|
||||
?>
|
||||
<TD> <A HREF="admin.php?ADD=100" ALT="Lists" STYLE="text-decoration:none;"><?php echo $lists_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Lists"); ?></B></FONT></A> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=1000000" ALT="Scripts" STYLE="text-decoration:none;"><?php echo $scripts_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Scripts"); ?></B></FONT></A> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=10000000" ALT="Filters" STYLE="text-decoration:none;"><?php echo $filters_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Filters"); ?></B></FONT></A> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=1001" ALT="Inbound" STYLE="text-decoration:none;"><?php echo $inbound_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Inbound"); ?></B></FONT></A> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=100000" ALT="User Groups" STYLE="text-decoration:none;"><?php echo $usergroups_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("User Groups"); ?></B></FONT></A> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=10000" ALT="Remote Agents" STYLE="text-decoration:none;"><?php echo $remoteagents_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Remote Agents"); ?></B></FONT></A> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=999998" ALT="Admin" STYLE="text-decoration:none;"><?php echo $admin_icon ?> <FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Admin"); ?></B></FONT></A> </TD>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<TD width=600> </TD>
|
||||
<?php
|
||||
if ($reports_only_user > 0)
|
||||
{
|
||||
?>
|
||||
<TD> <A HREF="admin.php?ADD=100000000000000" ALT="Quality Control"><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Quality Control"); ?></B></FONT></A> </TD>
|
||||
<TD> <A HREF="admin.php?ADD=999999" ALT="Reports"><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Reports"); ?></B></A> </TD>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
if (($SSqc_features_active=='1') && ($qc_auth=='1'))
|
||||
{
|
||||
?>
|
||||
<TD> <A HREF="admin.php?ADD=100000000000000" ALT="Quality Control"><FONT FACE="ARIAL,HELVETICA" COLOR=WHITE SIZE=2><B><?php echo _QXZ("Quality Control"); ?></B></FONT></A> </TD>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# version: 20211208172501
|
||||
# version: 20211215003401
|
||||
users-user User ID <QXZ>This field is where you put the users ID number, can be up to 8 digits in length, Must be at least 2 characters in length.</QXZ>
|
||||
users-pass Password <QXZ>This field is where you put the users password. Must be at least 2 characters in length. Only letters and numbers are allowed in user passwords. A medium strength user password will be at least 10 characters in length, and a strong user password will be at least 20 characters in length and have letters as well as at least one number. It is recommended that you use a longer password if possible, stringing together several unrelated words with no spaces, and a number somewhere in the string. The maximum size of a password is 100 characters.</QXZ>
|
||||
users-force_change_password Force Change Password <QXZ>If this option is set to Y then the user will be prompted to change their password the next time they log in to the administration webpage or the agent screen. Default is N.</QXZ>
|
||||
@@ -763,6 +763,9 @@ user_groups-agent_xfer_options Agent Transfer Options <QXZ>These options allow f
|
||||
user_groups-agent_fullscreen Agent Fullscreen <QXZ>This option if set to Y will set the height and width of the agent screen to the size of the web browser window without any allowance for the Agents View, Calls in Queue View or Calls in Session view. Default is N for no or disabled.</QXZ>
|
||||
user_groups-agent_allowed_chat_groups Agent Allowed Chat Groups <QXZ>This is a selectable list of User Groups and user functions to which members of this user group can view the status of as well as transfer calls to inside of the agent screen. The ALL-GROUPS option allows the users in this group to see and transfer calls to any user on initiate an internal chat to within the agent screen. The CAMPAIGN-AGENTS option allows users in this group to see and start chats with any user in the campaign that they are logged into.</QXZ>
|
||||
user_groups-allowed_reports Allowed Reports <QXZ>If a user in this group is set to user level 7 or higher, then this feature can be used to restrict the reports that the users can view. Default is ALL. If you want to select more than one report then press the Ctrl key on your keyboard as you select the reports.</QXZ>
|
||||
user_groups-allowed_queue_groups Allowed Queue Groups <QXZ>This section enables you to define the Queue Groups that users within this User Group can view in the reports that use Queue Groups. Default is All Queue Groups.</QXZ>
|
||||
user_groups-reports_header_override Reports Header Override <QXZ>This option allows you to define alternate report web page short headers for users within this User Group. The LOGO_ONLY options will not display any other links on the top navigation bar. The ALT options are not active at this time. This feature currently only works with a few reports. Default is DISABLED.</QXZ>
|
||||
user_groups-admin_home_url Home URL Override <QXZ>This option allows you to override the System Settings Admin Home URL. If the Reports Header Override setting above is enabled, then this URL will be used for the logo that is displayed when clicked. Default is blank for disabled.</QXZ>
|
||||
user_groups-allowed_custom_reports Allowed Custom Reports <QXZ>If a user in this group is set to user level 7 or higher, then this feature can be used to restrict the custom reports that the users can view. Access is determined as reports are added from the custom reports admin page, for example, ALL is not the default. If you want to select more than one report then press the Ctrl key on your keyboard as you select the reports.</QXZ>
|
||||
user_groups-admin_ip_list Admin IP Whitelist <QXZ>If enabled, this will restrict administration web screen use to only be allowed from the selected list of IP Addresses. Default is DISABLED.</QXZ>
|
||||
user_groups-agent_ip_list Agent IP Whitelist <QXZ>If enabled, this will restrict agent web screen use to only be allowed from the selected list of IP Addresses. Default is DISABLED.</QXZ>
|
||||
|
||||
@@ -53,12 +53,13 @@
|
||||
# 200815-0928 - Added agent-paused 10 & 15 minute indicators
|
||||
# 201107-2254 - Added optional display of parked calls stats, inbound SLA and LIMITED report type
|
||||
# 210314-2039 - Added DID Description for inbound calls
|
||||
# 211216-0846 - Added new User Group options
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
|
||||
$version = '2.14-40';
|
||||
$build = '210314-2039';
|
||||
$version = '2.14-41';
|
||||
$build = '211216-0846';
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -555,14 +556,17 @@ if ($auth)
|
||||
$LOGmodify_contacts =$row[81];
|
||||
$LOGmodify_same_user_level =$row[82];
|
||||
|
||||
$stmt="SELECT allowed_campaigns,allowed_reports,admin_viewable_groups,admin_viewable_call_times from vicidial_user_groups where user_group='$LOGuser_group';";
|
||||
$stmt="SELECT allowed_campaigns,allowed_reports,admin_viewable_groups,admin_viewable_call_times,reports_header_override,admin_home_url from vicidial_user_groups where user_group='$LOGuser_group';";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$LOGallowed_campaigns = $row[0];
|
||||
$LOGallowed_reports = $row[1];
|
||||
$LOGadmin_viewable_groups = $row[2];
|
||||
$LOGadmin_viewable_call_times = $row[3];
|
||||
|
||||
$LOGreports_header_override = $row[4];
|
||||
$LOGadmin_home_url = $row[5];
|
||||
if (strlen($LOGadmin_home_url) > 5) {$SSadmin_home_url = $LOGadmin_home_url;}
|
||||
|
||||
$LOGadmin_viewable_groupsSQL='';
|
||||
$valLOGadmin_viewable_groupsSQL='';
|
||||
$vmLOGadmin_viewable_groupsSQL='';
|
||||
|
||||
Reference in New Issue
Block a user