Added ability to use .agi scripts in Call Menu prompt. Also added cm_date.agi script to say date with options
Converted ereg to preg in the agc agent interface PHP scripts git-svn-id: svn://192.168.202.10@1945 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# vdc_script_notes.php
|
||||
#
|
||||
# Copyright (C) 2010 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2013 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This script is designed open in the SCRIPT tab in the agent interface through
|
||||
# an IFRAME. It will create a new record for every SUBMIT
|
||||
@@ -12,10 +12,11 @@
|
||||
# CHANGELOG:
|
||||
# 100215-0744 - First build of script
|
||||
# 100622-2230 - Added field labels
|
||||
# 130328-0020 - Converted ereg to preg functions
|
||||
#
|
||||
|
||||
$version = '2.4-2';
|
||||
$build = '100622-2230';
|
||||
$version = '2.6-3';
|
||||
$build = '130328-0020';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -229,16 +230,16 @@ if ($qm_conf_ct > 0)
|
||||
|
||||
if ($non_latin < 1)
|
||||
{
|
||||
$user=ereg_replace("[^-_0-9a-zA-Z]","",$user);
|
||||
$pass=ereg_replace("[^-_0-9a-zA-Z]","",$pass);
|
||||
$length_in_sec = ereg_replace("[^0-9]","",$length_in_sec);
|
||||
$phone_code = ereg_replace("[^0-9]","",$phone_code);
|
||||
$phone_number = ereg_replace("[^0-9]","",$phone_number);
|
||||
$user=preg_replace("/[^-_0-9a-zA-Z]/","",$user);
|
||||
$pass=preg_replace("/[^-_0-9a-zA-Z]/","",$pass);
|
||||
$length_in_sec = preg_replace("/[^0-9]/","",$length_in_sec);
|
||||
$phone_code = preg_replace("/[^0-9]/","",$phone_code);
|
||||
$phone_number = preg_replace("/[^0-9]/","",$phone_number);
|
||||
}
|
||||
else
|
||||
{
|
||||
$user = ereg_replace("'|\"|\\\\|;","",$user);
|
||||
$pass = ereg_replace("'|\"|\\\\|;","",$pass);
|
||||
$user = preg_replace("/\'|\"|\\\\|;/","",$user);
|
||||
$pass = preg_replace("/\'|\"|\\\\|;/","",$pass);
|
||||
}
|
||||
|
||||
if ($DB > 0)
|
||||
|
||||
Reference in New Issue
Block a user