diff --git a/system/acp/sections/addons/plugin.php b/system/acp/sections/addons/plugin.php index 1b59597..d103f05 100644 --- a/system/acp/sections/addons/plugin.php +++ b/system/acp/sections/addons/plugin.php @@ -58,7 +58,7 @@ if ($go) { foreach ($aPacks as $packs) $spacks .= trim($packs) . ':'; - $spacks = isset($spacks{0}) ? substr($spacks, 0, -1) : ''; + $spacks = isset($spacks[0]) ? substr($spacks, 0, -1) : ''; $aData['packs'] = $spacks == '' ? 'all' : $spacks; @@ -75,7 +75,7 @@ if ($go) { $incoms .= intval($incom) . ':'; } - $incoms = isset($incoms{0}) ? substr($incoms, 0, -1) : ''; + $incoms = isset($incoms[0]) ? substr($incoms, 0, -1) : ''; $aData['incompatible'] = $incoms; @@ -98,7 +98,7 @@ if ($go) { $choice .= ' '; } - $choice = isset($choice{0}) ? substr(trim($choice), 0, -1) : ''; + $choice = isset($choice[0]) ? substr(trim($choice), 0, -1) : ''; $aData['choice'] = $choice; @@ -115,7 +115,7 @@ if ($go) { $requis .= intval($requi) . ':'; } - $requis = isset($requis{0}) ? substr($requis, 0, -1) : ''; + $requis = isset($requis[0]) ? substr($requis, 0, -1) : ''; $aData['required'] = $requis; diff --git a/system/acp/sections/addons/search.php b/system/acp/sections/addons/search.php index f9a93e9..3832f30 100644 --- a/system/acp/sections/addons/search.php +++ b/system/acp/sections/addons/search.php @@ -15,7 +15,7 @@ if (is_array($cache)) { sys::outjs($cache); } -if (!isset($text{2})) { +if (!isset($text[2])) { if ($go) sys::outjs(array('e' => 'Для выполнения поиска, необходимо больше данных'), $nmch); @@ -27,7 +27,7 @@ if (substr($text, 0, 5) == 'game=') { if (in_array($game, array('cs', 'cssold', 'css', 'csgo', 'samp', 'crmp', 'mta', 'mc'))) $plugins = $sql->query('SELECT `id`, `cat`, `game`, `name`, `status` FROM `plugins` WHERE `game`="' . $game . '" ORDER BY `id` ASC'); -} elseif ($text{0} == 'i' and $text{1} == 'd') +} elseif ($text[0] == 'i' and $text[1] == 'd') $plugins = $sql->query('SELECT `id`, `cat`, `game`, `name`, `status` FROM `plugins` WHERE `id`="' . sys::int($text) . '" LIMIT 1'); else { $like = '`id` LIKE FROM_BASE64(\'' . base64_encode('%' . str_replace('_', '\_', $text) . '%') . '\') OR' diff --git a/system/acp/sections/addons/update.php b/system/acp/sections/addons/update.php index 5b12dab..4913da5 100644 --- a/system/acp/sections/addons/update.php +++ b/system/acp/sections/addons/update.php @@ -61,7 +61,7 @@ if ($go) { $spacks .= intval($packs) . ':'; } - $spacks = isset($spacks{0}) ? substr($spacks, 0, -1) : ''; + $spacks = isset($spacks[0]) ? substr($spacks, 0, -1) : ''; $aData['packs'] = $spacks == '' ? $spacks : 'all'; @@ -78,7 +78,7 @@ if ($go) { $incoms .= intval($incom) . ':'; } - $incoms = isset($incoms{0}) ? substr($incoms, 0, -1) : ''; + $incoms = isset($incoms[0]) ? substr($incoms, 0, -1) : ''; $aData['incompatible'] = $incoms; @@ -101,7 +101,7 @@ if ($go) { $choice .= ' '; } - $choice = isset($choice{0}) ? substr(trim($choice), 0, -1) : ''; + $choice = isset($choice[0]) ? substr(trim($choice), 0, -1) : ''; $aData['choice'] = $choice; @@ -118,7 +118,7 @@ if ($go) { $requis .= intval($requi) . ':'; } - $requis = isset($requis{0}) ? substr($requis, 0, -1) : ''; + $requis = isset($requis[0]) ? substr($requis, 0, -1) : ''; $aData['required'] = $requis; diff --git a/system/acp/sections/boost/search.php b/system/acp/sections/boost/search.php index 7feb1ec..83ed99b 100644 --- a/system/acp/sections/boost/search.php +++ b/system/acp/sections/boost/search.php @@ -15,7 +15,7 @@ if (is_array($cache)) { sys::outjs($cache); } -if (!isset($text{2})) { +if (!isset($text[2])) { if ($go) sys::outjs(array('e' => 'Для выполнения поиска, необходимо больше данных'), $nmch); @@ -35,7 +35,7 @@ if (in_array($check[0], array('server', 'user'))) { case 'user': $sql->query('SELECT * FROM `boost` WHERE `user`="' . sys::int($val) . '" ORDER BY `id` DESC'); } -} elseif ($text{0} == 'i' and $text{1} == 'd') +} elseif ($text[0] == 'i' and $text[1] == 'd') $sql->query('SELECT * FROM `boost` WHERE `id`="' . sys::int($text) . '" LIMIT 1'); else { $like = '`id` LIKE FROM_BASE64(\'' . base64_encode('%' . str_replace('_', '\_', $text) . '%') . '\') OR' diff --git a/system/acp/sections/control/search.php b/system/acp/sections/control/search.php index 2d85cf8..b5f9174 100644 --- a/system/acp/sections/control/search.php +++ b/system/acp/sections/control/search.php @@ -15,7 +15,7 @@ if (is_array($cache)) { sys::outjs($cache); } -if (!isset($text{2})) { +if (!isset($text[2])) { if ($go) sys::outjs(array('e' => 'Для выполнения поиска, необходимо больше данных'), $nmch); @@ -46,7 +46,7 @@ if (in_array($check[0], array('limit', 'price', 'user', 'status'))) { if (in_array($val, array('working', 'error', 'reboot', 'overdue', 'blocked', 'install'))) $ctrls = $sql->query('SELECT ' . $select . ' `status`="' . $val . '" ORDER BY `id` ASC'); } -} elseif ($text{0} == 'i' and $text{1} == 'd') +} elseif ($text[0] == 'i' and $text[1] == 'd') $ctrls = $sql->query('SELECT ' . $select . ' `id`="' . sys::int($text) . '" LIMIT 1'); else { $like = '`id` LIKE FROM_BASE64(\'' . base64_encode('%' . str_replace('_', '\_', $text) . '%') . '\') OR' diff --git a/system/acp/sections/logs/search.php b/system/acp/sections/logs/search.php index 5c02ac4..c90adc4 100644 --- a/system/acp/sections/logs/search.php +++ b/system/acp/sections/logs/search.php @@ -15,7 +15,7 @@ if (is_array($cache)) { sys::outjs($cache); } -if (!isset($text{2})) { +if (!isset($text[2])) { if ($go) sys::outjs(array('e' => 'Для выполнения поиска, необходимо больше данных'), $nmch); @@ -37,7 +37,7 @@ if (in_array($check[0], array('server', 'user'))) { case 'user': $sql->query('SELECT ' . $select . ' WHERE `user`="' . sys::int($val) . '" ORDER BY `id` DESC'); } -} elseif ($text{0} == 'i' and $text{1} == 'd') +} elseif ($text[0] == 'i' and $text[1] == 'd') $sql->query('SELECT `id`, `user`, `text`, `date`, `type`, `money` FROM `logs` WHERE `id`="' . sys::int($text) . '" LIMIT 1'); else { $like = '`id` LIKE FROM_BASE64(\'' . base64_encode('%' . str_replace('_', '\_', $text) . '%') . '\') OR' diff --git a/system/acp/sections/logs/sysearch.php b/system/acp/sections/logs/sysearch.php index 915faa8..3a6df86 100644 --- a/system/acp/sections/logs/sysearch.php +++ b/system/acp/sections/logs/sysearch.php @@ -15,7 +15,7 @@ if (is_array($cache)) { sys::outjs($cache); } -if (!isset($text{2})) { +if (!isset($text[2])) { if ($go) sys::outjs(array('e' => 'Для выполнения поиска, необходимо больше данных'), $nmch); @@ -37,7 +37,7 @@ if (in_array($check[0], array('server', 'user'))) { case 'user': $sql->query('SELECT ' . $select . ' WHERE `user`="' . sys::int($val) . '" ORDER BY `id` DESC'); } -} elseif ($text{0} == 'i' and $text{1} == 'd') +} elseif ($text[0] == 'i' and $text[1] == 'd') $sql->query('SELECT ' . $select . ' WHERE `id`="' . sys::int($text) . '" LIMIT 1'); else { $like = '`id` LIKE FROM_BASE64(\'' . base64_encode('%' . str_replace('_', '\_', $text) . '%') . '\') OR' diff --git a/system/acp/sections/news/search.php b/system/acp/sections/news/search.php index 318e32f..03be9f8 100644 --- a/system/acp/sections/news/search.php +++ b/system/acp/sections/news/search.php @@ -15,14 +15,14 @@ if (is_array($cache)) { sys::outjs($cache); } -if (!isset($text{2})) { +if (!isset($text[2])) { if ($go) sys::outjs(array('e' => 'Для выполнения поиска, необходимо больше данных'), $nmch); sys::outjs(array('e' => '')); } -if ($text{0} == 'i' and $text{1} == 'd') +if ($text[0] == 'i' and $text[1] == 'd') $sql->query('SELECT `id`, `name`, `tags`, `views`, `date` FROM `news` WHERE `id`="' . sys::int($text) . '" LIMIT 1'); else { $like = '`id` LIKE FROM_BASE64(\'' . base64_encode('%' . str_replace('_', '\_', $text) . '%') . '\') OR' diff --git a/system/acp/sections/notice/search.php b/system/acp/sections/notice/search.php index 5d905ee..ba292e7 100644 --- a/system/acp/sections/notice/search.php +++ b/system/acp/sections/notice/search.php @@ -15,14 +15,14 @@ if (is_array($cache)) { sys::outjs($cache); } -if (!isset($text{2})) { +if (!isset($text[2])) { if ($go) sys::outjs(array('e' => 'Для выполнения поиска, необходимо больше данных'), $nmch); sys::outjs(array('e' => '')); } -if ($text{0} == 'i' and $text{1} == 'd') +if ($text[0] == 'i' and $text[1] == 'd') $notices = $sql->query('SELECT `id`, `unit`, `server`, `text`, `time` FROM `notice` WHERE `id`="' . sys::int($text) . '" LIMIT 1'); else { $like = '`id` LIKE FROM_BASE64(\'' . base64_encode('%' . str_replace('_', '\_', $text) . '%') . '\') OR' diff --git a/system/acp/sections/promo/search.php b/system/acp/sections/promo/search.php index 42cfb0f..62b3c7c 100644 --- a/system/acp/sections/promo/search.php +++ b/system/acp/sections/promo/search.php @@ -15,14 +15,14 @@ if (is_array($cache)) { sys::outjs($cache); } -if (!isset($text{2})) { +if (!isset($text[2])) { if ($go) sys::outjs(array('e' => 'Для выполнения поиска, необходимо больше данных'), $nmch); sys::outjs(array('e' => '')); } -if ($text{0} == 'i' and $text{1} == 'd') +if ($text[0] == 'i' and $text[1] == 'd') $promos = $sql->query('SELECT `id`, `cod`, `value`, `discount`, `use`, `extend`, `tarif`, `time` FROM `promo` WHERE `id`="' . sys::int($text) . '" LIMIT 1'); else { $like = '`id` LIKE FROM_BASE64(\'' . base64_encode('%' . str_replace('_', '\_', $text) . '%') . '\') OR' diff --git a/system/acp/sections/servers/search.php b/system/acp/sections/servers/search.php index be4b288..5614eb7 100644 --- a/system/acp/sections/servers/search.php +++ b/system/acp/sections/servers/search.php @@ -15,7 +15,7 @@ if (is_array($cache)) { sys::outjs($cache); } -if (!isset($text{2})) { +if (!isset($text[2])) { if ($go) sys::outjs(array('e' => 'Для выполнения поиска, необходимо больше данных'), $nmch); @@ -63,7 +63,7 @@ if (in_array($check[0], array('game', 'unit', 'core', 'tarif', 'user', 'status', $servers = $sql->query('SELECT ' . $select . ' `slots`="' . sys::int($val) . '" ORDER BY `id` ASC'); break; } -} elseif ($text{0} == 'i' and $text{1} == 'd') +} elseif ($text[0] == 'i' and $text[1] == 'd') $servers = $sql->query('SELECT ' . $select . ' `id`="' . sys::int($text) . '" LIMIT 1'); else { $like = '`id` LIKE FROM_BASE64(\'' . base64_encode('%' . str_replace('_', '\_', $text) . '%') . '\') OR' diff --git a/system/acp/sections/users/search.php b/system/acp/sections/users/search.php index 7e7fb36..bb8f7bd 100644 --- a/system/acp/sections/users/search.php +++ b/system/acp/sections/users/search.php @@ -15,14 +15,14 @@ if (is_array($cache)) { sys::outjs($cache); } -if (!isset($text{2})) { +if (!isset($text[2])) { if ($go) sys::outjs(array('e' => 'Для выполнения поиска, необходимо больше данных'), $nmch); sys::outjs(array('e' => '')); } -if ($text{0} == 'i' and $text{1} == 'd') +if ($text[0] == 'i' and $text[1] == 'd') $sql->query('SELECT `id`, `login`, `mail`, `balance`, `group` FROM `users` WHERE `id`="' . sys::int($text) . '" LIMIT 1'); else { $like = '`id` LIKE FROM_BASE64(\'' . base64_encode('%' . str_replace('_', '\_', $text) . '%') . '\') OR' diff --git a/system/acp/sections/web/search.php b/system/acp/sections/web/search.php index 8cb4854..03b1077 100644 --- a/system/acp/sections/web/search.php +++ b/system/acp/sections/web/search.php @@ -15,7 +15,7 @@ if (is_array($cache)) { sys::outjs($cache); } -if (!isset($text{2})) { +if (!isset($text[2])) { if ($go) sys::outjs(array('e' => 'Для выполнения поиска, необходимо больше данных'), $nmch); @@ -27,7 +27,7 @@ if (substr($text, 0, 5) == 'game=') { if (in_array($game, array('cs', 'cssold', 'css', 'csgo', 'samp', 'crmp', 'mta', 'mc'))) $webs = $sql->query('SELECT `id`, `type`, `server`, `user`, `unit`, `domain`, `passwd`, `login`, `date` FROM `web` WHERE `game`="' . $game . '" ORDER BY `id` ASC'); -} elseif ($text{0} == 'i' and $text{1} == 'd') +} elseif ($text[0] == 'i' and $text[1] == 'd') $webs = $sql->query('SELECT `id`, `type`, `server`, `user`, `unit`, `domain`, `passwd`, `login`, `date` FROM `web` WHERE `id`="' . sys::int($text) . '" LIMIT 1'); else { $like = '`id` LIKE FROM_BASE64(\'' . base64_encode('%' . str_replace('_', '\_', $text) . '%') . '\') OR' diff --git a/system/acp/sections/wiki/search.php b/system/acp/sections/wiki/search.php index 38318cc..1ec7676 100644 --- a/system/acp/sections/wiki/search.php +++ b/system/acp/sections/wiki/search.php @@ -15,14 +15,14 @@ if (is_array($cache)) { sys::outjs($cache); } -if (!isset($text{2})) { +if (!isset($text[2])) { if ($go) sys::outjs(array('e' => 'Для выполнения поиска, необходимо больше данных'), $nmch); sys::outjs(array('e' => '')); } -if ($text{0} == 'i' and $text{1} == 'd') +if ($text[0] == 'i' and $text[1] == 'd') $wikis = $sql->query('SELECT `id`, `name`, `cat`, `date` FROM `wiki` WHERE `id`="' . sys::int($text) . '" LIMIT 1'); else { $like = '`id` LIKE FROM_BASE64(\'' . base64_encode('%' . str_replace('_', '\_', $text) . '%') . '\') OR'