From 8b1f9f049912591d6668458f7fdf27d963dc49c9 Mon Sep 17 00:00:00 2001 From: mattf Date: Mon, 2 Apr 2007 16:02:14 +0000 Subject: [PATCH] added HOME link to admin.php, and associated system_settings field to DB and admin.php added welcome.php, default HOME page added QueueMqtrics report link on REPORTS section of admin.php if QM is enabled git-svn-id: svn://192.168.202.10@578 3d104415-ff17-0410-8863-d5cf3c621b8a --- docs/SCRATCH_INSTALL.txt | 6 +-- extras/MySQL_AST_CREATE_tables.sql | 3 +- extras/upgrade_2.0.3.sql | 2 + .../TO_BE_TRANSLATED_2.0.3.txt | 4 ++ www/vicidial/admin.php | 42 +++++++++++++++---- 5 files changed, 46 insertions(+), 11 deletions(-) diff --git a/docs/SCRATCH_INSTALL.txt b/docs/SCRATCH_INSTALL.txt index cb0df866..43971225 100644 --- a/docs/SCRATCH_INSTALL.txt +++ b/docs/SCRATCH_INSTALL.txt @@ -816,7 +816,7 @@ our Asterisk system with it's T1 line installed with our 2 SIP VOIP devices and one IAX2 softphone. NOTE: If you want to use release 1.0.8 or 9 we would recommend either using the -CVS_v1-0_Stable branch where the issues are fixed, or patching your 1.0.8/1.0.9 code +CVS_v1-0 branch where the issues are fixed, or patching your 1.0.8/1.0.9 code with the following patch: (http://astguiclient.sourceforge.net/experimental_code/localmasq.patch) - If you do patch your system make sure you put the asterisk version @@ -851,8 +851,8 @@ with the following patch: edit this line and change 100 to 999: #define MAXMSG 100 - (1.0 tree)if you have no X server installed on your Asterisk machine, then you - will need to comment out the gtk console lib(only affects stable tree - and 1.0 releases) edit the voicemail source code file: + will need to comment out the gtk console lib(only affects 1.0 releases) + edit the voicemail source code file: - vi /usr/src/asterisk/asterisk/pbx/Makefile edit this line at the top and just add a hash # in front of it as shown: #PBX_LIBS+=$(shell $(CROSS_COMPILE_BIN)gtk-config --cflags >/dev/null 2>/dev/null && echo "pbx_gtkconsole.so") diff --git a/extras/MySQL_AST_CREATE_tables.sql b/extras/MySQL_AST_CREATE_tables.sql index 084b19ae..c27d3608 100644 --- a/extras/MySQL_AST_CREATE_tables.sql +++ b/extras/MySQL_AST_CREATE_tables.sql @@ -881,7 +881,8 @@ queuemetrics_url VARCHAR(255), queuemetrics_log_id VARCHAR(10) default 'VIC', queuemetrics_eq_prepend VARCHAR(255) default 'NONE', vicidial_agent_disable ENUM('NOT_ACTIVE','LIVE_AGENT','EXTERNAL','ALL') default 'NOT_ACTIVE', -allow_sipsak_messages ENUM('0','1') default '0' +allow_sipsak_messages ENUM('0','1') default '0', +admin_home_url VARCHAR(255) default '../vicidial/welcome.php' ); INSERT INTO system_settings (version,install_date) values('2.0.X', CURDATE()); diff --git a/extras/upgrade_2.0.3.sql b/extras/upgrade_2.0.3.sql index fb40f6ef..a3663a48 100644 --- a/extras/upgrade_2.0.3.sql +++ b/extras/upgrade_2.0.3.sql @@ -117,3 +117,5 @@ ALTER TABLE vicidial_campaigns ADD no_hopper_leads_logins ENUM('Y','N') default ALTER TABLE phones ADD enable_sipsak_messages ENUM('0','1') default '0'; ALTER TABLE system_settings ADD allow_sipsak_messages ENUM('0','1') default '0'; + +ALTER TABLE system_settings ADD admin_home_url VARCHAR(255) default '../vicidial/welcome.php'; diff --git a/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.3.txt b/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.3.txt index 5c8d4481..2c2514b0 100644 --- a/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.3.txt +++ b/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.3.txt @@ -160,6 +160,10 @@ Enable SIPSAK Messages - If enabled the server will send messages to the SIP Enable SIPSAK Messages: || Allow SIPSAK Messages - If set to 1, this will allow the phones table setting to work properly, the server will send messages to the SIP phone to display on the phone LCD display when logged into VICIDIAL. This feature only works with SIP phones and requires sipsak application to be installed on the web server. Default is 0|| Allow SIPSAK Messages: || +Admin Home URL - This is the URL or web site address that you will go to if you click on the HOME link at the top of the admin.php page|| +Admin Home URL: || +>HOME<|| + Welcome || ############################################################ CLIENT diff --git a/www/vicidial/admin.php b/www/vicidial/admin.php index c2c7e621..a5c59209 100644 --- a/www/vicidial/admin.php +++ b/www/vicidial/admin.php @@ -582,6 +582,8 @@ if (isset($_GET["enable_sipsak_messages"])) {$enable_sipsak_messages=$_GET["e elseif (isset($_POST["enable_sipsak_messages"])) {$enable_sipsak_messages=$_POST["enable_sipsak_messages"];} if (isset($_GET["allow_sipsak_messages"])) {$allow_sipsak_messages=$_GET["allow_sipsak_messages"];} elseif (isset($_POST["allow_sipsak_messages"])) {$allow_sipsak_messages=$_POST["allow_sipsak_messages"];} +if (isset($_GET["admin_home_url"])) {$admin_home_url=$_GET["admin_home_url"];} + elseif (isset($_POST["admin_home_url"])) {$admin_home_url=$_POST["admin_home_url"];} if (isset($script_id)) {$script_id= strtoupper($script_id);} @@ -879,6 +881,7 @@ $lead_filter_sql = ereg_replace(";","",$lead_filter_sql); ### VARIABLES TO BE mysql_real_escape_string ### # $web_form_address # $queuemetrics_url +# $admin_home_url ### VARIABLES not filtered at all ### # $script_text @@ -990,11 +993,12 @@ $lead_filter_sql = ereg_replace(";","",$lead_filter_sql); # 70319-1423 - Added Alter Customer Data and agent disable display functions # 70319-1625 - Added option to allow agents to login to outbound campaigns with no leads in the hopper # 70322-1455 - Added sipsak messages parameters +# 70402-1157 - Added HOME link and entry to system_settings table, added QM link on reports section # 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.0.94'; -$build = '70322-1455'; +$admin_version = '2.0.95'; +$build = '70402-1157'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -2873,9 +2877,13 @@ The VICIDIAL basic web-based lead loader is designed simply to take a lead file
Allow SIPSAK Messages - If set to 1, this will allow the phones table setting to work properly, the server will send messages to the SIP phone to display on the phone LCD display when logged into VICIDIAL. This feature only works with SIP phones and requires sipsak application to be installed on the web server. Default is 0. +
+ +
+Admin Home URL - This is the URL or web site address that you will go to if you click on the HOME link at the top of the admin.php page. + -allow_sipsak_messages















