|
|
|
@@ -1,111 +1,203 @@
|
|
|
|
|
<?
|
|
|
|
|
### admin.php - astGUIclient administration script
|
|
|
|
|
###
|
|
|
|
|
### Copyright (C) 2006 Matt Florell <vicidial@gmail.com> LICENSE: GPLv2
|
|
|
|
|
###
|
|
|
|
|
### AST GUI database administration
|
|
|
|
|
###
|
|
|
|
|
### 50913-1118 Added outbound_cid for web-client calls
|
|
|
|
|
### 50926-1356 Modified to allow for language translation
|
|
|
|
|
### 50926-1613 Added WeBRooTWritablE write controls
|
|
|
|
|
### 51128-1254 Modified to allow PHP global vars off
|
|
|
|
|
### 51208-2120 Added option to login with vicidial_user login if allowed
|
|
|
|
|
### 51213-1650 Added option to delete phones if allowed by vicidial_users
|
|
|
|
|
###
|
|
|
|
|
# admin.php - astGUIclient administration script
|
|
|
|
|
#
|
|
|
|
|
# Copyright (C) 2006 Matt Florell <vicidial@gmail.com> LICENSE: GPLv2
|
|
|
|
|
#
|
|
|
|
|
# AST GUI database administration
|
|
|
|
|
#
|
|
|
|
|
# 50913-1118 - Added outbound_cid for web-client calls
|
|
|
|
|
# 50926-1356 - Modified to allow for language translation
|
|
|
|
|
# 50926-1613 - Added WeBRooTWritablE write controls
|
|
|
|
|
# 51128-1254 - Modified to allow PHP global vars off
|
|
|
|
|
# 51208-2120 - Added option to login with vicidial_user login if allowed
|
|
|
|
|
# 51213-1650 - Added option to delete phones if allowed by vicidial_users
|
|
|
|
|
# 60421-1430 - check GET/POST vars lines with isset to not trigger PHP NOTICES
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
$version = '1.1.10-2';
|
|
|
|
|
$build = '60421-1430';
|
|
|
|
|
|
|
|
|
|
require("dbconnect.php");
|
|
|
|
|
|
|
|
|
|
$PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER'];
|
|
|
|
|
$PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW'];
|
|
|
|
|
$PHP_SELF=$_SERVER['PHP_SELF'];
|
|
|
|
|
$ADD=$_GET["ADD"]; if (!$ADD) {$ADD=$_POST["ADD"];}
|
|
|
|
|
$user=$_GET["user"]; if (!$user) {$user=$_POST["user"];}
|
|
|
|
|
$pass=$_GET["pass"]; if (!$pass) {$pass=$_POST["pass"];}
|
|
|
|
|
$full_name=$_GET["full_name"]; if (!$full_name) {$full_name=$_POST["full_name"];}
|
|
|
|
|
$user_level=$_GET["user_level"]; if (!$user_level) {$user_level=$_POST["user_level"];}
|
|
|
|
|
$group=$_GET["group"]; if (!$group) {$group=$_POST["group"];}
|
|
|
|
|
$status=$_GET["status"]; if (!$status) {$status=$_POST["status"];}
|
|
|
|
|
$server_ip=$_GET["server_ip"]; if (!$server_ip) {$server_ip=$_POST["server_ip"];}
|
|
|
|
|
$server_id=$_GET["server_id"]; if (!$server_id) {$server_id=$_POST["server_id"];}
|
|
|
|
|
$extension=$_GET["extension"]; if (!$extension) {$extension=$_POST["extension"];}
|
|
|
|
|
$dialplan_number=$_GET["dialplan_number"]; if (!$dialplan_number) {$dialplan_number=$_POST["dialplan_number"];}
|
|
|
|
|
$voicemail_id=$_GET["voicemail_id"]; if (!$voicemail_id) {$voicemail_id=$_POST["voicemail_id"];}
|
|
|
|
|
$phone_ip=$_GET["phone_ip"]; if (!$phone_ip) {$phone_ip=$_POST["phone_ip"];}
|
|
|
|
|
$computer_ip=$_GET["computer_ip"]; if (!$computer_ip) {$computer_ip=$_POST["computer_ip"];}
|
|
|
|
|
$login=$_GET["login"]; if (!$login) {$login=$_POST["login"];}
|
|
|
|
|
$active=$_GET["active"]; if (!$active) {$active=$_POST["active"];}
|
|
|
|
|
$phone_type=$_GET["phone_type"]; if (!$phone_type) {$phone_type=$_POST["phone_type"];}
|
|
|
|
|
$fullname=$_GET["fullname"]; if (!$fullname) {$fullname=$_POST["fullname"];}
|
|
|
|
|
$company=$_GET["company"]; if (!$company) {$company=$_POST["company"];}
|
|
|
|
|
$picture=$_GET["picture"]; if (!$picture) {$picture=$_POST["picture"];}
|
|
|
|
|
$protocol=$_GET["protocol"]; if (!$protocol) {$protocol=$_POST["protocol"];}
|
|
|
|
|
$local_gmt=$_GET["local_gmt"]; if (!$local_gmt) {$local_gmt=$_POST["local_gmt"];}
|
|
|
|
|
$ASTmgrUSERNAME=$_GET["ASTmgrUSERNAME"]; if (!$ASTmgrUSERNAME) {$ASTmgrUSERNAME=$_POST["ASTmgrUSERNAME"];}
|
|
|
|
|
$ASTmgrSECRET=$_GET["ASTmgrSECRET"]; if (!$ASTmgrSECRET) {$ASTmgrSECRET=$_POST["ASTmgrSECRET"];}
|
|
|
|
|
$login_user=$_GET["login_user"]; if (!$login_user) {$login_user=$_POST["login_user"];}
|
|
|
|
|
$login_pass=$_GET["login_pass"]; if (!$login_pass) {$login_pass=$_POST["login_pass"];}
|
|
|
|
|
$login_campaign=$_GET["login_campaign"]; if (!$login_campaign) {$login_campaign=$_POST["login_campaign"];}
|
|
|
|
|
$park_on_extension=$_GET["park_on_extension"]; if (!$park_on_extension) {$park_on_extension=$_POST["park_on_extension"];}
|
|
|
|
|
$conf_on_extension=$_GET["conf_on_extension"]; if (!$conf_on_extension) {$conf_on_extension=$_POST["conf_on_extension"];}
|
|
|
|
|
$VICIDIAL_park_on_extension=$_GET["VICIDIAL_park_on_extension"]; if (!$VICIDIAL_park_on_extension) {$VICIDIAL_park_on_extension=$_POST["VICIDIAL_park_on_extension"];}
|
|
|
|
|
$VICIDIAL_park_on_filename=$_GET["VICIDIAL_park_on_filename"]; if (!$VICIDIAL_park_on_filename) {$VICIDIAL_park_on_filename=$_POST["VICIDIAL_park_on_filename"];}
|
|
|
|
|
$monitor_prefix=$_GET["monitor_prefix"]; if (!$monitor_prefix) {$monitor_prefix=$_POST["monitor_prefix"];}
|
|
|
|
|
$recording_exten=$_GET["recording_exten"]; if (!$recording_exten) {$recording_exten=$_POST["recording_exten"];}
|
|
|
|
|
$voicemail_exten=$_GET["voicemail_exten"]; if (!$voicemail_exten) {$voicemail_exten=$_POST["voicemail_exten"];}
|
|
|
|
|
$voicemail_dump_exten=$_GET["voicemail_dump_exten"]; if (!$voicemail_dump_exten) {$voicemail_dump_exten=$_POST["voicemail_dump_exten"];}
|
|
|
|
|
$ext_context=$_GET["ext_context"]; if (!$ext_context) {$ext_context=$_POST["ext_context"];}
|
|
|
|
|
$dtmf_send_extension=$_GET["dtmf_send_extension"]; if (!$dtmf_send_extension) {$dtmf_send_extension=$_POST["dtmf_send_extension"];}
|
|
|
|
|
$call_out_number_group=$_GET["call_out_number_group"]; if (!$call_out_number_group) {$call_out_number_group=$_POST["call_out_number_group"];}
|
|
|
|
|
$client_browser=$_GET["client_browser"]; if (!$client_browser) {$client_browser=$_POST["client_browser"];}
|
|
|
|
|
$install_directory=$_GET["install_directory"]; if (!$install_directory) {$install_directory=$_POST["install_directory"];}
|
|
|
|
|
$local_web_callerID_URL=$_GET["local_web_callerID_URL"]; if (!$local_web_callerID_URL) {$local_web_callerID_URL=$_POST["local_web_callerID_URL"];}
|
|
|
|
|
$VICIDIAL_web_URL=$_GET["VICIDIAL_web_URL"]; if (!$VICIDIAL_web_URL) {$VICIDIAL_web_URL=$_POST["VICIDIAL_web_URL"];}
|
|
|
|
|
$AGI_call_logging_enabled=$_GET["AGI_call_logging_enabled"]; if (!$AGI_call_logging_enabled) {$AGI_call_logging_enabled=$_POST["AGI_call_logging_enabled"];}
|
|
|
|
|
$user_switching_enabled=$_GET["user_switching_enabled"]; if (!$user_switching_enabled) {$user_switching_enabled=$_POST["user_switching_enabled"];}
|
|
|
|
|
$conferencing_enabled=$_GET["conferencing_enabled"]; if (!$conferencing_enabled) {$conferencing_enabled=$_POST["conferencing_enabled"];}
|
|
|
|
|
$admin_hangup_enabled=$_GET["admin_hangup_enabled"]; if (!$admin_hangup_enabled) {$admin_hangup_enabled=$_POST["admin_hangup_enabled"];}
|
|
|
|
|
$admin_hijack_enabled=$_GET["admin_hijack_enabled"]; if (!$admin_hijack_enabled) {$admin_hijack_enabled=$_POST["admin_hijack_enabled"];}
|
|
|
|
|
$admin_monitor_enabled=$_GET["admin_monitor_enabled"]; if (!$admin_monitor_enabled) {$admin_monitor_enabled=$_POST["admin_monitor_enabled"];}
|
|
|
|
|
$call_parking_enabled=$_GET["call_parking_enabled"]; if (!$call_parking_enabled) {$call_parking_enabled=$_POST["call_parking_enabled"];}
|
|
|
|
|
$updater_check_enabled=$_GET["updater_check_enabled"]; if (!$updater_check_enabled) {$updater_check_enabled=$_POST["updater_check_enabled"];}
|
|
|
|
|
$AFLogging_enabled=$_GET["AFLogging_enabled"]; if (!$AFLogging_enabled) {$AFLogging_enabled=$_POST["AFLogging_enabled"];}
|
|
|
|
|
$QUEUE_ACTION_enabled=$_GET["QUEUE_ACTION_enabled"]; if (!$QUEUE_ACTION_enabled) {$QUEUE_ACTION_enabled=$_POST["QUEUE_ACTION_enabled"];}
|
|
|
|
|
$CallerID_popup_enabled=$_GET["CallerID_popup_enabled"]; if (!$CallerID_popup_enabled) {$CallerID_popup_enabled=$_POST["CallerID_popup_enabled"];}
|
|
|
|
|
$voicemail_button_enabled=$_GET["voicemail_button_enabled"]; if (!$voicemail_button_enabled) {$voicemail_button_enabled=$_POST["voicemail_button_enabled"];}
|
|
|
|
|
$enable_fast_refresh=$_GET["enable_fast_refresh"]; if (!$enable_fast_refresh) {$enable_fast_refresh=$_POST["enable_fast_refresh"];}
|
|
|
|
|
$fast_refresh_rate=$_GET["fast_refresh_rate"]; if (!$fast_refresh_rate) {$fast_refresh_rate=$_POST["fast_refresh_rate"];}
|
|
|
|
|
$enable_persistant_mysql=$_GET["enable_persistant_mysql"]; if (!$enable_persistant_mysql) {$enable_persistant_mysql=$_POST["enable_persistant_mysql"];}
|
|
|
|
|
$auto_dial_next_number=$_GET["auto_dial_next_number"]; if (!$auto_dial_next_number) {$auto_dial_next_number=$_POST["auto_dial_next_number"];}
|
|
|
|
|
$VDstop_rec_after_each_call=$_GET["VDstop_rec_after_each_call"]; if (!$VDstop_rec_after_each_call) {$VDstop_rec_after_each_call=$_POST["VDstop_rec_after_each_call"];}
|
|
|
|
|
$DBX_server=$_GET["DBX_server"]; if (!$DBX_server) {$DBX_server=$_POST["DBX_server"];}
|
|
|
|
|
$DBX_database=$_GET["DBX_database"]; if (!$DBX_database) {$DBX_database=$_POST["DBX_database"];}
|
|
|
|
|
$DBX_user=$_GET["DBX_user"]; if (!$DBX_user) {$DBX_user=$_POST["DBX_user"];}
|
|
|
|
|
$DBX_pass=$_GET["DBX_pass"]; if (!$DBX_pass) {$DBX_pass=$_POST["DBX_pass"];}
|
|
|
|
|
$DBX_port=$_GET["DBX_port"]; if (!$DBX_port) {$DBX_port=$_POST["DBX_port"];}
|
|
|
|
|
$DBY_server=$_GET["DBY_server"]; if (!$DBY_server) {$DBY_server=$_POST["DBY_server"];}
|
|
|
|
|
$DBY_database=$_GET["DBY_database"]; if (!$DBY_database) {$DBY_database=$_POST["DBY_database"];}
|
|
|
|
|
$DBY_user=$_GET["DBY_user"]; if (!$DBY_user) {$DBY_user=$_POST["DBY_user"];}
|
|
|
|
|
$DBY_pass=$_GET["DBY_pass"]; if (!$DBY_pass) {$DBY_pass=$_POST["DBY_pass"];}
|
|
|
|
|
$DBY_port=$_GET["DBY_port"]; if (!$DBY_port) {$DBY_port=$_POST["DBY_port"];}
|
|
|
|
|
$outbound_cid=$_GET["outbound_cid"]; if (!$outbound_cid) {$outbound_cid=$_POST["outbound_cid"];}
|
|
|
|
|
$old_extension=$_GET["old_extension"]; if (!$old_extension) {$old_extension=$_POST["old_extension"];}
|
|
|
|
|
$old_server_ip=$_GET["old_server_ip"]; if (!$old_server_ip) {$old_server_ip=$_POST["old_server_ip"];}
|
|
|
|
|
$old_server_id=$_GET["old_server_id"]; if (!$old_server_id) {$old_server_id=$_POST["old_server_id"];}
|
|
|
|
|
$server_description=$_GET["server_description"]; if (!$server_description) {$server_description=$_POST["server_description"];}
|
|
|
|
|
$asterisk_version=$_GET["asterisk_version"]; if (!$asterisk_version) {$asterisk_version=$_POST["asterisk_version"];}
|
|
|
|
|
$max_vicidial_trunks=$_GET["max_vicidial_trunks"]; if (!$max_vicidial_trunks) {$max_vicidial_trunks=$_POST["max_vicidial_trunks"];}
|
|
|
|
|
$telnet_host=$_GET["telnet_host"]; if (!$telnet_host) {$telnet_host=$_POST["telnet_host"];}
|
|
|
|
|
$telnet_port=$_GET["telnet_port"]; if (!$telnet_port) {$telnet_port=$_POST["telnet_port"];}
|
|
|
|
|
$ASTmgrUSERNAMEupdate=$_GET["ASTmgrUSERNAMEupdate"]; if (!$ASTmgrUSERNAMEupdate) {$ASTmgrUSERNAMEupdate=$_POST["ASTmgrUSERNAMEupdate"];}
|
|
|
|
|
$ASTmgrUSERNAMElisten=$_GET["ASTmgrUSERNAMElisten"]; if (!$ASTmgrUSERNAMElisten) {$ASTmgrUSERNAMElisten=$_POST["ASTmgrUSERNAMElisten"];}
|
|
|
|
|
$ASTmgrUSERNAMEsend=$_GET["ASTmgrUSERNAMEsend"]; if (!$ASTmgrUSERNAMEsend) {$ASTmgrUSERNAMEsend=$_POST["ASTmgrUSERNAMEsend"];}
|
|
|
|
|
$answer_transfer_agent=$_GET["answer_transfer_agent"]; if (!$answer_transfer_agent) {$answer_transfer_agent=$_POST["answer_transfer_agent"];}
|
|
|
|
|
$conf_exten=$_GET["conf_exten"]; if (!$conf_exten) {$conf_exten=$_POST["conf_exten"];}
|
|
|
|
|
$old_conf_exten=$_GET["old_conf_exten"]; if (!$old_conf_exten) {$old_conf_exten=$_POST["old_conf_exten"];}
|
|
|
|
|
$extension=$_GET["extension"]; if (!$extension) {$extension=$_POST["extension"];}
|
|
|
|
|
$submit=$_GET["submit"]; if (!$submit) {$submit=$_POST["submit"];}
|
|
|
|
|
$SUBMIT=$_GET["SUBMIT"]; if (!$SUBMIT) {$SUBMIT=$_POST["SUBMIT"];}
|
|
|
|
|
$CoNfIrM=$_GET["CoNfIrM"]; if (!$CoNfIrM) {$CoNfIrM=$_POST["CoNfIrM"];}
|
|
|
|
|
if (isset($_GET["ADD"])) {$ADD=$_GET["ADD"];}
|
|
|
|
|
elseif (isset($_POST["ADD"])) {$ADD=$_POST["ADD"];}
|
|
|
|
|
if (isset($_GET["user"])) {$user=$_GET["user"];}
|
|
|
|
|
elseif (isset($_POST["user"])) {$user=$_POST["user"];}
|
|
|
|
|
if (isset($_GET["pass"])) {$pass=$_GET["pass"];}
|
|
|
|
|
elseif (isset($_POST["pass"])) {$pass=$_POST["pass"];}
|
|
|
|
|
if (isset($_GET["full_name"])) {$full_name=$_GET["full_name"];}
|
|
|
|
|
elseif (isset($_POST["full_name"])) {$full_name=$_POST["full_name"];}
|
|
|
|
|
if (isset($_GET["user_level"])) {$user_level=$_GET["user_level"];}
|
|
|
|
|
elseif (isset($_POST["user_level"])) {$user_level=$_POST["user_level"];}
|
|
|
|
|
if (isset($_GET["group"])) {$group=$_GET["group"];}
|
|
|
|
|
elseif (isset($_POST["group"])) {$group=$_POST["group"];}
|
|
|
|
|
if (isset($_GET["status"])) {$status=$_GET["status"];}
|
|
|
|
|
elseif (isset($_POST["status"])) {$status=$_POST["status"];}
|
|
|
|
|
if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];}
|
|
|
|
|
elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];}
|
|
|
|
|
if (isset($_GET["server_id"])) {$server_id=$_GET["server_id"];}
|
|
|
|
|
elseif (isset($_POST["server_id"])) {$server_id=$_POST["server_id"];}
|
|
|
|
|
if (isset($_GET["extension"])) {$extension=$_GET["extension"];}
|
|
|
|
|
elseif (isset($_POST["extension"])) {$extension=$_POST["extension"];}
|
|
|
|
|
if (isset($_GET["dialplan_number"])) {$dialplan_number=$_GET["dialplan_number"];}
|
|
|
|
|
elseif (isset($_POST["dialplan_number"])) {$dialplan_number=$_POST["dialplan_number"];}
|
|
|
|
|
if (isset($_GET["voicemail_id"])) {$voicemail_id=$_GET["voicemail_id"];}
|
|
|
|
|
elseif (isset($_POST["voicemail_id"])) {$voicemail_id=$_POST["voicemail_id"];}
|
|
|
|
|
if (isset($_GET["phone_ip"])) {$phone_ip=$_GET["phone_ip"];}
|
|
|
|
|
elseif (isset($_POST["phone_ip"])) {$phone_ip=$_POST["phone_ip"];}
|
|
|
|
|
if (isset($_GET["computer_ip"])) {$computer_ip=$_GET["computer_ip"];}
|
|
|
|
|
elseif (isset($_POST["computer_ip"])) {$computer_ip=$_POST["computer_ip"];}
|
|
|
|
|
if (isset($_GET["login"])) {$login=$_GET["login"];}
|
|
|
|
|
elseif (isset($_POST["login"])) {$login=$_POST["login"];}
|
|
|
|
|
if (isset($_GET["active"])) {$active=$_GET["active"];}
|
|
|
|
|
elseif (isset($_POST["active"])) {$active=$_POST["active"];}
|
|
|
|
|
if (isset($_GET["phone_type"])) {$phone_type=$_GET["phone_type"];}
|
|
|
|
|
elseif (isset($_POST["phone_type"])) {$phone_type=$_POST["phone_type"];}
|
|
|
|
|
if (isset($_GET["fullname"])) {$fullname=$_GET["fullname"];}
|
|
|
|
|
elseif (isset($_POST["fullname"])) {$fullname=$_POST["fullname"];}
|
|
|
|
|
if (isset($_GET["company"])) {$company=$_GET["company"];}
|
|
|
|
|
elseif (isset($_POST["company"])) {$company=$_POST["company"];}
|
|
|
|
|
if (isset($_GET["picture"])) {$picture=$_GET["picture"];}
|
|
|
|
|
elseif (isset($_POST["picture"])) {$picture=$_POST["picture"];}
|
|
|
|
|
if (isset($_GET["protocol"])) {$protocol=$_GET["protocol"];}
|
|
|
|
|
elseif (isset($_POST["protocol"])) {$protocol=$_POST["protocol"];}
|
|
|
|
|
if (isset($_GET["local_gmt"])) {$local_gmt=$_GET["local_gmt"];}
|
|
|
|
|
elseif (isset($_POST["local_gmt"])) {$local_gmt=$_POST["local_gmt"];}
|
|
|
|
|
if (isset($_GET["ASTmgrUSERNAME"])) {$ASTmgrUSERNAME=$_GET["ASTmgrUSERNAME"];}
|
|
|
|
|
elseif (isset($_POST["ASTmgrUSERNAME"])) {$ASTmgrUSERNAME=$_POST["ASTmgrUSERNAME"];}
|
|
|
|
|
if (isset($_GET["ASTmgrSECRET"])) {$ASTmgrSECRET=$_GET["ASTmgrSECRET"];}
|
|
|
|
|
elseif (isset($_POST["ASTmgrSECRET"])) {$ASTmgrSECRET=$_POST["ASTmgrSECRET"];}
|
|
|
|
|
if (isset($_GET["login_user"])) {$login_user=$_GET["login_user"];}
|
|
|
|
|
elseif (isset($_POST["login_user"])) {$login_user=$_POST["login_user"];}
|
|
|
|
|
if (isset($_GET["login_pass"])) {$login_pass=$_GET["login_pass"];}
|
|
|
|
|
elseif (isset($_POST["login_pass"])) {$login_pass=$_POST["login_pass"];}
|
|
|
|
|
if (isset($_GET["login_campaign"])) {$login_campaign=$_GET["login_campaign"];}
|
|
|
|
|
elseif (isset($_POST["login_campaign"])) {$login_campaign=$_POST["login_campaign"];}
|
|
|
|
|
if (isset($_GET["park_on_extension"])) {$park_on_extension=$_GET["park_on_extension"];}
|
|
|
|
|
elseif (isset($_POST["park_on_extension"])) {$park_on_extension=$_POST["park_on_extension"];}
|
|
|
|
|
if (isset($_GET["conf_on_extension"])) {$conf_on_extension=$_GET["conf_on_extension"];}
|
|
|
|
|
elseif (isset($_POST["conf_on_extension"])) {$conf_on_extension=$_POST["conf_on_extension"];}
|
|
|
|
|
if (isset($_GET["VICIDIAL_park_on_extension"])) {$VICIDIAL_park_on_extension=$_GET["VICIDIAL_park_on_extension"];}
|
|
|
|
|
elseif (isset($_POST["VICIDIAL_park_on_extension"])) {$VICIDIAL_park_on_extension=$_POST["VICIDIAL_park_on_extension"];}
|
|
|
|
|
if (isset($_GET["VICIDIAL_park_on_filename"])) {$VICIDIAL_park_on_filename=$_GET["VICIDIAL_park_on_filename"];}
|
|
|
|
|
elseif (isset($_POST["VICIDIAL_park_on_filename"])) {$VICIDIAL_park_on_filename=$_POST["VICIDIAL_park_on_filename"];}
|
|
|
|
|
if (isset($_GET["monitor_prefix"])) {$monitor_prefix=$_GET["monitor_prefix"];}
|
|
|
|
|
elseif (isset($_POST["monitor_prefix"])) {$monitor_prefix=$_POST["monitor_prefix"];}
|
|
|
|
|
if (isset($_GET["recording_exten"])) {$recording_exten=$_GET["recording_exten"];}
|
|
|
|
|
elseif (isset($_POST["recording_exten"])) {$recording_exten=$_POST["recording_exten"];}
|
|
|
|
|
if (isset($_GET["voicemail_exten"])) {$voicemail_exten=$_GET["voicemail_exten"];}
|
|
|
|
|
elseif (isset($_POST["voicemail_exten"])) {$voicemail_exten=$_POST["voicemail_exten"];}
|
|
|
|
|
if (isset($_GET["voicemail_dump_exten"])) {$voicemail_dump_exten=$_GET["voicemail_dump_exten"];}
|
|
|
|
|
elseif (isset($_POST["voicemail_dump_exten"])) {$voicemail_dump_exten=$_POST["voicemail_dump_exten"];}
|
|
|
|
|
if (isset($_GET["ext_context"])) {$ext_context=$_GET["ext_context"];}
|
|
|
|
|
elseif (isset($_POST["ext_context"])) {$ext_context=$_POST["ext_context"];}
|
|
|
|
|
if (isset($_GET["dtmf_send_extension"])) {$dtmf_send_extension=$_GET["dtmf_send_extension"];}
|
|
|
|
|
elseif (isset($_POST["dtmf_send_extension"])) {$dtmf_send_extension=$_POST["dtmf_send_extension"];}
|
|
|
|
|
if (isset($_GET["call_out_number_group"])) {$call_out_number_group=$_GET["call_out_number_group"];}
|
|
|
|
|
elseif (isset($_POST["call_out_number_group"])) {$call_out_number_group=$_POST["call_out_number_group"];}
|
|
|
|
|
if (isset($_GET["client_browser"])) {$client_browser=$_GET["client_browser"];}
|
|
|
|
|
elseif (isset($_POST["client_browser"])) {$client_browser=$_POST["client_browser"];}
|
|
|
|
|
if (isset($_GET["install_directory"])) {$install_directory=$_GET["install_directory"];}
|
|
|
|
|
elseif (isset($_POST["install_directory"])) {$install_directory=$_POST["install_directory"];}
|
|
|
|
|
if (isset($_GET["local_web_callerID_URL"])) {$local_web_callerID_URL=$_GET["local_web_callerID_URL"];}
|
|
|
|
|
elseif (isset($_POST["local_web_callerID_URL"])) {$local_web_callerID_URL=$_POST["local_web_callerID_URL"];}
|
|
|
|
|
if (isset($_GET["VICIDIAL_web_URL"])) {$VICIDIAL_web_URL=$_GET["VICIDIAL_web_URL"];}
|
|
|
|
|
elseif (isset($_POST["VICIDIAL_web_URL"])) {$VICIDIAL_web_URL=$_POST["VICIDIAL_web_URL"];}
|
|
|
|
|
if (isset($_GET["AGI_call_logging_enabled"])) {$AGI_call_logging_enabled=$_GET["AGI_call_logging_enabled"];}
|
|
|
|
|
elseif (isset($_POST["AGI_call_logging_enabled"])) {$AGI_call_logging_enabled=$_POST["AGI_call_logging_enabled"];}
|
|
|
|
|
if (isset($_GET["user_switching_enabled"])) {$user_switching_enabled=$_GET["user_switching_enabled"];}
|
|
|
|
|
elseif (isset($_POST["user_switching_enabled"])) {$user_switching_enabled=$_POST["user_switching_enabled"];}
|
|
|
|
|
if (isset($_GET["conferencing_enabled"])) {$conferencing_enabled=$_GET["conferencing_enabled"];}
|
|
|
|
|
elseif (isset($_POST["conferencing_enabled"])) {$conferencing_enabled=$_POST["conferencing_enabled"];}
|
|
|
|
|
if (isset($_GET["admin_hangup_enabled"])) {$admin_hangup_enabled=$_GET["admin_hangup_enabled"];}
|
|
|
|
|
elseif (isset($_POST["admin_hangup_enabled"])) {$admin_hangup_enabled=$_POST["admin_hangup_enabled"];}
|
|
|
|
|
if (isset($_GET["admin_hijack_enabled"])) {$admin_hijack_enabled=$_GET["admin_hijack_enabled"];}
|
|
|
|
|
elseif (isset($_POST["admin_hijack_enabled"])) {$admin_hijack_enabled=$_POST["admin_hijack_enabled"];}
|
|
|
|
|
if (isset($_GET["admin_monitor_enabled"])) {$admin_monitor_enabled=$_GET["admin_monitor_enabled"];}
|
|
|
|
|
elseif (isset($_POST["admin_monitor_enabled"])) {$admin_monitor_enabled=$_POST["admin_monitor_enabled"];}
|
|
|
|
|
if (isset($_GET["call_parking_enabled"])) {$call_parking_enabled=$_GET["call_parking_enabled"];}
|
|
|
|
|
elseif (isset($_POST["call_parking_enabled"])) {$call_parking_enabled=$_POST["call_parking_enabled"];}
|
|
|
|
|
if (isset($_GET["updater_check_enabled"])) {$updater_check_enabled=$_GET["updater_check_enabled"];}
|
|
|
|
|
elseif (isset($_POST["updater_check_enabled"])) {$updater_check_enabled=$_POST["updater_check_enabled"];}
|
|
|
|
|
if (isset($_GET["AFLogging_enabled"])) {$AFLogging_enabled=$_GET["AFLogging_enabled"];}
|
|
|
|
|
elseif (isset($_POST["AFLogging_enabled"])) {$AFLogging_enabled=$_POST["AFLogging_enabled"];}
|
|
|
|
|
if (isset($_GET["QUEUE_ACTION_enabled"])) {$QUEUE_ACTION_enabled=$_GET["QUEUE_ACTION_enabled"];}
|
|
|
|
|
elseif (isset($_POST["QUEUE_ACTION_enabled"])) {$QUEUE_ACTION_enabled=$_POST["QUEUE_ACTION_enabled"];}
|
|
|
|
|
if (isset($_GET["CallerID_popup_enabled"])) {$CallerID_popup_enabled=$_GET["CallerID_popup_enabled"];}
|
|
|
|
|
elseif (isset($_POST["CallerID_popup_enabled"])) {$CallerID_popup_enabled=$_POST["CallerID_popup_enabled"];}
|
|
|
|
|
if (isset($_GET["voicemail_button_enabled"])) {$voicemail_button_enabled=$_GET["voicemail_button_enabled"];}
|
|
|
|
|
elseif (isset($_POST["voicemail_button_enabled"])) {$voicemail_button_enabled=$_POST["voicemail_button_enabled"];}
|
|
|
|
|
if (isset($_GET["enable_fast_refresh"])) {$enable_fast_refresh=$_GET["enable_fast_refresh"];}
|
|
|
|
|
elseif (isset($_POST["enable_fast_refresh"])) {$enable_fast_refresh=$_POST["enable_fast_refresh"];}
|
|
|
|
|
if (isset($_GET["fast_refresh_rate"])) {$fast_refresh_rate=$_GET["fast_refresh_rate"];}
|
|
|
|
|
elseif (isset($_POST["fast_refresh_rate"])) {$fast_refresh_rate=$_POST["fast_refresh_rate"];}
|
|
|
|
|
if (isset($_GET["enable_persistant_mysql"])) {$enable_persistant_mysql=$_GET["enable_persistant_mysql"];}
|
|
|
|
|
elseif (isset($_POST["enable_persistant_mysql"])) {$enable_persistant_mysql=$_POST["enable_persistant_mysql"];}
|
|
|
|
|
if (isset($_GET["auto_dial_next_number"])) {$auto_dial_next_number=$_GET["auto_dial_next_number"];}
|
|
|
|
|
elseif (isset($_POST["auto_dial_next_number"])) {$auto_dial_next_number=$_POST["auto_dial_next_number"];}
|
|
|
|
|
if (isset($_GET["VDstop_rec_after_each_call"])) {$VDstop_rec_after_each_call=$_GET["VDstop_rec_after_each_call"];}
|
|
|
|
|
elseif (isset($_POST["VDstop_rec_after_each_call"])) {$VDstop_rec_after_each_call=$_POST["VDstop_rec_after_each_call"];}
|
|
|
|
|
if (isset($_GET["DBX_server"])) {$DBX_server=$_GET["DBX_server"];}
|
|
|
|
|
elseif (isset($_POST["DBX_server"])) {$DBX_server=$_POST["DBX_server"];}
|
|
|
|
|
if (isset($_GET["DBX_database"])) {$DBX_database=$_GET["DBX_database"];}
|
|
|
|
|
elseif (isset($_POST["DBX_database"])) {$DBX_database=$_POST["DBX_database"];}
|
|
|
|
|
if (isset($_GET["DBX_user"])) {$DBX_user=$_GET["DBX_user"];}
|
|
|
|
|
elseif (isset($_POST["DBX_user"])) {$DBX_user=$_POST["DBX_user"];}
|
|
|
|
|
if (isset($_GET["DBX_pass"])) {$DBX_pass=$_GET["DBX_pass"];}
|
|
|
|
|
elseif (isset($_POST["DBX_pass"])) {$DBX_pass=$_POST["DBX_pass"];}
|
|
|
|
|
if (isset($_GET["DBX_port"])) {$DBX_port=$_GET["DBX_port"];}
|
|
|
|
|
elseif (isset($_POST["DBX_port"])) {$DBX_port=$_POST["DBX_port"];}
|
|
|
|
|
if (isset($_GET["DBY_server"])) {$DBY_server=$_GET["DBY_server"];}
|
|
|
|
|
elseif (isset($_POST["DBY_server"])) {$DBY_server=$_POST["DBY_server"];}
|
|
|
|
|
if (isset($_GET["DBY_database"])) {$DBY_database=$_GET["DBY_database"];}
|
|
|
|
|
elseif (isset($_POST["DBY_database"])) {$DBY_database=$_POST["DBY_database"];}
|
|
|
|
|
if (isset($_GET["DBY_user"])) {$DBY_user=$_GET["DBY_user"];}
|
|
|
|
|
elseif (isset($_POST["DBY_user"])) {$DBY_user=$_POST["DBY_user"];}
|
|
|
|
|
if (isset($_GET["DBY_pass"])) {$DBY_pass=$_GET["DBY_pass"];}
|
|
|
|
|
elseif (isset($_POST["DBY_pass"])) {$DBY_pass=$_POST["DBY_pass"];}
|
|
|
|
|
if (isset($_GET["DBY_port"])) {$DBY_port=$_GET["DBY_port"];}
|
|
|
|
|
elseif (isset($_POST["DBY_port"])) {$DBY_port=$_POST["DBY_port"];}
|
|
|
|
|
if (isset($_GET["outbound_cid"])) {$outbound_cid=$_GET["outbound_cid"];}
|
|
|
|
|
elseif (isset($_POST["outbound_cid"])) {$outbound_cid=$_POST["outbound_cid"];}
|
|
|
|
|
if (isset($_GET["old_extension"])) {$old_extension=$_GET["old_extension"];}
|
|
|
|
|
elseif (isset($_POST["old_extension"])) {$old_extension=$_POST["old_extension"];}
|
|
|
|
|
if (isset($_GET["old_server_ip"])) {$old_server_ip=$_GET["old_server_ip"];}
|
|
|
|
|
elseif (isset($_POST["old_server_ip"])) {$old_server_ip=$_POST["old_server_ip"];}
|
|
|
|
|
if (isset($_GET["old_server_id"])) {$old_server_id=$_GET["old_server_id"];}
|
|
|
|
|
elseif (isset($_POST["old_server_id"])) {$old_server_id=$_POST["old_server_id"];}
|
|
|
|
|
if (isset($_GET["server_description"])) {$server_description=$_GET["server_description"];}
|
|
|
|
|
elseif (isset($_POST["server_description"])) {$server_description=$_POST["server_description"];}
|
|
|
|
|
if (isset($_GET["asterisk_version"])) {$asterisk_version=$_GET["asterisk_version"];}
|
|
|
|
|
elseif (isset($_POST["asterisk_version"])) {$asterisk_version=$_POST["asterisk_version"];}
|
|
|
|
|
if (isset($_GET["max_vicidial_trunks"])) {$max_vicidial_trunks=$_GET["max_vicidial_trunks"];}
|
|
|
|
|
elseif (isset($_POST["max_vicidial_trunks"])) {$max_vicidial_trunks=$_POST["max_vicidial_trunks"];}
|
|
|
|
|
if (isset($_GET["telnet_host"])) {$telnet_host=$_GET["telnet_host"];}
|
|
|
|
|
elseif (isset($_POST["telnet_host"])) {$telnet_host=$_POST["telnet_host"];}
|
|
|
|
|
if (isset($_GET["telnet_port"])) {$telnet_port=$_GET["telnet_port"];}
|
|
|
|
|
elseif (isset($_POST["telnet_port"])) {$telnet_port=$_POST["telnet_port"];}
|
|
|
|
|
if (isset($_GET["ASTmgrUSERNAMEupdate"])) {$ASTmgrUSERNAMEupdate=$_GET["ASTmgrUSERNAMEupdate"];}
|
|
|
|
|
elseif (isset($_POST["ASTmgrUSERNAMEupdate"])) {$ASTmgrUSERNAMEupdate=$_POST["ASTmgrUSERNAMEupdate"];}
|
|
|
|
|
if (isset($_GET["ASTmgrUSERNAMElisten"])) {$ASTmgrUSERNAMElisten=$_GET["ASTmgrUSERNAMElisten"];}
|
|
|
|
|
elseif (isset($_POST["ASTmgrUSERNAMElisten"])) {$ASTmgrUSERNAMElisten=$_POST["ASTmgrUSERNAMElisten"];}
|
|
|
|
|
if (isset($_GET["ASTmgrUSERNAMEsend"])) {$ASTmgrUSERNAMEsend=$_GET["ASTmgrUSERNAMEsend"];}
|
|
|
|
|
elseif (isset($_POST["ASTmgrUSERNAMEsend"])) {$ASTmgrUSERNAMEsend=$_POST["ASTmgrUSERNAMEsend"];}
|
|
|
|
|
if (isset($_GET["answer_transfer_agent"])) {$answer_transfer_agent=$_GET["answer_transfer_agent"];}
|
|
|
|
|
elseif (isset($_POST["answer_transfer_agent"])) {$answer_transfer_agent=$_POST["answer_transfer_agent"];}
|
|
|
|
|
if (isset($_GET["conf_exten"])) {$conf_exten=$_GET["conf_exten"];}
|
|
|
|
|
elseif (isset($_POST["conf_exten"])) {$conf_exten=$_POST["conf_exten"];}
|
|
|
|
|
if (isset($_GET["old_conf_exten"])) {$old_conf_exten=$_GET["old_conf_exten"];}
|
|
|
|
|
elseif (isset($_POST["old_conf_exten"])) {$old_conf_exten=$_POST["old_conf_exten"];}
|
|
|
|
|
if (isset($_GET["extension"])) {$extension=$_GET["extension"];}
|
|
|
|
|
elseif (isset($_POST["extension"])) {$extension=$_POST["extension"];}
|
|
|
|
|
if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
|
|
|
|
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
|
|
|
|
if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
|
|
|
|
|
elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];}
|
|
|
|
|
if (isset($_GET["CoNfIrM"])) {$CoNfIrM=$_GET["CoNfIrM"];}
|
|
|
|
|
elseif (isset($_POST["CoNfIrM"])) {$CoNfIrM=$_POST["CoNfIrM"];}
|
|
|
|
|
|
|
|
|
|
if ($force_logout)
|
|
|
|
|
{
|
|
|
|
@@ -118,6 +210,8 @@ if ($force_logout)
|
|
|
|
|
exit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!isset($ADD)) {$ADD=0;}
|
|
|
|
|
|
|
|
|
|
$STARTtime = date("U");
|
|
|
|
|
$STARTdate = date("Y-m-d H:i:s");
|
|
|
|
|
|
|
|
|
@@ -1602,7 +1696,9 @@ $RUNtime = ($ENDtime - $STARTtime);
|
|
|
|
|
echo "\n\n\n<br><br><br>\n\n";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "<font size=0>\n\n\n<br><br><br>\nscript runtime: $RUNtime seconds</font>";
|
|
|
|
|
echo "<font size=0>\n\n\n<br><br><br>\nscript runtime: $RUNtime seconds";
|
|
|
|
|
echo " VERSION: $version";
|
|
|
|
|
echo " BUILD: $build</font>\n";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|