Added code for phase 1 of custom list fields
Added 2 variables to astguiclient.conf git-svn-id: svn://192.168.202.10@1424 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -6,13 +6,14 @@
|
||||
# astguiclient.conf file to reflect a change in IP address. The script will
|
||||
# automatically default to the first eth address in the ifconfig output.
|
||||
#
|
||||
# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2010 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGELOG
|
||||
# 71205-2144 - Added display of extensions.conf example for call routing
|
||||
# 80321-0220 - Updated for new settings
|
||||
# 90211-1247 - Added asterisk version
|
||||
# 90630-2256 - vicidial_process_triggers
|
||||
# 100428-0943 - Added DB custom user/pass fields
|
||||
#
|
||||
# default path to astguiclient configuration file:
|
||||
$PATHconf = '/etc/astguiclient.conf';
|
||||
@@ -155,6 +156,10 @@ if (-e "$PATHconf")
|
||||
{$VARDB_user = $line; $VARDB_user =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_pass/) && ($CLIDB_pass < 1) )
|
||||
{$VARDB_pass = $line; $VARDB_pass =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_custom_user/) && ($CLIDB_custom_user < 1) )
|
||||
{$VARDB_custom_user = $line; $VARDB_custom_user =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_custom_pass/) && ($CLIDB_custom_pass < 1) )
|
||||
{$VARDB_custom_pass = $line; $VARDB_custom_pass =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_port/) && ($CLIDB_port < 1) )
|
||||
{$VARDB_port = $line; $VARDB_port =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARactive_keepalives/) && ($CLIactive_keepalives < 1) )
|
||||
@@ -329,6 +334,8 @@ print conf "VARDB_server => $VARDB_server\n";
|
||||
print conf "VARDB_database => $VARDB_database\n";
|
||||
print conf "VARDB_user => $VARDB_user\n";
|
||||
print conf "VARDB_pass => $VARDB_pass\n";
|
||||
print conf "VARDB_custom_user => $VARDB_custom_user\n";
|
||||
print conf "VARDB_custom_pass => $VARDB_custom_pass\n";
|
||||
print conf "VARDB_port => $VARDB_port\n";
|
||||
print conf "\n";
|
||||
print conf "# Alpha-Numeric list of the astGUIclient processes to be kept running\n";
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
Custom Fields within the vicidial agent interface Started: 2010-05-06
|
||||
|
||||
|
||||
This document outlines the features and design of the customized fields available in ViciDial.
|
||||
|
||||
|
||||
|
||||
Started from this thread:
|
||||
http://www.vicidial.org/VICIDIALforum/viewtopic.php?t=3952&sid=6453071bd2c1859d9bae44add9dae2ff
|
||||
|
||||
Goal:
|
||||
To have a highly scalable, dynamic custom field creation system for use with ViciDial that would be tied to the list_id and could have up to 255 dynamically-defined fields.
|
||||
|
||||
Development Stages:
|
||||
1. Create admin interface to manage dynamic fields per list_id
|
||||
2. Create display of custom fields within the ViciDial agent interface, including variables to be used in web forms and scripts
|
||||
3. Add exporting of custom tables to list download feature as well as the calls export report
|
||||
4. Create list loading interface to put leads into the vicidial_list table and the custom fields, includes reusable template definitions(field mapping)
|
||||
|
||||
Limitations:
|
||||
- You could not dial leads sorted by any custom fields
|
||||
- Only one set of custom fields per list_id
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
The new lead loader:
|
||||
|
||||
The existing web-based PHP lead loader will be completely removed. In it's place will be a web front-end to upload lead files and trigger lead loading processes that will be run by the current CLI lead loader since it is more full-featured and much easier to maintain. There will be a template(field mapping) creation and modification tool that will allow you to map a field in a file to a specific database table and field.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Database backend:
|
||||
|
||||
The database elements of this featureset will consist of a definitions table(vicidial_lists_fields) that will define the custom fields for each vicidial list ID, a custom table that is created dynamically in the system using "custom_" + list_id (i.e.: custom_101) that will be created from the table definitions table.
|
||||
|
||||
There will also be a field mapping table that you can use as a template to match up file fields with database fields when importing data into ViciDial.
|
||||
|
||||
New settings will be added in the astguiclient.conf file for DB_custom_user and DB_custom_pass. These will be used to create and alter the custom_XXX tables.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
MySQL tables:
|
||||
####### FOR REFERENCE ONLY, DO NOT USE THESE!!!!!!!!!!!!! ########
|
||||
|
||||
GRANT ALTER,CREATE on asterisk.* TO custom@'%' IDENTIFIED BY 'custom1234';
|
||||
GRANT ALTER,CREATE on asterisk.* TO custom@localhost IDENTIFIED BY 'custom1234';
|
||||
|
||||
ALTER TABLE system_settings ADD custom_fields_enabled ENUM('0','1') default '0';
|
||||
|
||||
ALTER TABLE vicidial_users ADD custom_fields_modify ENUM('0','1') default '0';
|
||||
|
||||
CREATE TABLE vicidial_lists_fields (
|
||||
field_id INT(9) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
|
||||
list_id BIGINT(14) UNSIGNED NOT NULL DEFAULT '0',
|
||||
field_label VARCHAR(50),
|
||||
field_name VARCHAR(50),
|
||||
field_description VARCHAR(100),
|
||||
field_rank SMALLINT(5),
|
||||
field_help VARCHAR(255),
|
||||
field_type ENUM('TEXT','AREA','SELECT','MULTI','RADIO','CHECKBOX','DATE','TIME') default 'TEXT',
|
||||
field_options VARCHAR(5000),
|
||||
field_size SMALLINT(5),
|
||||
field_max SMALLINT(5),
|
||||
field_default VARCHAR(255),
|
||||
field_cost SMALLINT(5),
|
||||
field_required ENUM('Y','N') default 'N'
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX listfield on vicidial_lists_fields (list_id, field_label);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
CREATE TABLE vicidial_lead_import_map (
|
||||
map_id VARCHAR(50) PRIMARY KEY NOT NULL,
|
||||
map_name VARCHAR(50) DEFAULT '',
|
||||
map_notes VARCHAR(255) DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE TABLE vicidial_lead_import_map_fields (
|
||||
map_id VARCHAR(50) NOT NULL,
|
||||
file_field SMALLINT(5),
|
||||
db_field VARCHAR(100),
|
||||
field_functions VARCHAR(255) DEFAULT '',
|
||||
field_notes VARCHAR(100) DEFAULT '',
|
||||
index (map_id)
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX mapdbfield on vicidial_lead_import_map_fields (map_id, file_field, db_field);
|
||||
@@ -54,6 +54,9 @@ tar xvf apache-tomcat-5.5.20.tar
|
||||
ln -s apache-tomcat-5.5.20 tomcat
|
||||
cd apache-tomcat-5.5.20
|
||||
|
||||
* You may need to change all permissions to jar and sh files on /usr/local/apache-tomcat-6.0.18/bin to 0777
|
||||
|
||||
|
||||
JAVA_HOME=/usr/java/jdk1.5.0_11/
|
||||
JAVA_OPTS="-Xms256M -Xmx512M"
|
||||
JRE_HOME=/usr/java/jdk1.5.0_11/jre
|
||||
@@ -64,6 +67,7 @@ JRE_HOME=/usr/java/jre1.6.0/
|
||||
JAVA_HOME=/usr/java/
|
||||
JAVA_OPTS="-Xms256M -Xmx512M"
|
||||
|
||||
|
||||
export JAVA_HOME
|
||||
export JAVA_OPTS
|
||||
export JRE_HOME
|
||||
|
||||
@@ -54,3 +54,4 @@ AFTHRS - Inbound after hours drop, call received outside of in-group call time
|
||||
NANQUE - Inbound no agent no queue drop, no agent logged in
|
||||
RAXFER - Remote Agent API transfer
|
||||
ALTNUM - Agent manual Dial Alternate number dialing, number dialed before final disposition
|
||||
DISPO - Agent in disposition screen when they closed their web browser wiithout selecting dispisition
|
||||
|
||||
@@ -551,7 +551,8 @@ voicemail_id VARCHAR(10),
|
||||
agent_call_log_view_override ENUM('DISABLED','Y','N') default 'DISABLED',
|
||||
callcard_admin ENUM('1','0') default '0',
|
||||
agent_choose_blended ENUM('0','1') default '1',
|
||||
realtime_block_user_info ENUM('0','1') default '0'
|
||||
realtime_block_user_info ENUM('0','1') default '0',
|
||||
custom_fields_modify ENUM('0','1') default '0'
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX user ON vicidial_users (user);
|
||||
@@ -1250,7 +1251,8 @@ custom_dialplan_entry TEXT,
|
||||
queuemetrics_loginout ENUM('STANDARD','CALLBACK') default 'STANDARD',
|
||||
callcard_enabled ENUM('1','0') default '0',
|
||||
queuemetrics_callstatus ENUM('0','1') default '1',
|
||||
default_codecs VARCHAR(100) default ''
|
||||
default_codecs VARCHAR(100) default '',
|
||||
custom_fields_enabled ENUM('0','1') default '0'
|
||||
);
|
||||
|
||||
CREATE TABLE vicidial_campaigns_list_mix (
|
||||
@@ -2066,6 +2068,25 @@ caller_code VARCHAR(30) NOT NULL,
|
||||
custom_call_id VARCHAR(100)
|
||||
);
|
||||
|
||||
CREATE TABLE vicidial_lists_fields (
|
||||
field_id INT(9) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
|
||||
list_id BIGINT(14) UNSIGNED NOT NULL DEFAULT '0',
|
||||
field_label VARCHAR(50),
|
||||
field_name VARCHAR(50),
|
||||
field_description VARCHAR(100),
|
||||
field_rank SMALLINT(5),
|
||||
field_help VARCHAR(255),
|
||||
field_type ENUM('TEXT','AREA','SELECT','MULTI','RADIO','CHECKBOX','DATE','TIME') default 'TEXT',
|
||||
field_options VARCHAR(5000),
|
||||
field_size SMALLINT(5),
|
||||
field_max SMALLINT(5),
|
||||
field_default VARCHAR(255),
|
||||
field_cost SMALLINT(5),
|
||||
field_required ENUM('Y','N') default 'N'
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX listfield on vicidial_lists_fields (list_id, field_label);
|
||||
|
||||
|
||||
ALTER TABLE vicidial_campaign_server_stats ENGINE=HEAP;
|
||||
|
||||
@@ -2205,9 +2226,12 @@ ALTER TABLE vicidial_agent_log_archive MODIFY agent_log_id INT(9) UNSIGNED NOT N
|
||||
|
||||
CREATE TABLE vicidial_carrier_log_archive LIKE vicidial_carrier_log;
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1216',db_schema_update_date=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1217',db_schema_update_date=NOW();
|
||||
|
||||
GRANT RELOAD ON *.* TO cron@'%';
|
||||
GRANT RELOAD ON *.* TO cron@localhost;
|
||||
|
||||
GRANT ALTER,CREATE on asterisk.* TO custom@'%' IDENTIFIED BY 'custom1234';
|
||||
GRANT ALTER,CREATE on asterisk.* TO custom@localhost IDENTIFIED BY 'custom1234';
|
||||
|
||||
flush privileges;
|
||||
|
||||
@@ -272,3 +272,31 @@ UPDATE system_settings SET db_schema_version='1215',db_schema_update_date=NOW();
|
||||
ALTER TABLE vicidial_inbound_groups MODIFY uniqueid_status_display ENUM('DISABLED','ENABLED','ENABLED_PREFIX','ENABLED_PRESERVE') default 'DISABLED';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1216',db_schema_update_date=NOW();
|
||||
|
||||
ALTER TABLE system_settings ADD custom_fields_enabled ENUM('0','1') default '0';
|
||||
|
||||
ALTER TABLE vicidial_users ADD custom_fields_modify ENUM('0','1') default '0';
|
||||
|
||||
GRANT ALTER,CREATE on asterisk.* TO custom@'%' IDENTIFIED BY 'custom1234';
|
||||
GRANT ALTER,CREATE on asterisk.* TO custom@localhost IDENTIFIED BY 'custom1234';
|
||||
|
||||
CREATE TABLE vicidial_lists_fields (
|
||||
field_id INT(9) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
|
||||
list_id BIGINT(14) UNSIGNED NOT NULL DEFAULT '0',
|
||||
field_label VARCHAR(50),
|
||||
field_name VARCHAR(50),
|
||||
field_description VARCHAR(100),
|
||||
field_rank SMALLINT(5),
|
||||
field_help VARCHAR(255),
|
||||
field_type ENUM('TEXT','AREA','SELECT','MULTI','RADIO','CHECKBOX','DATE','TIME') default 'TEXT',
|
||||
field_options VARCHAR(5000),
|
||||
field_size SMALLINT(5),
|
||||
field_max SMALLINT(5),
|
||||
field_default VARCHAR(255),
|
||||
field_cost SMALLINT(5),
|
||||
field_required ENUM('Y','N') default 'N'
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX listfield on vicidial_lists_fields (list_id, field_label);
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1217',db_schema_update_date=NOW();
|
||||
|
||||
+89
-2
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
# install.pl version 2.2.0
|
||||
# install.pl version 2.4
|
||||
#
|
||||
# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2010 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
|
||||
# CHANGES
|
||||
@@ -21,6 +21,7 @@
|
||||
# 90727-1457 - Added GSW directory creation
|
||||
# 91105-1359 - Added MIX directory to /var/spool/asterisk/monitor
|
||||
# 91123-0001 - Added FTP2 directory to /var/spool/asterisk/monitorDONE
|
||||
# 100428-0936 - Added DB custom user/pass fields
|
||||
#
|
||||
|
||||
############################################
|
||||
@@ -51,6 +52,8 @@ $VARDB_server = 'localhost';
|
||||
$VARDB_database = 'asterisk';
|
||||
$VARDB_user = 'cron';
|
||||
$VARDB_pass = '1234';
|
||||
$VARDB_custom_user = 'custom';
|
||||
$VARDB_custom_pass = 'custom1234';
|
||||
$VARDB_port = '3306';
|
||||
# default keepalive processes:
|
||||
$VARactive_keepalives = '1234568';
|
||||
@@ -91,6 +94,8 @@ $CLIDB_server=0;
|
||||
$CLIDB_database=0;
|
||||
$CLIDB_user=0;
|
||||
$CLIDB_pass=0;
|
||||
$CLIDB_custom_user=0;
|
||||
$CLIDB_custom_pass=0;
|
||||
$CLIDB_port=0;
|
||||
$CLIVARactive_keepalives=0;
|
||||
$CLIVARasterisk_version=0;
|
||||
@@ -163,6 +168,8 @@ if (length($ARGV[0])>1)
|
||||
print " [--DB_database=asterisk] = define database name at runtime\n";
|
||||
print " [--DB_user=cron] = define database user login at runtime\n";
|
||||
print " [--DB_pass=1234] = define database user password at runtime\n";
|
||||
print " [--DB_custom_user=custom] = define database custom user login at runtime\n";
|
||||
print " [--DB_custom_pass=custom1234] = define database custom user password at runtime\n";
|
||||
print " [--DB_port=3306] = define database connection port at runtime\n";
|
||||
print " [--active_keepalives=123456] = define processes to keepalive\n";
|
||||
print " X - NO KEEPALIVE PROCESSES (use only if you want none to be keepalive)\n";
|
||||
@@ -359,6 +366,30 @@ if (length($ARGV[0])>1)
|
||||
print " CLI defined DB password: $VARDB_pass\n";
|
||||
}
|
||||
}
|
||||
if ($args =~ /--DB_custom_user=/i) # CLI defined Database custom user login
|
||||
{
|
||||
@CLIDB_custom_userARY = split(/--DB_custom_user=/,$args);
|
||||
@CLIDB_custom_userARX = split(/ /,$CLIDB_custom_userARY[1]);
|
||||
if (length($CLIDB_custom_userARX[0])>1)
|
||||
{
|
||||
$VARDB_custom_user = $CLIDB_custom_userARX[0];
|
||||
$VARDB_custom_user =~ s/ |\r|\n|\t//gi;
|
||||
$CLIDB_custom_user=1;
|
||||
print " CLI defined DB custom user: $VARDB_custom_user\n";
|
||||
}
|
||||
}
|
||||
if ($args =~ /--DB_custom_pass=/i) # CLI defined Database custom password login
|
||||
{
|
||||
@CLIDB_custom_passARY = split(/--DB_custom_pass=/,$args);
|
||||
@CLIDB_custom_passARX = split(/ /,$CLIDB_custom_passARY[1]);
|
||||
if (length($CLIDB_custom_passARX[0])>1)
|
||||
{
|
||||
$VARDB_custom_pass = $CLIDB_custom_passARX[0];
|
||||
$VARDB_custom_pass =~ s/ |\r|\n|\t//gi;
|
||||
$CLIDB_custom_pass=1;
|
||||
print " CLI defined DB custom pass: $VARDB_custom_pass\n";
|
||||
}
|
||||
}
|
||||
if ($args =~ /--DB_port=/i) # CLI defined Database connection port
|
||||
{
|
||||
@CLIDB_portARY = split(/--DB_port=/,$args);
|
||||
@@ -651,6 +682,10 @@ if (length($ARGV[0])>1)
|
||||
{$VARDB_user = $line; $VARDB_user =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_pass/) && ($CLIDB_pass < 1) )
|
||||
{$VARDB_pass = $line; $VARDB_pass =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_custom_user/) && ($CLIDB_custom_user < 1) )
|
||||
{$VARDB_custom_user = $line; $VARDB_custom_user =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_custom_pass/) && ($CLIDB_custom_pass < 1) )
|
||||
{$VARDB_custom_pass = $line; $VARDB_custom_pass =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_port/) && ($CLIDB_port < 1) )
|
||||
{$VARDB_port = $line; $VARDB_port =~ s/.*=//gi;}
|
||||
$i++;
|
||||
@@ -811,6 +846,10 @@ if (length($ARGV[0])>1)
|
||||
{$VARDB_user = $line; $VARDB_user =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_pass/) && ($CLIDB_pass < 1) )
|
||||
{$VARDB_pass = $line; $VARDB_pass =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_custom_user/) && ($CLIDB_custom_user < 1) )
|
||||
{$VARDB_custom_user = $line; $VARDB_custom_user =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_custom_pass/) && ($CLIDB_custom_pass < 1) )
|
||||
{$VARDB_custom_pass = $line; $VARDB_custom_pass =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_port/) && ($CLIDB_port < 1) )
|
||||
{$VARDB_port = $line; $VARDB_port =~ s/.*=//gi;}
|
||||
$i++;
|
||||
@@ -952,6 +991,10 @@ if (-e "$PATHconf")
|
||||
{$VARDB_user = $line; $VARDB_user =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_pass/) && ($CLIDB_pass < 1) )
|
||||
{$VARDB_pass = $line; $VARDB_pass =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_custom_user/) && ($CLIDB_custom_user < 1) )
|
||||
{$VARDB_custom_user = $line; $VARDB_custom_user =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_custom_pass/) && ($CLIDB_custom_pass < 1) )
|
||||
{$VARDB_custom_pass = $line; $VARDB_custom_pass =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARDB_port/) && ($CLIDB_port < 1) )
|
||||
{$VARDB_port = $line; $VARDB_port =~ s/.*=//gi;}
|
||||
if ( ($line =~ /^VARactive_keepalives/) && ($CLIactive_keepalives < 1) )
|
||||
@@ -1546,6 +1589,46 @@ else
|
||||
}
|
||||
##### END DB_pass prompting and check #####
|
||||
|
||||
##### BEGIN DB_custom_user prompting and check #####
|
||||
$continue='NO';
|
||||
while ($continue =~/NO/)
|
||||
{
|
||||
print("\nDB custom user login or press enter for default: [$VARDB_custom_user] ");
|
||||
$PROMPTDB_custom_user = <STDIN>;
|
||||
chomp($PROMPTDB_custom_user);
|
||||
if (length($PROMPTDB_custom_user)>1)
|
||||
{
|
||||
$PROMPTDB_custom_user =~ s/ |\n|\r|\t|\/$//gi;
|
||||
$VARDB_custom_user=$PROMPTDB_custom_user;
|
||||
$continue='YES';
|
||||
}
|
||||
else
|
||||
{
|
||||
$continue='YES';
|
||||
}
|
||||
}
|
||||
##### END DB_custom_user prompting and check #####
|
||||
|
||||
##### BEGIN DB_custom_pass prompting and check #####
|
||||
$continue='NO';
|
||||
while ($continue =~/NO/)
|
||||
{
|
||||
print("\nDB custom password login or press enter for default: [$VARDB_custom_pass] ");
|
||||
$PROMPTDB_custom_pass = <STDIN>;
|
||||
chomp($PROMPTDB_custom_pass);
|
||||
if (length($PROMPTDB_custom_pass)>1)
|
||||
{
|
||||
$PROMPTDB_custom_pass =~ s/ |\n|\r|\t|\/$//gi;
|
||||
$VARDB_custom_pass=$PROMPTDB_custom_pass;
|
||||
$continue='YES';
|
||||
}
|
||||
else
|
||||
{
|
||||
$continue='YES';
|
||||
}
|
||||
}
|
||||
##### END DB_custom_pass prompting and check #####
|
||||
|
||||
##### BEGIN DB_port prompting and check #####
|
||||
$continue='NO';
|
||||
while ($continue =~/NO/)
|
||||
@@ -2043,6 +2126,8 @@ else
|
||||
print " defined DB_database: $VARDB_database\n";
|
||||
print " defined DB_user: $VARDB_user\n";
|
||||
print " defined DB_pass: $VARDB_pass\n";
|
||||
print " defined DB_custom_user: $VARDB_custom_user\n";
|
||||
print " defined DB_custom_pass: $VARDB_custom_pass\n";
|
||||
print " defined DB_port: $VARDB_port\n";
|
||||
print " defined active_keepalives: $VARactive_keepalives\n";
|
||||
print " defined asterisk_version: $VARasterisk_version\n";
|
||||
@@ -2101,6 +2186,8 @@ print conf "VARDB_server => $VARDB_server\n";
|
||||
print conf "VARDB_database => $VARDB_database\n";
|
||||
print conf "VARDB_user => $VARDB_user\n";
|
||||
print conf "VARDB_pass => $VARDB_pass\n";
|
||||
print conf "VARDB_custom_user => $VARDB_custom_user\n";
|
||||
print conf "VARDB_custom_pass => $VARDB_custom_pass\n";
|
||||
print conf "VARDB_port => $VARDB_port\n";
|
||||
print conf "\n";
|
||||
print conf "# Alpha-Numeric list of the astGUIclient processes to be kept running\n";
|
||||
|
||||
@@ -118,9 +118,51 @@ You can define a comma delimited list of codecs to be set as the default codecs
|
||||
Allowed Codecs With Template||
|
||||
Setting this option to 1 will include the codecs defined above even if a conf file template is used. Default is 0||
|
||||
If the PRESERVE option is used and the call is sent to a second agent, the uniqueid and prefix displayed to the first agent will also be displayed to the second agent||
|
||||
Custom Fields Modify||
|
||||
This option if set to 1 allows the user to modify custom list fields||
|
||||
ERROR: Custom Fields are not active on this system||
|
||||
Lists Custom Field||
|
||||
Field Label||
|
||||
This is the database field identifier for this field. This needs to be a unique identifier within the custom fields for this list. Do not use any spaces or punctuation for this field. max 50 characters, minimum of 2 characters||
|
||||
Field Name||
|
||||
This is the name of the field as it will appear to an agent through their interface. You can use spaces in this field, but no punctuation characters, maximum of 50 characters and minimum of 2 characters||
|
||||
Field Description||
|
||||
The description of this field as it will appear in the administration interface. This is an optional field with a maximum of 100 characters||
|
||||
Field Rank||
|
||||
The order in which these fields is displayed to the agent from lowest on top to highest on the bottom||
|
||||
Field Help||
|
||||
Optional field, if you fill it in, the agent will be able to see this text when they click on a help link next to the field in their agent interface||
|
||||
Field Type||
|
||||
This option defines the type of field that will be displayed. TEXT is a standard single-line entry form, AREA is a multi-line text box, SELECT is a single-selection pull-down menu, MULTI is a multiple-select box, RADIO is a list of radio buttons where only one option can be selected, CHECKBOX is a list of checkboxes where multiple options can be selected, DATE is a year month day calendar popup where the agent can select the date and TIME is a time selection box. The default is TEXT. For the SELECT, MULTI, RADIO and CHECKBOX options you must define the option values below in the Field Options box||
|
||||
Field Options||
|
||||
For the SELECT, MULTI, RADIO and CHECKBOX field types, you must define the option values in this box. You must put a list of comma separated option label and option text here with each option one its own line. The first value should have no spaces in it, and neither values should have any punctuation. For example - electric_meter, Electric Meter||
|
||||
Field Size||
|
||||
This setting will mean different things depending on what the field type is. For TEXT fields, the size is the number of characters that will show in the field. For AREA fields, the size is the width of the text box in characters. For MULTI fields, this setting defines the number of options to be shown in the multi select list. For SELECT, RADIO, CHECKBOX, DATE and TIME this setting is ignored||
|
||||
Field Max||
|
||||
This setting will mean different things depending on what the field type is. For TEXT fields, the size is the maximum number of characters that are allowed in the field. For AREA fields, this field defines the number of rows of text visible in the text box. For MULTI, SELECT, RADIO, CHECKBOX, DATE and TIME this setting is ignored||
|
||||
Field Cost||
|
||||
This read only field tells you what the cost of this field is in the custom field table for this list. There is no hard limit for the number of custom fields you can have in a list, but the total of the cost of all fields for the list must be below 65000. This typically allows for hundreds of fields, but if you specify several TEXT fields that are hundreds or thousands of characters in length then you may hit this limit quickly. If you need that much text in a field you should choose an AREA type, which are stored differently and do not use as much table space||
|
||||
Field Required||
|
||||
If set to Y, this field will force the agent to enter text or select an option for this field. Default is N||
|
||||
Field Default||
|
||||
This optional field lets you define what value to assign to a field if nothing is loaded into that field. Default is NULL which disables the default function||
|
||||
MODIFY FIELDS||
|
||||
LIST LISTINGS WITH CUSTOM FIELDS COUNT||
|
||||
SUMMARY OF FIELDS||
|
||||
ADD A NEW CUSTOM FIELD FOR THIS LIST||
|
||||
ERROR: Field does not exist||
|
||||
ERROR: Table does not exist||
|
||||
ERROR: Field already exists for this list||
|
||||
CLICK HERE TO CONFIRM DELETION OF THIS CUSTOM FIELD||
|
||||
THIS CUSTOM FIELD HAS BEEN DELETED||
|
||||
Records in this custom table||
|
||||
EXAMPLE OF CUSTOM FORM||
|
||||
For DATE field types, the default is always set to today unless a number is put in in which case the date will be that many days plus or minus today. For TIME field types, the default is always set to the current server time unless a number is put in in which case the time will be that many minutes plus or minus current time||
|
||||
MODIFY EXISTING FIELDS||
|
||||
|
||||
|
||||
AST_VICIDIAL_ingrouplist.php
|
||||
admin_lists_custom.php
|
||||
############################################################ CLIENT
|
||||
VIEW CALL LOG||
|
||||
click to dial||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#
|
||||
# Example of what to put in the Dispo URL field:
|
||||
# VARhttp://192.168.1.1/agc/deactivate_lead.php?search_field=vendor_lead_code&new_status=INACTIV&dispo=--A--dispo--B--&lead_id=--A--lead_id--B--&campaign_check=TESTCAMP&user=--A--user--B--&pass=--A--pass--B--&sale_status=SALE---SSALE---XSALE&log_to_file=1
|
||||
# VARhttp://192.168.1.1/agc/deactivate_lead.php?search_field=phone_number&new_status=--A--dispo--B--&dispo=--A--dispo--B--&lead_id=--A--lead_id--B--&campaign_check=TESTCAMP&user=--A--user--B--&pass=--A--pass--B--&sale_status=BI---CX&log_to_file=1
|
||||
#
|
||||
#
|
||||
# CHANGES
|
||||
@@ -66,6 +67,7 @@ $TD = '---';
|
||||
$STARTtime = date("U");
|
||||
$NOW_TIME = date("Y-m-d H:i:s");
|
||||
$sale_status = "$TD$sale_status$TD";
|
||||
$search_value='';
|
||||
|
||||
if ($DB>0) {echo "$lead_id|$search_field|$campaign_check|$sale_status|$dispo|$new_status|$user|$pass|$DB|$log_to_file|\n";}
|
||||
|
||||
@@ -110,7 +112,6 @@ if (preg_match("/$TD$dispo$TD/",$sale_status))
|
||||
}
|
||||
|
||||
|
||||
$search_value='';
|
||||
$stmt = "SELECT $search_field FROM vicidial_list where lead_id='$lead_id';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -195,6 +196,6 @@ else
|
||||
if ($log_to_file > 0)
|
||||
{
|
||||
$fp = fopen ("./deactivate_lead.txt", "a");
|
||||
fwrite ($fp, "$NOW_TIME|$lead_id|$search_field|$campaign_check|$sale_status|$dispo|$new_status|$user|$pass|$DB|$log_to_file|$MESSAGE|\n");
|
||||
fwrite ($fp, "$NOW_TIME|$lead_id|$search_field|$search_value|$campaign_check|$sale_status|$dispo|$new_status|$user|$pass|$DB|$log_to_file|$MESSAGE|\n");
|
||||
fclose($fp);
|
||||
}
|
||||
|
||||
+31
-6
@@ -1249,6 +1249,8 @@ if (isset($_GET["codecs_list"])) {$codecs_list=$_GET["codecs_list"];}
|
||||
elseif (isset($_POST["codecs_list"])) {$codecs_list=$_POST["codecs_list"];}
|
||||
if (isset($_GET["codecs_with_template"])) {$codecs_with_template=$_GET["codecs_with_template"];}
|
||||
elseif (isset($_POST["codecs_with_template"])) {$codecs_with_template=$_POST["codecs_with_template"];}
|
||||
if (isset($_GET["custom_fields_modify"])) {$custom_fields_modify=$_GET["custom_fields_modify"];}
|
||||
elseif (isset($_POST["custom_fields_modify"])) {$custom_fields_modify=$_POST["custom_fields_modify"];}
|
||||
|
||||
|
||||
if (isset($script_id)) {$script_id= strtoupper($script_id);}
|
||||
@@ -1262,7 +1264,7 @@ if (strlen($dial_status) > 0)
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,enable_queuemetrics_logging,enable_vtiger_integration,qc_features_active,outbound_autodial_active,sounds_central_control_active,enable_second_webform,user_territories_active FROM system_settings;";
|
||||
$stmt = "SELECT use_non_latin,enable_queuemetrics_logging,enable_vtiger_integration,qc_features_active,outbound_autodial_active,sounds_central_control_active,enable_second_webform,user_territories_active,custom_fields_enabled FROM system_settings;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysql_num_rows($rslt);
|
||||
@@ -1277,6 +1279,7 @@ if ($qm_conf_ct > 0)
|
||||
$SSsounds_central_control_active = $row[5];
|
||||
$SSenable_second_webform = $row[6];
|
||||
$SSuser_territories_active = $row[7];
|
||||
$SScustom_fields_enabled = $row[8];
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
@@ -1458,6 +1461,7 @@ if ($non_latin < 1)
|
||||
$agent_choose_blended = ereg_replace("[^0-9]","",$agent_choose_blended);
|
||||
$realtime_block_user_info = ereg_replace("[^0-9]","",$realtime_block_user_info);
|
||||
$codecs_with_template = ereg_replace("[^0-9]","",$codecs_with_template);
|
||||
$custom_fields_modify = ereg_replace("[^0-9]","",$custom_fields_modify);
|
||||
|
||||
$drop_call_seconds = ereg_replace("[^-0-9]","",$drop_call_seconds);
|
||||
|
||||
@@ -2189,11 +2193,12 @@ else
|
||||
# 100414-1603 - Added extension_appended_cidname option to campaigns
|
||||
# 100420-1010 - Added scheduled_callbacks_count campaign option
|
||||
# 100423-1030 - Added realtime_block_user_info, manual dial campaign, blind monitor warnings, in-group callid, phones codecs features
|
||||
# 100506-1807 - Added hidden settings for lists custom fields
|
||||
#
|
||||
# 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.4-251';
|
||||
$build = '100423-1030';
|
||||
$admin_version = '2.4-252';
|
||||
$build = '100506-1807';
|
||||
|
||||
$STARTtime = date("U");
|
||||
$SQLdate = date("Y-m-d H:i:s");
|
||||
@@ -3360,6 +3365,15 @@ if ($ADD==99999)
|
||||
<B>Load Leads -</B> This option if set to 1 allows the user to load vicidial leads into the vicidial_list table by way of the web based lead loader.
|
||||
<?php
|
||||
}
|
||||
if ($SScustom_fields_enabled > 0)
|
||||
{
|
||||
?>
|
||||
<BR>
|
||||
<A NAME="vicidial_users-custom_fields_modify">
|
||||
<BR>
|
||||
<B>Custom Fields Modify -</B> This option if set to 1 allows the user to modify custom list fields.
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<BR>
|
||||
@@ -8765,7 +8779,7 @@ if ($ADD=="2A")
|
||||
$stmt="UPDATE system_settings SET auto_user_add_value='$user';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
$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) 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 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) 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 from vicidial_users where user=\"$source_user_id\";";
|
||||
$rslt=mysql_query($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\";";
|
||||
@@ -10939,7 +10953,7 @@ if ($ADD=="4A")
|
||||
}
|
||||
echo "<br><B>USER MODIFIED - ADMIN: $user</B>\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' where user='$user';";
|
||||
$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' where user='$user';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
### LOG INSERTION Admin Log Table ###
|
||||
@@ -16217,7 +16231,7 @@ if ($ADD==3)
|
||||
echo "<TABLE><TR><TD>\n";
|
||||
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
||||
|
||||
$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 from vicidial_users where user='$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,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 from vicidial_users where user='$user';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$user_id = $row[0];
|
||||
@@ -16299,6 +16313,7 @@ if ($ADD==3)
|
||||
$callcard_admin = $row[78];
|
||||
$agent_choose_blended = $row[79];
|
||||
$realtime_block_user_info = $row[80];
|
||||
$custom_fields_modify = $row[81];
|
||||
|
||||
if ( ($user_level >= $LOGuser_level) and ($LOGuser_level < 9) )
|
||||
{
|
||||
@@ -16316,6 +16331,11 @@ if ($ADD==3)
|
||||
else
|
||||
{echo "<input type=hidden name=ADD value=4>\n";}
|
||||
}
|
||||
if ($SScustom_fields_enabled < 1)
|
||||
{
|
||||
echo "<input type=hidden name=custom_fields_modify value=\"$custom_fields_modify\">\n";
|
||||
}
|
||||
|
||||
echo "<input type=hidden name=user value=\"$user\">\n";
|
||||
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>User Number: </td><td align=left><b>$user</b>$NWB#vicidial_users-user$NWE</td></tr>\n";
|
||||
@@ -16449,6 +16469,11 @@ if ($ADD==3)
|
||||
echo "<tr bgcolor=#B9CBFD><td align=right>Export Reports: </td><td align=left><select size=1 name=export_reports><option>0</option><option>1</option><option SELECTED>$export_reports</option></select>$NWB#vicidial_users-export_reports$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B9CBFD><td align=right>Delete From DNC Lists: </td><td align=left><select size=1 name=delete_from_dnc><option>0</option><option>1</option><option SELECTED>$delete_from_dnc</option></select>$NWB#vicidial_users-delete_from_dnc$NWE</td></tr>\n";
|
||||
|
||||
if ($SScustom_fields_enabled > 0)
|
||||
{
|
||||
echo "<tr bgcolor=#B9CBFD><td align=right>Custom Fields Modify: </td><td align=left><select size=1 name=custom_fields_modify><option>0</option><option>1</option><option SELECTED>$custom_fields_modify</option></select>$NWB#vicidial_users-custom_fields_modify$NWE</td></tr>\n";
|
||||
}
|
||||
|
||||
echo "<tr bgcolor=#9BB9FB><td align=right>Modify Campaigns: </td><td align=left><select size=1 name=modify_campaigns><option>0</option><option>1</option><option SELECTED>$modify_campaigns</option></select>$NWB#vicidial_users-modify_sections$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#9BB9FB><td align=right>Campaign Detail: </td><td align=left><select size=1 name=campaign_detail><option>0</option><option>1</option><option SELECTED>$campaign_detail</option></select>$NWB#vicidial_users-campaign_detail$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#9BB9FB><td align=right>Delete Campaigns: </td><td align=left><select size=1 name=delete_campaigns><option>0</option><option>1</option><option SELECTED>$delete_campaigns</option></select>$NWB#vicidial_users-delete_campaigns$NWE</td></tr>\n";
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
# 90916-2334 - Added Voicemail options
|
||||
# 91223-1030 - Added VIDPROMPT options for in-group routing in Call Menus
|
||||
# 100311-2210 - Added callcard_enabled Admin element
|
||||
# 100428-1039 - Added custom fields display
|
||||
#
|
||||
|
||||
|
||||
@@ -897,12 +898,13 @@ echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo "<!-- INTERNATIONALIZATION-LINKS-PLACEHOLDER-VICIDIAL -->\n";
|
||||
|
||||
$stmt="SELECT admin_home_url,enable_tts_integration,callcard_enabled from system_settings;";
|
||||
$stmt="SELECT admin_home_url,enable_tts_integration,callcard_enabled,custom_fields_enabled from system_settings;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$admin_home_url_LU = $row[0];
|
||||
$SSenable_tts_integration = $row[1];
|
||||
$SScallcard_enabled = $row[2];
|
||||
$SScustom_fields_enabled = $row[3];
|
||||
|
||||
?>
|
||||
<CENTER>
|
||||
@@ -1000,22 +1002,33 @@ $SScallcard_enabled = $row[2];
|
||||
?>
|
||||
<TR><TD ALIGN=LEFT <?php echo $lists_hh ?>><a href="<?php echo $ADMIN ?>?ADD=100"><FONT FACE="ARIAL,HELVETICA" COLOR=<?php echo $lists_fc ?> SIZE=<?php echo $header_font_size ?>><?php echo $lists_bold ?>Lists</a></TD></TR>
|
||||
<?php
|
||||
if (strlen($lists_hh) > 1) {
|
||||
if (strlen($lists_hh) > 1)
|
||||
{
|
||||
if ($LOGdelete_from_dnc > 0) {$DNClink = 'Add-Delete Number From DNC';}
|
||||
else {$DNClink = 'Add Number To DNC';}
|
||||
?>
|
||||
<TR BGCOLOR=<?php echo $lists_color ?>><TD ALIGN=LEFT>
|
||||
<a href="<?php echo $ADMIN ?>?ADD=100"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Show Lists </a>
|
||||
</TR><TR BGCOLOR=<?php echo $lists_color ?>><TD ALIGN=LEFT>
|
||||
<a href="<?php echo $ADMIN ?>?ADD=111"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Add A New List </a>
|
||||
</TR><TR BGCOLOR=<?php echo $lists_color ?>><TD ALIGN=LEFT>
|
||||
<a href="admin_search_lead.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Search For A Lead </a>
|
||||
</TR><TR BGCOLOR=<?php echo $lists_color ?>><TD ALIGN=LEFT>
|
||||
<a href="<?php echo $ADMIN ?>?ADD=121"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> <?php echo $DNClink ?> </a>
|
||||
</TR><TR BGCOLOR=<?php echo $lists_color ?>><TD ALIGN=LEFT>
|
||||
<a href="./new_listloader_superL.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Load New Leads </a>
|
||||
</TD></TR>
|
||||
<?php }
|
||||
<TR BGCOLOR=<?php echo $lists_color ?>><TD ALIGN=LEFT>
|
||||
<a href="<?php echo $ADMIN ?>?ADD=100"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Show Lists </a>
|
||||
</TR><TR BGCOLOR=<?php echo $lists_color ?>><TD ALIGN=LEFT>
|
||||
<a href="<?php echo $ADMIN ?>?ADD=111"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Add A New List </a>
|
||||
</TR><TR BGCOLOR=<?php echo $lists_color ?>><TD ALIGN=LEFT>
|
||||
<a href="admin_search_lead.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Search For A Lead </a>
|
||||
</TR><TR BGCOLOR=<?php echo $lists_color ?>><TD ALIGN=LEFT>
|
||||
<a href="<?php echo $ADMIN ?>?ADD=121"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> <?php echo $DNClink ?> </a>
|
||||
</TR><TR BGCOLOR=<?php echo $lists_color ?>><TD ALIGN=LEFT>
|
||||
<a href="./new_listloader_superL.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> Load New Leads </a>
|
||||
<?php
|
||||
if ($SScustom_fields_enabled > 0)
|
||||
{
|
||||
?>
|
||||
</TR><TR BGCOLOR=<?php echo $lists_color ?>><TD ALIGN=LEFT>
|
||||
<a href="./admin_lists_custom.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=<?php echo $subheader_font_size ?>> List Custom Fields </a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</TD></TR>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!-- SCRIPTS NAVIGATION -->
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
#
|
||||
# dbconnect.php version 2.2.0
|
||||
# dbconnect.php version 2.4
|
||||
#
|
||||
# database connection settings and some global web settings
|
||||
#
|
||||
@@ -26,6 +26,10 @@ if ( file_exists("/etc/astguiclient.conf") )
|
||||
{$VARDB_user = $DBCline; $VARDB_user = preg_replace("/.*=/","",$VARDB_user);}
|
||||
if (ereg("^VARDB_pass", $DBCline))
|
||||
{$VARDB_pass = $DBCline; $VARDB_pass = preg_replace("/.*=/","",$VARDB_pass);}
|
||||
if (ereg("^VARDB_custom_user", $DBCline))
|
||||
{$VARDB_custom_user = $DBCline; $VARDB_custom_user = preg_replace("/.*=/","",$VARDB_custom_user);}
|
||||
if (ereg("^VARDB_custom_pass", $DBCline))
|
||||
{$VARDB_custom_pass = $DBCline; $VARDB_custom_pass = preg_replace("/.*=/","",$VARDB_custom_pass);}
|
||||
if (ereg("^VARDB_port", $DBCline))
|
||||
{$VARDB_port = $DBCline; $VARDB_port = preg_replace("/.*=/","",$VARDB_port);}
|
||||
}
|
||||
@@ -37,6 +41,8 @@ else
|
||||
$VARDB_port = '3306';
|
||||
$VARDB_user = 'cron';
|
||||
$VARDB_pass = '1234';
|
||||
$VARDB_custom_user = 'custom';
|
||||
$VARDB_custom_pass = 'custom1234';
|
||||
$VARDB_database = '1234';
|
||||
$WeBServeRRooT = '/usr/local/apache2/htdocs';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user