mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
Deprecated
Deprecated: Using ${var} in strings is deprecated, use {$var}
This commit is contained in:
parent
1f4fe00753
commit
1c5d68acee
@ -1024,7 +1024,7 @@ if (!function_exists('passwordgenerate')) {
|
|||||||
|
|
||||||
global $sql;
|
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 = $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));
|
$query->execute(array($action));
|
||||||
@ -1108,18 +1108,18 @@ if (!function_exists('passwordgenerate')) {
|
|||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
$send = "POST /${file} HTTP/1.1\r\n";
|
$send = "POST /{$file} HTTP/1.1\r\n";
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (strlen($file) == 0) {
|
if (strlen($file) == 0) {
|
||||||
$file = '/';
|
$file = '/';
|
||||||
}
|
}
|
||||||
$send = "GET ${file} HTTP/1.1\r\n";
|
$send = "GET {$file} HTTP/1.1\r\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$send .= "Host: ${domain}\r\n";
|
$send .= "Host: {$domain}\r\n";
|
||||||
$send .= "User-Agent: ${useragent}\r\n";
|
$send .= "User-Agent: {$useragent}\r\n";
|
||||||
$send .= "Content-Type: application/x-www-form-urlencoded; charset=utf-8\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) {
|
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));
|
$query3->execute(array($row['customID'], $id));
|
||||||
$value = ($id == 0) ? '' : $query3->fetchColumn();
|
$value = ($id == 0) ? '' : $query3->fetchColumn();
|
||||||
|
|
||||||
$return[] = array('customID' => $row['customID'], 'menu' => $text, 'name' => $row['name'], 'length' => $row['length'], 'type' => $row['type'], 'input' => "<input id='inputCustom-${row['customID']}' type='${type}' name='${row['name']}' maxlength='${row['length']}' value='${value}' >", 'value' => $value);
|
$return[] = array('customID' => $row['customID'], 'menu' => $text, 'name' => $row['name'], 'length' => $row['length'], 'type' => $row['type'], 'input' => "<input id='inputCustom-{$row['customID']}' type='{$type}' name='{$row['name']}' maxlength='{$row['length']}' value='{$value}' >", 'value' => $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ($action == 'save') {
|
} else if ($action == 'save') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user