diff --git a/www/vicidial/admin.php b/www/vicidial/admin.php
index 6d95a30c..6ef005a4 100644
--- a/www/vicidial/admin.php
+++ b/www/vicidial/admin.php
@@ -4484,12 +4484,13 @@ else
# 190310-1909 - Added mute_recordings system setting and campaign/user options
# 190311-2153 - Added indicators for lists being assigned to non-existing campaigns
# 190312-0928 - Added more hide_call_log_info options
+# 190327-2311 - Added READ_ONLY settings container type
#
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time
-$admin_version = '2.14-704a';
-$build = '190312-0928';
+$admin_version = '2.14-705a';
+$build = '190327-2311';
$STARTtime = date("U");
$SQLdate = date("Y-m-d H:i:s");
@@ -9050,7 +9051,7 @@ if ($ADD==192111111111)
echo "
"._QXZ("Container ID").": $NWB#settings_containers-container_id$NWE \n";
echo ""._QXZ("Container Notes").": $NWB#settings_containers-container_notes$NWE \n";
- echo ""._QXZ("Container Type").": "._QXZ("OTHER")." "._QXZ("PERL_CLI")." "._QXZ("EMAIL_TEMPLATE")." "._QXZ("AGI")." "._QXZ("INGROUP_LIST")." "._QXZ("CAMPAIGN_LIST")." "._QXZ("TIMEZONE_LIST")." "._QXZ("DISPO_FILTER")." $NWB#settings_containers-container_type$NWE \n";
+ echo ""._QXZ("Container Type").": "._QXZ("OTHER")." "._QXZ("PERL_CLI")." "._QXZ("EMAIL_TEMPLATE")." "._QXZ("AGI")." "._QXZ("INGROUP_LIST")." "._QXZ("CAMPAIGN_LIST")." "._QXZ("TIMEZONE_LIST")." "._QXZ("DISPO_FILTER")." "._QXZ("READ_ONLY")." $NWB#settings_containers-container_type$NWE \n";
echo ""._QXZ("Admin User Group").": \n";
echo "$UUgroups_list";
echo ""._QXZ("All Admin User Groups")." \n";
@@ -17094,7 +17095,10 @@ if ($ADD==492111111111)
{echo " "._QXZ("SETTINGS CONTAINER NOT MODIFIED - Please go back and look at the data you entered")."\n";}
else
{
- $stmt="UPDATE vicidial_settings_containers set container_notes='$container_notes',container_type='$container_type',user_group='$user_group',container_entry='" . mysqli_real_escape_string($link, $container_entry) ."' where container_id='$container_id';";
+ $container_entrySQL = ",container_entry='" . mysqli_real_escape_string($link, $container_entry) ."'";
+ if ($container_type == 'READ_ONLY')
+ {$container_entrySQL = '';}
+ $stmt="UPDATE vicidial_settings_containers set container_notes='$container_notes',container_type='$container_type',user_group='$user_group' $container_entrySQL where container_id='$container_id';";
$rslt=mysql_to_mysqli($stmt, $link);
echo " "._QXZ("SETTINGS CONTAINER MODIFIED").": $container_id\n";
@@ -35659,15 +35663,21 @@ if ($ADD==392111111111)
echo ""._QXZ("Container Notes").": $NWB#settings_containers-container_notes$NWE \n";
- echo ""._QXZ("Container Type").": "._QXZ("OTHER")." "._QXZ("PERL_CLI")." "._QXZ("EMAIL_TEMPLATE")." "._QXZ("AGI")." "._QXZ("INGROUP_LIST")." "._QXZ("CAMPAIGN_LIST")." "._QXZ("TIMEZONE_LIST")." "._QXZ("DISPO_FILTER")." "._QXZ("$container_type")." $NWB#settings_containers-container_type$NWE \n";
+ echo ""._QXZ("Container Type").": "._QXZ("OTHER")." "._QXZ("PERL_CLI")." "._QXZ("EMAIL_TEMPLATE")." "._QXZ("AGI")." "._QXZ("INGROUP_LIST")." "._QXZ("CAMPAIGN_LIST")." "._QXZ("TIMEZONE_LIST")." "._QXZ("DISPO_FILTER")." "._QXZ("READ_ONLY")." "._QXZ("$container_type")." $NWB#settings_containers-container_type$NWE \n";
echo ""._QXZ("Admin User Group").": \n";
echo "$UUgroups_list";
echo "$user_group \n";
echo " $NWB#settings_containers-user_group$NWE \n";
- echo ""._QXZ("Container Entry").": $NWB#settings_containers-container_entry$NWE \n";
-
+ if ($container_type == 'READ_ONLY')
+ {
+ echo ""._QXZ("Container Entry").": $container_entry $NWB#settings_containers-container_entry$NWE \n";
+ }
+ else
+ {
+ echo ""._QXZ("Container Entry").": $NWB#settings_containers-container_entry$NWE \n";
+ }
echo " \n";
echo "\n";
diff --git a/www/vicidial/help_documentation.txt b/www/vicidial/help_documentation.txt
index c96d4f84..d789b779 100644
--- a/www/vicidial/help_documentation.txt
+++ b/www/vicidial/help_documentation.txt
@@ -1,4 +1,4 @@
-# version: 20190317110401
+# version: 20190327231401
users-user User ID This field is where you put the users ID number, can be up to 8 digits in length, Must be at least 2 characters in length.
users-pass Password This field is where you put the users password. Must be at least 2 characters in length. A medium strength user password will be at least 10 characters in length, and a strong user password will be at least 20 characters in length and have letters as well as at least one number. It is recommended that you use a longer password if possible, stringing together several unrelated words with no spaces, and a number somewhere in the string. The maximum size of a password is 100 characters.
users-force_change_password Force Change Password If this option is set to Y then the user will be prompted to change their password the next time they log in to the administration webpage. Default is N.
@@ -1118,7 +1118,7 @@ screen_colors-active Active Set whether the screen color set is active or n
settings_containers Settings Containers allow for an easy way to add, modify and delete large configurations of settings, or for elements like email templates to be used by PHP and Perl scripts within the codebase. Settings Containers allow for an easy way to add, modify and delete large configurations of settings, or for elements like email templates to be used by PHP and Perl scripts within the codebase.
settings_containers-container_id Container ID This field needs to be at least 2 characters in length and no more than 40 characters in length, no spaces or special characters. This is the ID that will be used to identify the Settings Container throughout the system.
settings_containers-container_notes Container Notes This is the descriptive name of the Settings Container entry.
-settings_containers-container_type Container Type This is the type of Container entry. This is only used for categorization.
+settings_containers-container_type Container Type This is the type of Container entry. This is used primarily for categorization and to show only certain containers in certain places. There is also a special container type -READ_ONLY- that is used and updated by external processes that cannot have the container entry modified within the admin screens. Default is OTHER.
settings_containers-user_group Admin User Group This is the administrative user group for this record, this allows admin viewing of this record restricted by user group. Default is --ALL-- which allows any admin user to view this record.
settings_containers-container_entry Container Entry This is where you put the contents of the settings that you want in this container.
auto_reports Automated Reports allow for a simplified way of configuring reports to be run on a scheduled and recurring basis, and to have the results sent by email or uploaded to an FTP server. Automated Reports allow for a simplified way of configuring reports to be run on a scheduled and recurring basis, and to have the results sent by email or uploaded to an FTP server.