From 1f1acb8088716ad2e0ec0f669bc8969ff66f5326 Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 14 Mar 2014 15:47:48 +0000 Subject: [PATCH] Added more strict enforcement of level 9 report and user permissions Added definable max stats days for remote-agents/campaigns/in-groups git-svn-id: svn://192.168.202.10@2090 3d104415-ff17-0410-8863-d5cf3c621b8a --- extras/MySQL_AST_CREATE_tables.sql | 5 +- extras/upgrade_2.8.sql | 4 + .../TO_BE_TRANSLATED_2.8.txt | 2 +- www/vicidial/admin.php | 137 +++++++++++------- www/vicidial/functions.php | 2 +- www/vicidial/help.php | 2 +- 6 files changed, 96 insertions(+), 56 deletions(-) diff --git a/extras/MySQL_AST_CREATE_tables.sql b/extras/MySQL_AST_CREATE_tables.sql index e24a2622..9debf113 100644 --- a/extras/MySQL_AST_CREATE_tables.sql +++ b/extras/MySQL_AST_CREATE_tables.sql @@ -617,7 +617,8 @@ modify_email_accounts ENUM('0','1') default '0', failed_login_count TINYINT(3) UNSIGNED default '0', last_login_date DATETIME default '2001-01-01 00:00:01', last_ip VARCHAR(15) default '', -pass_hash VARCHAR(100) default '' +pass_hash VARCHAR(100) default '', +alter_admin_interface_options ENUM('0','1') default '1' ) ENGINE=MyISAM; CREATE UNIQUE INDEX user ON vicidial_users (user); @@ -3254,4 +3255,4 @@ UPDATE vicidial_configuration set value='1766' where name='qc_database_version'; UPDATE system_settings set vdc_agent_api_active='1'; -UPDATE system_settings SET db_schema_version='1369',db_schema_update_date=NOW(),reload_timestamp=NOW(); +UPDATE system_settings SET db_schema_version='1370',db_schema_update_date=NOW(),reload_timestamp=NOW(); diff --git a/extras/upgrade_2.8.sql b/extras/upgrade_2.8.sql index a724e5c6..55307453 100644 --- a/extras/upgrade_2.8.sql +++ b/extras/upgrade_2.8.sql @@ -208,3 +208,7 @@ UPDATE system_settings SET db_schema_version='1368',db_schema_update_date=NOW() ALTER TABLE system_settings ADD reload_timestamp DATETIME; UPDATE system_settings SET db_schema_version='1369',db_schema_update_date=NOW(),reload_timestamp=NOW() where db_schema_version < 1369; + +ALTER TABLE vicidial_users ADD alter_admin_interface_options ENUM('0','1') default '1'; + +UPDATE system_settings SET db_schema_version='1370',db_schema_update_date=NOW() where db_schema_version < 1370; diff --git a/translations/raw_translation_files/TO_BE_TRANSLATED_2.8.txt b/translations/raw_translation_files/TO_BE_TRANSLATED_2.8.txt index 1031bd72..c8442236 100644 --- a/translations/raw_translation_files/TO_BE_TRANSLATED_2.8.txt +++ b/translations/raw_translation_files/TO_BE_TRANSLATED_2.8.txt @@ -267,7 +267,7 @@ This is the dial plan prefix used to send calls directly to a user's voicemail f Voicemail Instructions|| This setting allows you to define if the voicemail instructions will play after the voicemail greeting when a call rings on the agent extension and times out to voicemail. Default is Y|| optional, possibly slow|| - +Not set as allowed in any campaigns|| ########################## CHANGES TO EXISTING PHRASES IN ADMIN TRANSLATION diff --git a/www/vicidial/admin.php b/www/vicidial/admin.php index d19bb905..7960b14e 100644 --- a/www/vicidial/admin.php +++ b/www/vicidial/admin.php @@ -1824,6 +1824,8 @@ if (isset($_GET["voicemail_dump_exten_no_inst"])) {$voicemail_dump_exten_no_in elseif (isset($_POST["voicemail_dump_exten_no_inst"])) {$voicemail_dump_exten_no_inst=$_POST["voicemail_dump_exten_no_inst"];} if (isset($_GET["voicemail_instructions"])) {$voicemail_instructions=$_GET["voicemail_instructions"];} elseif (isset($_POST["voicemail_instructions"])) {$voicemail_instructions=$_POST["voicemail_instructions"];} +if (isset($_GET["alter_admin_interface_options"])) {$alter_admin_interface_options=$_GET["alter_admin_interface_options"];} + elseif (isset($_POST["alter_admin_interface_options"])) {$alter_admin_interface_options=$_POST["alter_admin_interface_options"];} if (isset($script_id)) {$script_id= strtoupper($script_id);} @@ -2151,6 +2153,7 @@ if ($non_latin < 1) $dead_max = preg_replace('/[^0-9]/','',$dead_max); $dispo_max = preg_replace('/[^0-9]/','',$dispo_max); $pause_max = preg_replace('/[^0-9]/','',$pause_max); + $alter_admin_interface_options = preg_replace('/[^0-9]/','',$alter_admin_interface_options); $drop_call_seconds = preg_replace('/[^-0-9]/','',$drop_call_seconds); @@ -3278,12 +3281,13 @@ else # 140305-0846 - Bug fix for list modify admin logging issue # 140313-0727 - Added links to Called Counts List IDs Report # 140313-1014 - Added warning to in-groups if they are not set as allowed in any campaigns +# 140314-1134 - Added more strict enforcement of level 9 report and user permissions and definable max stats days # # make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time -$admin_version = '2.8-430a'; -$build = '140313-1014'; +$admin_version = '2.8-431a'; +$build = '140314-1134'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -3438,7 +3442,7 @@ else ############################################## require_once('qc/QC_admin_include02.php'); -$stmt="SELECT user_id,user,pass,full_name,user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,shift_override_flag,export_reports,delete_from_dnc,email,user_code,territory,allow_alerts,callcard_admin,force_change_password,modify_shifts,modify_phones,modify_carriers,modify_labels,modify_statuses,modify_voicemail,modify_audiostore,modify_moh,modify_tts,modify_contacts,modify_same_user_level from vicidial_users where user='$PHP_AUTH_USER';"; +$stmt="SELECT user_id,user,pass,full_name,user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,shift_override_flag,export_reports,delete_from_dnc,email,user_code,territory,allow_alerts,callcard_admin,force_change_password,modify_shifts,modify_phones,modify_carriers,modify_labels,modify_statuses,modify_voicemail,modify_audiostore,modify_moh,modify_tts,modify_contacts,modify_same_user_level,alter_admin_interface_options from vicidial_users where user='$PHP_AUTH_USER';"; $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); $LOGfull_name =$row[3]; @@ -3487,6 +3491,7 @@ $LOGmodify_moh =$row[79]; $LOGmodify_tts =$row[80]; $LOGmodify_contacts =$row[81]; $LOGmodify_same_user_level =$row[82]; +$LOGalter_admin_interface =$row[83]; $stmt="SELECT allowed_campaigns,allowed_reports,admin_viewable_groups,admin_viewable_call_times from vicidial_user_groups where user_group='$LOGuser_group';"; $rslt=mysql_to_mysqli($stmt, $link); @@ -5535,7 +5540,7 @@ if ($ADD==121) echo "\n"; echo "\n"; - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Download List/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "
Download numbers in this list to a file:
\n"; echo "\n"; @@ -5644,7 +5649,7 @@ if ($ADD==171) echo "\n"; echo "
\n"; - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Download List/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "
Download numbers in this list to a file:
\n"; echo "\n"; @@ -7566,7 +7571,7 @@ if ($ADD=="2A") $pass=''; } - $stmt="INSERT INTO vicidial_users (user,pass,full_name,user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,export_reports,delete_from_dnc,email,user_code,territory,allow_alerts,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five,voicemail_id,agent_call_log_view_override,callcard_admin,agent_choose_blended,realtime_block_user_info,custom_fields_modify,force_change_password,agent_lead_search_override,modify_shifts,modify_phones,modify_carriers,modify_labels,modify_statuses,modify_voicemail,modify_audiostore,modify_moh,modify_tts,preset_contact_search,modify_contacts,modify_same_user_level,admin_hide_lead_data,admin_hide_phone_data,agentcall_email,modify_email_accounts,pass_hash) SELECT \"$user\",\"$pass\",\"$full_name\",user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,export_reports,delete_from_dnc,email,user_code,territory,allow_alerts,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five,voicemail_id,agent_call_log_view_override,callcard_admin,agent_choose_blended,realtime_block_user_info,custom_fields_modify,force_change_password,agent_lead_search_override,modify_shifts,modify_phones,modify_carriers,modify_labels,modify_statuses,modify_voicemail,modify_audiostore,modify_moh,modify_tts,preset_contact_search,modify_contacts,modify_same_user_level,admin_hide_lead_data,admin_hide_phone_data,agentcall_email,modify_email_accounts,\"$pass_hash\" from vicidial_users where user=\"$source_user_id\";"; + $stmt="INSERT INTO vicidial_users (user,pass,full_name,user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,export_reports,delete_from_dnc,email,user_code,territory,allow_alerts,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five,voicemail_id,agent_call_log_view_override,callcard_admin,agent_choose_blended,realtime_block_user_info,custom_fields_modify,force_change_password,agent_lead_search_override,modify_shifts,modify_phones,modify_carriers,modify_labels,modify_statuses,modify_voicemail,modify_audiostore,modify_moh,modify_tts,preset_contact_search,modify_contacts,modify_same_user_level,admin_hide_lead_data,admin_hide_phone_data,agentcall_email,modify_email_accounts,pass_hash,alter_admin_interface_options) SELECT \"$user\",\"$pass\",\"$full_name\",user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,export_reports,delete_from_dnc,email,user_code,territory,allow_alerts,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five,voicemail_id,agent_call_log_view_override,callcard_admin,agent_choose_blended,realtime_block_user_info,custom_fields_modify,force_change_password,agent_lead_search_override,modify_shifts,modify_phones,modify_carriers,modify_labels,modify_statuses,modify_voicemail,modify_audiostore,modify_moh,modify_tts,preset_contact_search,modify_contacts,modify_same_user_level,admin_hide_lead_data,admin_hide_phone_data,agentcall_email,modify_email_accounts,\"$pass_hash\",alter_admin_interface_options from vicidial_users where user=\"$source_user_id\";"; $rslt=mysql_to_mysqli($stmt, $link); $stmtA="INSERT INTO vicidial_inbound_group_agents (user,group_id,group_rank,group_weight,calls_today) SELECT \"$user\",group_id,group_rank,group_weight,\"0\" from vicidial_inbound_group_agents where user=\"$source_user_id\";"; @@ -10693,7 +10698,7 @@ if ($ADD=="4A") echo "
USER MODIFIED - ADMIN: $user\n"; - $stmt="UPDATE vicidial_users set pass='$pass',full_name='$full_name',user_level='$user_level',user_group='$user_group',phone_login='$phone_login',phone_pass='$phone_pass',delete_users='$delete_users',delete_user_groups='$delete_user_groups',delete_lists='$delete_lists',delete_campaigns='$delete_campaigns',delete_ingroups='$delete_ingroups',delete_remote_agents='$delete_remote_agents',load_leads='$load_leads',campaign_detail='$campaign_detail',ast_admin_access='$ast_admin_access',ast_delete_phones='$ast_delete_phones',delete_scripts='$delete_scripts',modify_leads='$modify_leads',hotkeys_active='$hotkeys_active',change_agent_campaign='$change_agent_campaign',agent_choose_ingroups='$agent_choose_ingroups',closer_campaigns='$groups_value',scheduled_callbacks='$scheduled_callbacks',agentonly_callbacks='$agentonly_callbacks',agentcall_manual='$agentcall_manual',vicidial_recording='$vicidial_recording',vicidial_transfers='$vicidial_transfers',delete_filters='$delete_filters',alter_agent_interface_options='$alter_agent_interface_options',closer_default_blended='$closer_default_blended',delete_call_times='$delete_call_times',modify_call_times='$modify_call_times',modify_users='$modify_users',modify_campaigns='$modify_campaigns',modify_lists='$modify_lists',modify_scripts='$modify_scripts',modify_filters='$modify_filters',modify_ingroups='$modify_ingroups',modify_usergroups='$modify_usergroups',modify_remoteagents='$modify_remoteagents',modify_servers='$modify_servers',view_reports='$view_reports',vicidial_recording_override='$vicidial_recording_override',alter_custdata_override='$alter_custdata_override',qc_enabled='$qc_enabled',qc_user_level='$qc_user_level',qc_pass='$qc_pass',qc_finish='$qc_finish',qc_commit='$qc_commit',add_timeclock_log='$add_timeclock_log',modify_timeclock_log='$modify_timeclock_log',delete_timeclock_log='$delete_timeclock_log',alter_custphone_override='$alter_custphone_override',vdc_agent_api_access='$vdc_agent_api_access',modify_inbound_dids='$modify_inbound_dids',delete_inbound_dids='$delete_inbound_dids',active='$active',download_lists='$download_lists',agent_shift_enforcement_override='$agent_shift_enforcement_override',manager_shift_enforcement_override='$manager_shift_enforcement_override',export_reports='$export_reports',delete_from_dnc='$delete_from_dnc',email='$email',user_code='$user_code',territory='$territory',allow_alerts='$allow_alerts',agent_choose_territories='$agent_choose_territories',custom_one='$custom_one',custom_two='$custom_two',custom_three='$custom_three',custom_four='$custom_four',custom_five='$custom_five',voicemail_id='$voicemail_id',agent_call_log_view_override='$agent_call_log_view_override',callcard_admin='$callcard_admin',agent_choose_blended='$agent_choose_blended',realtime_block_user_info='$realtime_block_user_info',custom_fields_modify='$custom_fields_modify',force_change_password='$force_change_password',agent_lead_search_override='$agent_lead_search',modify_shifts='$modify_shifts',modify_phones='$modify_phones',modify_carriers='$modify_carriers',modify_labels='$modify_labels',modify_statuses='$modify_statuses',modify_voicemail='$modify_voicemail',modify_audiostore='$modify_audiostore',modify_moh='$modify_moh',modify_tts='$modify_tts',preset_contact_search='$preset_contact_search',modify_contacts='$modify_contacts',modify_same_user_level='$modify_same_user_level',admin_hide_lead_data='$admin_hide_lead_data',admin_hide_phone_data='$admin_hide_phone_data',agentcall_email='$agentcall_email',modify_email_accounts='$modify_email_accounts',failed_login_count=0 $pass_hashSQL where user='$user' $LOGadmin_viewable_groupsSQL;"; + $stmt="UPDATE vicidial_users set pass='$pass',full_name='$full_name',user_level='$user_level',user_group='$user_group',phone_login='$phone_login',phone_pass='$phone_pass',delete_users='$delete_users',delete_user_groups='$delete_user_groups',delete_lists='$delete_lists',delete_campaigns='$delete_campaigns',delete_ingroups='$delete_ingroups',delete_remote_agents='$delete_remote_agents',load_leads='$load_leads',campaign_detail='$campaign_detail',ast_admin_access='$ast_admin_access',ast_delete_phones='$ast_delete_phones',delete_scripts='$delete_scripts',modify_leads='$modify_leads',hotkeys_active='$hotkeys_active',change_agent_campaign='$change_agent_campaign',agent_choose_ingroups='$agent_choose_ingroups',closer_campaigns='$groups_value',scheduled_callbacks='$scheduled_callbacks',agentonly_callbacks='$agentonly_callbacks',agentcall_manual='$agentcall_manual',vicidial_recording='$vicidial_recording',vicidial_transfers='$vicidial_transfers',delete_filters='$delete_filters',alter_agent_interface_options='$alter_agent_interface_options',closer_default_blended='$closer_default_blended',delete_call_times='$delete_call_times',modify_call_times='$modify_call_times',modify_users='$modify_users',modify_campaigns='$modify_campaigns',modify_lists='$modify_lists',modify_scripts='$modify_scripts',modify_filters='$modify_filters',modify_ingroups='$modify_ingroups',modify_usergroups='$modify_usergroups',modify_remoteagents='$modify_remoteagents',modify_servers='$modify_servers',view_reports='$view_reports',vicidial_recording_override='$vicidial_recording_override',alter_custdata_override='$alter_custdata_override',qc_enabled='$qc_enabled',qc_user_level='$qc_user_level',qc_pass='$qc_pass',qc_finish='$qc_finish',qc_commit='$qc_commit',add_timeclock_log='$add_timeclock_log',modify_timeclock_log='$modify_timeclock_log',delete_timeclock_log='$delete_timeclock_log',alter_custphone_override='$alter_custphone_override',vdc_agent_api_access='$vdc_agent_api_access',modify_inbound_dids='$modify_inbound_dids',delete_inbound_dids='$delete_inbound_dids',active='$active',download_lists='$download_lists',agent_shift_enforcement_override='$agent_shift_enforcement_override',manager_shift_enforcement_override='$manager_shift_enforcement_override',export_reports='$export_reports',delete_from_dnc='$delete_from_dnc',email='$email',user_code='$user_code',territory='$territory',allow_alerts='$allow_alerts',agent_choose_territories='$agent_choose_territories',custom_one='$custom_one',custom_two='$custom_two',custom_three='$custom_three',custom_four='$custom_four',custom_five='$custom_five',voicemail_id='$voicemail_id',agent_call_log_view_override='$agent_call_log_view_override',callcard_admin='$callcard_admin',agent_choose_blended='$agent_choose_blended',realtime_block_user_info='$realtime_block_user_info',custom_fields_modify='$custom_fields_modify',force_change_password='$force_change_password',agent_lead_search_override='$agent_lead_search',modify_shifts='$modify_shifts',modify_phones='$modify_phones',modify_carriers='$modify_carriers',modify_labels='$modify_labels',modify_statuses='$modify_statuses',modify_voicemail='$modify_voicemail',modify_audiostore='$modify_audiostore',modify_moh='$modify_moh',modify_tts='$modify_tts',preset_contact_search='$preset_contact_search',modify_contacts='$modify_contacts',modify_same_user_level='$modify_same_user_level',admin_hide_lead_data='$admin_hide_lead_data',admin_hide_phone_data='$admin_hide_phone_data',agentcall_email='$agentcall_email',modify_email_accounts='$modify_email_accounts',failed_login_count=0,alter_admin_interface_options='$alter_admin_interface_options' $pass_hashSQL where user='$user' $LOGadmin_viewable_groupsSQL;"; $rslt=mysql_to_mysqli($stmt, $link); ### LOG INSERTION Admin Log Table ### @@ -17087,7 +17092,7 @@ if ($ADD==3) echo "\n"; } - if ( ($LOGuser_level > 8) or ($LOGalter_agent_interface == "1") ) + if ( ($LOGuser_level > 7) and ($LOGalter_agent_interface == "1") ) { echo "\n"; echo "\n"; @@ -17345,7 +17351,7 @@ if ($ADD==3) echo "\n"; } } - if ($LOGuser_level > 8) + if ( ($LOGuser_level > 8) and ($LOGalter_admin_interface > 0) ) { echo "\n"; @@ -17433,6 +17439,11 @@ if ($ADD==3) echo "\n"; + if ( ( ($LOGmodify_same_user_level > 0) or ($LOGalter_admin_interface > 0) ) and ($LOGuser_level > 8) ) + { + echo "\n"; + } + if ( ($LOGmodify_same_user_level < 1) or ($LOGuser_level < 9) ) { echo "\n"; @@ -17441,6 +17452,16 @@ if ($ADD==3) { echo "\n"; } + + + if ( ($LOGalter_admin_interface < 1) or ($LOGuser_level < 9) ) + { + echo "\n"; + } + else + { + echo "\n"; + } } echo "\n"; echo "
\n"; echo ""; - $stmt="SELECT user_id,user,pass,full_name,user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,shift_override_flag,export_reports,delete_from_dnc,email,user_code,territory,allow_alerts,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five,voicemail_id,agent_call_log_view_override,callcard_admin,agent_choose_blended,realtime_block_user_info,custom_fields_modify,force_change_password,agent_lead_search_override,modify_shifts,modify_phones,modify_carriers,modify_labels,modify_statuses,modify_voicemail,modify_audiostore,modify_moh,modify_tts,preset_contact_search,modify_contacts,modify_same_user_level,admin_hide_lead_data,admin_hide_phone_data,agentcall_email,modify_email_accounts,failed_login_count,last_login_date,last_ip from vicidial_users where user='$user' $LOGadmin_viewable_groupsSQL;"; + $stmt="SELECT user_id,user,pass,full_name,user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,shift_override_flag,export_reports,delete_from_dnc,email,user_code,territory,allow_alerts,agent_choose_territories,custom_one,custom_two,custom_three,custom_four,custom_five,voicemail_id,agent_call_log_view_override,callcard_admin,agent_choose_blended,realtime_block_user_info,custom_fields_modify,force_change_password,agent_lead_search_override,modify_shifts,modify_phones,modify_carriers,modify_labels,modify_statuses,modify_voicemail,modify_audiostore,modify_moh,modify_tts,preset_contact_search,modify_contacts,modify_same_user_level,admin_hide_lead_data,admin_hide_phone_data,agentcall_email,modify_email_accounts,failed_login_count,last_login_date,last_ip,alter_admin_interface_options from vicidial_users where user='$user' $LOGadmin_viewable_groupsSQL;"; $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); $user_id = $row[0]; @@ -17191,6 +17196,7 @@ if ($ADD==3) $failed_login_count = $row[100]; $last_login_date = $row[101]; $last_ip = $row[102]; + $alter_admin_interface_options = $row[103]; if ( ( ($user_level >= $LOGuser_level) and ($LOGuser_level < 9) ) or ( ($LOGmodify_same_user_level < 1) and ($LOGuser_level > 8) and ($user_level > 8) ) ) { @@ -17199,7 +17205,7 @@ if ($ADD==3) else { echo "
MODIFY A USERS RECORD: $user\n"; - if ($LOGuser_level > 8) + if ( ($LOGuser_level > 8) and ($LOGalter_admin_interface > 0) ) {echo "\n";} else { @@ -17279,7 +17285,7 @@ if ($ADD==3) echo "
User Territories: $Uterrs_list
AGENT INTERFACE OPTIONS:
Agent Choose Ingroups: $NWB#users-agent_choose_ingroups$NWE
QC Commit: $NWB#users-qc_commit$NWE
ADMIN REPORT OPTIONS:
Manager Shift Enforcement Override: $NWB#users-manager_shift_enforcement_override$NWE
LEVEL 9 ADMIN OPTIONS:
Modify Same User Level: $NWB#users-modify_same_user_level$NWE
Alter Admin Interface Options: $NWB#users-alter_admin_interface_options$NWE
\n"; @@ -17454,7 +17475,7 @@ if ($ADD==3) echo "