@@ -3184,9 +3192,15 @@ function scriptInsertField() { \n"; + +$stmt="SELECT admin_home_url from system_settings;"; +$rslt=mysql_query($stmt, $link); +$row=mysql_fetch_row($rslt); +$admin_home_url_LU = $row[0]; + ?>
- BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0> +
  VICIDIAL ADMIN - Logout  
BGCOLOR=#D9E6FE cellpadding=2 cellspacing=0> @@ -5803,7 +5817,7 @@ if ($ADD==411111111111111) echo "
VICIDIAL SYSTEM SETTINGS MODIFIED\n"; - $stmt="UPDATE system_settings set use_non_latin='$use_non_latin',webroot_writable='$webroot_writable',enable_queuemetrics_logging='$enable_queuemetrics_logging',queuemetrics_server_ip='$queuemetrics_server_ip',queuemetrics_dbname='$queuemetrics_dbname',queuemetrics_login='$queuemetrics_login',queuemetrics_pass='$queuemetrics_pass',queuemetrics_url='$queuemetrics_url',queuemetrics_log_id='$queuemetrics_log_id',queuemetrics_eq_prepend='$queuemetrics_eq_prepend',vicidial_agent_disable='$vicidial_agent_disable',allow_sipsak_messages='$allow_sipsak_messages';"; + $stmt="UPDATE system_settings set use_non_latin='$use_non_latin',webroot_writable='$webroot_writable',enable_queuemetrics_logging='$enable_queuemetrics_logging',queuemetrics_server_ip='$queuemetrics_server_ip',queuemetrics_dbname='$queuemetrics_dbname',queuemetrics_login='$queuemetrics_login',queuemetrics_pass='$queuemetrics_pass',queuemetrics_url='$queuemetrics_url',queuemetrics_log_id='$queuemetrics_log_id',queuemetrics_eq_prepend='$queuemetrics_eq_prepend',vicidial_agent_disable='$vicidial_agent_disable',allow_sipsak_messages='$allow_sipsak_messages',admin_home_url='$admin_home_url';"; $rslt=mysql_query($stmt, $link); ### LOG CHANGES TO LOG FILE ### @@ -9480,7 +9494,7 @@ if ($ADD==311111111111111) echo "
  VICIDIAL ADMIN - HOME | Logout  
> SIZE=> Users
\n"; echo "\n"; + echo "\n"; echo "\n"; echo "
\n"; echo ""; - $stmt="SELECT version,install_date,use_non_latin,webroot_writable,enable_queuemetrics_logging,queuemetrics_server_ip,queuemetrics_dbname,queuemetrics_login,queuemetrics_pass,queuemetrics_url,queuemetrics_log_id,queuemetrics_eq_prepend,vicidial_agent_disable,allow_sipsak_messages from system_settings;"; + $stmt="SELECT version,install_date,use_non_latin,webroot_writable,enable_queuemetrics_logging,queuemetrics_server_ip,queuemetrics_dbname,queuemetrics_login,queuemetrics_pass,queuemetrics_url,queuemetrics_log_id,queuemetrics_eq_prepend,vicidial_agent_disable,allow_sipsak_messages,admin_home_url from system_settings;"; $rslt=mysql_query($stmt, $link); $row=mysql_fetch_row($rslt); $version = $row[0]; @@ -9497,6 +9511,7 @@ if ($ADD==311111111111111) $queuemetrics_eq_prepend = $row[11]; $vicidial_agent_disable = $row[12]; $allow_sipsak_messages = $row[13]; + $admin_home_url = $row[14]; echo "
MODIFY VICIDIAL SYSTEM SETTINGS
\n"; echo "\n"; @@ -9531,6 +9546,7 @@ if ($ADD==311111111111111) echo "\n"; echo "$NWB#settings-vicidial_agent_disable$NWE
Allow SIPSAK Messages: $NWB#settings-allow_sipsak_messages$NWE
Admin Home URL: $NWB#settings-admin_home_url$NWE
\n"; @@ -10266,6 +10282,13 @@ if ($ADD==999999) $active[$i] = $row[3]; $i++; } + + $stmt="SELECT enable_queuemetrics_logging,queuemetrics_url from system_settings;"; + $rslt=mysql_query($stmt, $link); + $row=mysql_fetch_row($rslt); + $enable_queuemetrics_logging_LU = $row[0]; + $queuemetrics_url_LU = $row[1]; + ?> @@ -10282,8 +10305,13 @@ if ($ADD==999999)
  • AGENT PERFORMANCE
  • AGENT PERFORMANCE DETAIL
  • SERVER PERFORMANCE + 0) + { + echo "
  • QUEUEMETRICS REPORTS\n"; + } +?> -
    SERVERDESCRIPTIONIP ADDRESSACTIVEVDAD timePARK timeCLOSER/INBOUND time