From 1c5d68aceeebdfbac934996e247c6c7246f01b56 Mon Sep 17 00:00:00 2001 From: Alix Date: Thu, 18 May 2023 22:26:09 +0330 Subject: [PATCH] Deprecated Deprecated: Using ${var} in strings is deprecated, use {$var} --- stuff/methods/functions.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stuff/methods/functions.php b/stuff/methods/functions.php index 27c50953..aaf97fac 100644 --- a/stuff/methods/functions.php +++ b/stuff/methods/functions.php @@ -1024,7 +1024,7 @@ if (!function_exists('passwordgenerate')) { global $sql; - $typeQuery = ($type != null) ? " AND `type`='${type}'" : ''; + $typeQuery = ($type != null) ? " AND `type`='{$type}'" : ''; $query = $sql->prepare("SELECT `type`,`affectedID` FROM `jobs` WHERE (`status` IS NULL OR `status`=1) AND `action`=? $typeQuery GROUP BY `type`,`affectedID`"); $query->execute(array($action)); @@ -1108,18 +1108,18 @@ if (!function_exists('passwordgenerate')) { $i++; } - $send = "POST /${file} HTTP/1.1\r\n"; + $send = "POST /{$file} HTTP/1.1\r\n"; } else { if (strlen($file) == 0) { $file = '/'; } - $send = "GET ${file} HTTP/1.1\r\n"; + $send = "GET {$file} HTTP/1.1\r\n"; } - $send .= "Host: ${domain}\r\n"; - $send .= "User-Agent: ${useragent}\r\n"; + $send .= "Host: {$domain}\r\n"; + $send .= "User-Agent: {$useragent}\r\n"; $send .= "Content-Type: application/x-www-form-urlencoded; charset=utf-8\r\n"; if (isset($postData) and is_array($postParams) and count($postParams) > 0) { @@ -1427,7 +1427,7 @@ if (!function_exists('passwordgenerate')) { $query3->execute(array($row['customID'], $id)); $value = ($id == 0) ? '' : $query3->fetchColumn(); - $return[] = array('customID' => $row['customID'], 'menu' => $text, 'name' => $row['name'], 'length' => $row['length'], 'type' => $row['type'], 'input' => "", 'value' => $value); + $return[] = array('customID' => $row['customID'], 'menu' => $text, 'name' => $row['name'], 'length' => $row['length'], 'type' => $row['type'], 'input' => "", 'value' => $value); } } else if ($action == 'save') {