Click here for user stats\n"; echo "

Click here for user multiple day status detail report\n"; echo "

Click here for user CallBack Holds\n"; - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this record\n"; } @@ -19259,7 +19280,7 @@ if ($ADD==31) } } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this campaign\n"; } @@ -20624,7 +20645,7 @@ if ($ADD==34) echo "Click here to see a VDAD report for this campaign

\n"; } echo "Click here to see all CallBack Holds in this campaign

\n"; - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this campaign\n"; } @@ -22266,7 +22287,7 @@ if ($ADD==311) { echo "

DELETE THIS LIST\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this list\n"; } @@ -23306,7 +23327,7 @@ if ($ADD==3111) # echo "

EMERGENCY VDAC CLEAR FOR THIS IN-GROUP

\n"; echo "

DELETE THIS IN-GROUP\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this In-Group\n"; } @@ -24023,7 +24044,7 @@ if ($ADD==3811) # echo "

EMERGENCY VDAC CLEAR FOR THIS IN-GROUP

\n"; echo "

DELETE THIS IN-GROUP\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this In-Group\n"; } @@ -24324,7 +24345,7 @@ if ($ADD==3311) { echo "

DELETE THIS DID\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this DID\n"; } @@ -24629,7 +24650,7 @@ if ($ADD==3321) echo "

MODIFY THIS DID\n"; - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this DID\n"; } @@ -25004,7 +25025,7 @@ if ($ADD==3511) { echo "

DELETE THIS CALL MENU\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this CALL MENU\n"; } @@ -25124,7 +25145,7 @@ if ($ADD==31111) { echo "

DELETE THIS REMOTE AGENT\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this remote agent\n"; } @@ -25190,10 +25211,12 @@ if ($ADD==3711) { echo "

DELETE THIS FILTER PHONE GROUP\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Download List/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to download the numbers in this filter phone group\n"; - + } + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) + { echo "

Click here to see Admin changes to this filter phone group\n"; } } @@ -25267,7 +25290,7 @@ if ($ADD==32111) { echo "

DELETE THIS EXTENSION GROUP ENTRY\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this extension group entry\n"; } @@ -25608,7 +25631,7 @@ if ($ADD==311111) { echo "

DELETE THIS USER GROUP\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this user group\n"; } @@ -25796,7 +25819,7 @@ if ($ADD==3111111) { echo "

DELETE THIS SCRIPT\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this script\n"; } @@ -25880,7 +25903,7 @@ if ($ADD==31111111) { echo "

DELETE THIS FILTER\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this filter\n"; } @@ -26293,7 +26316,7 @@ if ($ADD==311111111) { echo "

DELETE THIS CALL TIME DEFINITION\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this call time\n"; } @@ -26452,7 +26475,7 @@ if ($ADD==3111111111) { echo "

DELETE THIS STATE CALL TIME DEFINITION\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this call time\n"; } @@ -26562,7 +26585,7 @@ if ($ADD==3211111111) { echo "

DELETE THIS HOLIDAY DEFINITION\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this holiday\n"; } @@ -26696,7 +26719,7 @@ if ($ADD==331111111) { echo "

DELETE THIS SHIFT DEFINITION\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this shift\n"; } @@ -26882,7 +26905,7 @@ if ($ADD==31111111111) { echo "

DELETE THIS PHONE\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this phone\n"; } @@ -26963,7 +26986,7 @@ if ($ADD==32111111111) { echo "

DELETE THIS PHONE ALIAS\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this phone alias\n"; } @@ -27017,7 +27040,7 @@ if ($ADD==33111111111) { echo "

DELETE THIS GROUP ALIAS\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this group alias\n"; } @@ -27354,7 +27377,7 @@ if ($ADD==311111111111) { echo "

DELETE THIS SERVER\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this server\n"; } @@ -27476,7 +27499,7 @@ if ($ADD==331111111111) { echo "

DELETE THIS CONF TEMPLATE\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this conf template\n"; } @@ -27570,7 +27593,7 @@ if ($ADD==341111111111) { echo "

DELETE THIS CARRIER\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this carrier\n"; } @@ -27634,7 +27657,7 @@ if ($ADD==351111111111) { echo "

DELETE THIS TTS ENTRY\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this TTS entry\n"; } @@ -27724,7 +27747,7 @@ if ($ADD==361111111111) { echo "

DELETE MUSIC ON HOLD ENTRY\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this Music On Hold entry\n"; } @@ -27821,7 +27844,7 @@ if ($ADD==371111111111) { echo "

DELETE THIS VOICEMAIL BOX\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this voicemail box\n"; } @@ -27960,7 +27983,7 @@ if ($ADD==381111111111) { echo "

DELETE THIS SCREEN LABEL\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this screen label\n"; } @@ -28036,7 +28059,7 @@ if ($ADD==391111111111) { echo "

DELETE THIS CONTACT\n"; } - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to this contact\n"; } @@ -28729,7 +28752,7 @@ if ($ADD==311111111111111) echo "\n"; echo "\n"; echo "\n"; - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "

Click here to see Admin changes to the system settings\n"; } @@ -31011,7 +31034,7 @@ if ($ADD==710000000000000) if ($ADD==720000000000000) { - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "
\n"; echo ""; @@ -31107,7 +31130,7 @@ if ($ADD==720000000000000) if ($ADD==730000000000000) { - if ($LOGuser_level >= 9) + if ( ($LOGuser_level >= 9) and ( (preg_match("/Administration Change Log/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) ) { echo "
\n"; echo ""; @@ -32042,6 +32065,9 @@ if ($ADD==999993) if ( (preg_match("/Maximum Stats Detail/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) ) { + $day_count=30; + if (strlen($SUB) > 0) + {$day_count = $SUB;} if ($stage == 'in-group') { $in_out = 'in-group'; @@ -32091,31 +32117,40 @@ if ($ADD==999993) {echo "Not found"; exit;} } - echo "
Administration: Maximum Stats Detail for $stage $modify_link$campaign_id - $campaign_name   $NWB#max_stats$NWE

\n"; + echo "
Administration: Maximum Stats Detail for $stage $modify_link$campaign_id - $campaign_name   $NWB#max_stats$NWE
\n"; + + echo "
\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "Days:    \n"; + echo "
\n"; + echo "
\n"; if ($stage == 'remote-agent') { echo "\n"; echo "\n"; } else { echo "\n"; echo "\n"; echo "\n"; } } diff --git a/www/vicidial/functions.php b/www/vicidial/functions.php index 9f1288ac..f3bc297e 100644 --- a/www/vicidial/functions.php +++ b/www/vicidial/functions.php @@ -290,7 +290,7 @@ function horizontal_bar_chart($campaign_id,$days_graph,$title,$link,$metric,$met if ($title=='in-group') {$out_in_type=' inbound';} if ($more_link > 0) {$link_text = "more summary stats...";} echo "
\n"; - horizontal_bar_chart($campaign_id,'30',$stage,$link,'ra_total_calls','call count',0,'',''); + horizontal_bar_chart($campaign_id,$day_count,$stage,$link,'ra_total_calls','call count',0,'',''); echo "
\n"; - horizontal_bar_chart($campaign_id,'30',$stage,$link,'ra_concurrent_calls','most concurrent calls',0,'',''); + horizontal_bar_chart($campaign_id,$day_count,$stage,$link,'ra_concurrent_calls','most concurrent calls',0,'',''); echo "
\n"; - horizontal_bar_chart($campaign_id,'30',$in_out,$link,'total_calls','call count',0,'',''); + horizontal_bar_chart($campaign_id,$day_count,$in_out,$link,'total_calls','call count',0,'',''); echo "
\n"; - horizontal_bar_chart($campaign_id,'30',$in_out,$link,$max_type,'most concurrent calls',0,'',''); + horizontal_bar_chart($campaign_id,$day_count,$in_out,$link,$max_type,'most concurrent calls',0,'',''); echo "
\n"; - horizontal_bar_chart($campaign_id,'30',$in_out,$link,'max_agents','most concurrent agents',0,'',''); + horizontal_bar_chart($campaign_id,$day_count,$in_out,$link,'max_agents','most concurrent agents',0,'',''); echo "
\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; diff --git a/www/vicidial/help.php b/www/vicidial/help.php index 49a4c7d5..1c17d55f 100644 --- a/www/vicidial/help.php +++ b/www/vicidial/help.php @@ -4769,8 +4769,8 @@ The custom template maker allows you to define your own file layouts for use wit



-Maximum System Stats Reports

+Maximum System Stats Reports


These statistics are cached totals that are stored throughout each day in real-time through back-end processes. For inbound calls, the total calls per in-group are calculated for each call that enters the process that calculates. For the whole system counts, the totals are generated from log entries as well as other in-group and campaign totals. These totals may not add up due to the settings that you have in your system as well as when the call is hung up.
$days_graph Day $out_in_type $metric_name for this $title   $link_text   $NWB#vicidial_campaigns-max_stats$NWE
$days_graph Day $out_in_type $metric_name for this $title   $link_text   $NWB#max_stats$NWE
date $metric_name