Added optional password encryption to web interfaces

Altered agi-phone_monitor script to not hangup after agent hangs up customer, requires small change to custom dialplan entries
Added new Dial Log report
Added Disable Auto Dial system setting

git-svn-id: svn://192.168.202.10@1999 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2013-07-11 12:33:50 +00:00
parent 9b9d1db870
commit ddd5e6ce69
44 changed files with 2371 additions and 775 deletions
+3 -2
View File
@@ -32,6 +32,7 @@
# 90508-0727 - Changed to PHP long tags
# 130328-0027 - Converted ereg to preg functions
# 130603-2214 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes
# 130705-1522 - Added optional encrypted passwords compatibility
#
require("dbconnect.php");
@@ -58,7 +59,7 @@ if (isset($_GET["favorites_list"])) {$favorites_list=$_GET["favorites_list"];
elseif (isset($_POST["favorites_list"])) {$favorites_list=$_POST["favorites_list"];}
$user=preg_replace("/[^0-9a-zA-Z]/","",$user);
$pass=preg_replace("/[^0-9a-zA-Z]/","",$pass);
$pass=preg_replace("/\'|\"|\\\\|;| /","",$pass);
$session_name = preg_replace("/\'|\"|\\\\|;/","",$session_name);
$server_ip = preg_replace("/\'|\"|\\\\|;/","",$server_ip);
@@ -73,7 +74,7 @@ $NOW_TIME = date("Y-m-d H:i:s");
if (!isset($query_date)) {$query_date = $NOW_DATE;}
$auth=0;
$auth_message = user_authorization($user,$pass,'',0);
$auth_message = user_authorization($user,$pass,'',0,0,0);
if ($auth_message == 'GOOD')
{$auth=1;}