mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Fix for warnings/notices/deprecated messages on PHP 7.4
This commit is contained in:
@@ -94,8 +94,8 @@ if (isset($_POST['day']))
|
||||
$val = intval($val);
|
||||
$key = intval($key);
|
||||
|
||||
$start = $db->qstr($_POST['start'][$key],get_magic_quotes_gpc());
|
||||
$end = $db->qstr($_POST['end'][$key],get_magic_quotes_gpc());
|
||||
$start = $db->qstr($_POST['start'][$key],0);
|
||||
$end = $db->qstr($_POST['end'][$key],0);
|
||||
|
||||
$sql = "INSERT INTO availability (day_of_week,start,end,availability_group_id)
|
||||
VALUES ('$val',$start,$end,$availability_group)";
|
||||
|
||||
@@ -88,8 +88,8 @@ if (isset($_POST['day']))
|
||||
$val = intval($val);
|
||||
$key = intval($key);
|
||||
|
||||
$start = $db->qstr($_POST['start'][$key],get_magic_quotes_gpc());
|
||||
$end = $db->qstr($_POST['end'][$key],get_magic_quotes_gpc());
|
||||
$start = $db->qstr($_POST['start'][$key],0);
|
||||
$end = $db->qstr($_POST['end'][$key],0);
|
||||
|
||||
$sql = "INSERT INTO call_restrict (day_of_week,start,end)
|
||||
VALUES ('$val',$start,$end)";
|
||||
|
||||
@@ -61,11 +61,11 @@ $client =""; $firstname="";$lastname="";$email=""; $time_zone_name="";
|
||||
|
||||
if (isset($_POST['client']) && !empty($_POST['client']))
|
||||
{
|
||||
$client = $db->qstr($_POST['client'],get_magic_quotes_gpc());
|
||||
$firstname = $db->qstr($_POST['firstname'],get_magic_quotes_gpc());
|
||||
$email = $db->qstr($_POST['email'],get_magic_quotes_gpc());
|
||||
$lastname = $db->qstr($_POST['lastname'],get_magic_quotes_gpc());
|
||||
$time_zone_name = $db->qstr($_POST['Time_zone_name'],get_magic_quotes_gpc());
|
||||
$client = $db->qstr($_POST['client'],0);
|
||||
$firstname = $db->qstr($_POST['firstname'],0);
|
||||
$email = $db->qstr($_POST['email'],0);
|
||||
$lastname = $db->qstr($_POST['lastname'],0);
|
||||
$time_zone_name = $db->qstr($_POST['Time_zone_name'],0);
|
||||
|
||||
/* check if there'a record with this username*/
|
||||
$sql = "SELECT `username`,`client_id` from client WHERE `username` LIKE $client";
|
||||
|
||||
@@ -56,14 +56,14 @@ $a = false;
|
||||
|
||||
if (isset($_POST['operator']) && isset($_POST['adduser']))
|
||||
{
|
||||
$operator = $db->qstr($_POST['operator'],get_magic_quotes_gpc());
|
||||
$email= $db->qstr($_POST['email'],get_magic_quotes_gpc());
|
||||
$password = $db->qstr($_POST['password'],get_magic_quotes_gpc());
|
||||
$firstname = $db->qstr($_POST['firstname'],get_magic_quotes_gpc());
|
||||
$lastname = $db->qstr($_POST['lastname'],get_magic_quotes_gpc());
|
||||
$chat_user = $db->qstr($_POST['chat_user'],get_magic_quotes_gpc());
|
||||
$chat_password = $db->qstr($_POST['chat_password'],get_magic_quotes_gpc());
|
||||
$time_zone_name = $db->qstr($_POST['Time_zone_name'],get_magic_quotes_gpc());
|
||||
$operator = $db->qstr($_POST['operator'],0);
|
||||
$email= $db->qstr($_POST['email'],0);
|
||||
$password = $db->qstr($_POST['password'],0);
|
||||
$firstname = $db->qstr($_POST['firstname'],0);
|
||||
$lastname = $db->qstr($_POST['lastname'],0);
|
||||
$chat_user = $db->qstr($_POST['chat_user'],0);
|
||||
$chat_password = $db->qstr($_POST['chat_password'],0);
|
||||
$time_zone_name = $db->qstr($_POST['Time_zone_name'],0);
|
||||
$extension = "";
|
||||
if (FREEPBX_PATH != false)
|
||||
{
|
||||
|
||||
@@ -311,9 +311,9 @@ if (isset($_POST['update']) && isset($_GET['modify']))
|
||||
|
||||
if ($respsc == 1)
|
||||
{
|
||||
$lime_mode = $db->qstr($_POST['lime_mode'],get_magic_quotes_gpc());
|
||||
$lime_template = $db->qstr($_POST['lime_template'],get_magic_quotes_gpc());
|
||||
$lime_endurl = $db->qstr($_POST['lime_endurl'],get_magic_quotes_gpc());
|
||||
$lime_mode = $db->qstr($_POST['lime_mode'],0);
|
||||
$lime_template = $db->qstr($_POST['lime_template'],0);
|
||||
$lime_endurl = $db->qstr($_POST['lime_endurl'],0);
|
||||
|
||||
$sql = "UPDATE questionnaire
|
||||
SET lime_mode = $lime_mode, lime_template = $lime_template, lime_endurl = $lime_endurl
|
||||
|
||||
@@ -85,8 +85,8 @@ if (isset($_POST['day']))
|
||||
$val = intval($val);
|
||||
$key = intval($key);
|
||||
|
||||
$start = $db->qstr($_POST['start'][$key],get_magic_quotes_gpc());
|
||||
$end = $db->qstr($_POST['end'][$key],get_magic_quotes_gpc());
|
||||
$start = $db->qstr($_POST['start'][$key],0);
|
||||
$end = $db->qstr($_POST['end'][$key],0);
|
||||
|
||||
$sql = "INSERT INTO shift_template(day_of_week,start,end)
|
||||
VALUES ($val,$start,$end)";
|
||||
|
||||
@@ -72,7 +72,7 @@ if (isset($_GET['time_zone']))
|
||||
{
|
||||
//need to add sample to questionnaire
|
||||
|
||||
$tz = $db->qstr($_GET['time_zone'],get_magic_quotes_gpc());
|
||||
$tz = $db->qstr($_GET['time_zone'],0);
|
||||
|
||||
$sql = "INSERT INTO timezone_template(Time_zone_name)
|
||||
VALUES($tz)";
|
||||
@@ -85,7 +85,7 @@ if (isset($_GET['tz']))
|
||||
{
|
||||
//need to remove rsid from questionnaire
|
||||
|
||||
$tz = $db->qstr($_GET['tz'],get_magic_quotes_gpc());
|
||||
$tz = $db->qstr($_GET['tz'],0);
|
||||
|
||||
$sql = "DELETE FROM timezone_template
|
||||
WHERE Time_zone_name = $tz";
|
||||
|
||||
Reference in New Issue
Block a user