diff --git a/system/acp/sections/addons/addcat.php b/system/acp/sections/addons/addcat.php index 4328f4e..0b00169 100644 --- a/system/acp/sections/addons/addcat.php +++ b/system/acp/sections/addons/addcat.php @@ -3,7 +3,7 @@ if (!DEFINED('EGP')) exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404')); if ($go) { - $aGames = array('cs', 'cssold', 'css', 'csgo', 'samp', 'crmp', 'mta', 'mc'); + $aGames = array('cs', 'cssold', 'css', 'csgo', 'cs2', 'samp', 'crmp', 'mta', 'mc'); $aData = array(); @@ -12,6 +12,7 @@ if ($go) { $aData['cssold'] = isset($_POST['cssold']) ? $_POST['cssold'] : 0; $aData['css'] = isset($_POST['css']) ? $_POST['css'] : 0; $aData['csgo'] = isset($_POST['csgo']) ? $_POST['csgo'] : 0; + $aData['cs2'] = isset($_POST['cs2']) ? $_POST['cs2'] : 0; $aData['samp'] = isset($_POST['samp']) ? $_POST['samp'] : 0; $aData['crmp'] = isset($_POST['crmp']) ? $_POST['crmp'] : 0; $aData['mta'] = isset($_POST['mta']) ? $_POST['mta'] : 0; diff --git a/system/acp/sections/addons/addpl.php b/system/acp/sections/addons/addpl.php index 0bf6c44..b9bdd37 100644 --- a/system/acp/sections/addons/addpl.php +++ b/system/acp/sections/addons/addpl.php @@ -2,7 +2,7 @@ if (!DEFINED('EGP')) exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404')); -$aGames = array('cs', 'cssold', 'css', 'csgo', 'samp', 'crmp', 'mta', 'mc'); +$aGames = array('cs', 'cssold', 'css', 'csgo', 'cs2', 'samp', 'crmp', 'mta', 'mc'); $types = array('cfg', 'txt', 'ini', 'js'); if (isset($url['get'])) { diff --git a/system/acp/sections/addons/plugin.php b/system/acp/sections/addons/plugin.php index d103f05..7c52368 100644 --- a/system/acp/sections/addons/plugin.php +++ b/system/acp/sections/addons/plugin.php @@ -10,6 +10,7 @@ $aGames = array( 'cssold' => 'Counter-Strike: Source v34', 'css' => 'Counter-Strike: Source', 'csgo' => 'Counter-Strike: Global Offensive', + 'cs2' => 'Counter-Strike: 2', 'samp' => 'San Andreas Multiplayer', 'crmp' => 'GTA: Criminal Russia', 'mta' => 'Multi Theft Auto', diff --git a/system/acp/sections/addons/search.php b/system/acp/sections/addons/search.php index 3832f30..1903c71 100644 --- a/system/acp/sections/addons/search.php +++ b/system/acp/sections/addons/search.php @@ -25,7 +25,7 @@ if (!isset($text[2])) { if (substr($text, 0, 5) == 'game=') { $game = trim(substr($text, 5)); - if (in_array($game, array('cs', 'cssold', 'css', 'csgo', 'samp', 'crmp', 'mta', 'mc'))) + if (in_array($game, array('cs', 'cssold', 'css', 'csgo', 'cs2', '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') $plugins = $sql->query('SELECT `id`, `cat`, `game`, `name`, `status` FROM `plugins` WHERE `id`="' . sys::int($text) . '" LIMIT 1'); diff --git a/system/acp/sections/addons/update.php b/system/acp/sections/addons/update.php index 4913da5..60e1c24 100644 --- a/system/acp/sections/addons/update.php +++ b/system/acp/sections/addons/update.php @@ -10,6 +10,7 @@ $aGames = array( 'cssold' => 'Counter-Strike: Source v34', 'css' => 'Counter-Strike: Source', 'csgo' => 'Counter-Strike: Global Offensive', + 'cs2' => 'Counter-Strike: 2', 'samp' => 'San Andreas Multiplayer', 'crmp' => 'GTA: Criminal Russia', 'mta' => 'Multi Theft Auto', diff --git a/system/acp/sections/addons/updmp.php b/system/acp/sections/addons/updmp.php index beaea33..52ebd6b 100644 --- a/system/acp/sections/addons/updmp.php +++ b/system/acp/sections/addons/updmp.php @@ -6,7 +6,7 @@ if (isset($url['get']) and $url['get'] == 'list') { $unit = isset($url['unit']) ? sys::int($url['unit']) : sys::out(); $game = isset($url['game']) ? $url['game'] : sys::out(); - if (!in_array($game, array('cs', 'cssold', 'css', 'csgo'))) + if (!in_array($game, array('cs', 'cssold', 'css', 'csgo', 'cs2'))) sys::out(); $maps = ''; @@ -30,7 +30,7 @@ if ($go) { if (!$unit) sys::outjs(array('e' => 'Необходимо выбрать локацию')); - if (!in_array($game, array('cs', 'cssold', 'css', 'csgo'))) + if (!in_array($game, array('cs', 'cssold', 'css', 'csgo', 'cs2'))) sys::outjs(array('e' => 'Необходимо выбрать игру')); include(LIB . 'ssh.php'); diff --git a/system/acp/sections/servers/search.php b/system/acp/sections/servers/search.php index 5614eb7..321b3f7 100644 --- a/system/acp/sections/servers/search.php +++ b/system/acp/sections/servers/search.php @@ -34,7 +34,7 @@ if (in_array($check[0], array('game', 'unit', 'core', 'tarif', 'user', 'status', switch ($check[0]) { case 'game': - if (in_array($val, array('cs', 'cssold', 'css', 'csgo', 'samp', 'crmp', 'mta', 'mc'))) + if (in_array($val, array('cs', 'cssold', 'css', 'csgo',' cs2', 'samp', 'crmp', 'mta', 'mc'))) $servers = $sql->query('SELECT ' . $select . ' FROM `servers` WHERE `user`!="-1" AND `game`="' . $val . '" ORDER BY `id` ASC'); break; diff --git a/system/acp/sections/tarifs/search.php b/system/acp/sections/tarifs/search.php index a96d9e7..dd24cb0 100644 --- a/system/acp/sections/tarifs/search.php +++ b/system/acp/sections/tarifs/search.php @@ -25,7 +25,7 @@ if (!isset($text[2])) { if (substr($text, 0, 5) == 'game=') { $game = trim(substr($text, 5)); - if (in_array($game, array('cs', 'cssold', 'css', 'csgo', 'samp', 'crmp', 'mta', 'mc'))) + if (in_array($game, array('cs', 'cssold', 'css', 'csgo', 'cs2', 'samp', 'crmp', 'mta', 'mc'))) $tarifs = $sql->query('SELECT `id`, `unit`, `game`, `name`, `slots_min`, `slots_max`, `port_min`, `port_max` FROM `tarifs` WHERE `game`="' . $game . '" ORDER BY `id` ASC'); } elseif ($text[0] == 'i' and $text[1] == 'd') $tarifs = $sql->query('SELECT `id`, `unit`, `game`, `name`, `slots_min`, `slots_max`, `port_min`, `port_max` FROM `tarifs` WHERE `id`="' . sys::int($text) . '" LIMIT 1'); diff --git a/system/acp/sections/units/add.php b/system/acp/sections/units/add.php index e7fe7b0..713625b 100644 --- a/system/acp/sections/units/add.php +++ b/system/acp/sections/units/add.php @@ -50,7 +50,7 @@ if ($go) { . '`cssold`="' . $aData['cssold'] . '",' . '`css`="' . $aData['css'] . '",' . '`csgo`="' . $aData['csgo'] . '",' - . '`cs2`="' . $aData['csgo'] . '",' + . '`cs2`="' . $aData['cs2'] . '",' . '`samp`="' . $aData['samp'] . '",' . '`crmp`="' . $aData['crmp'] . '",' . '`mta`="' . $aData['mta'] . '",' diff --git a/system/acp/sections/web/search.php b/system/acp/sections/web/search.php index 03b1077..006321e 100644 --- a/system/acp/sections/web/search.php +++ b/system/acp/sections/web/search.php @@ -25,7 +25,7 @@ if (!isset($text[2])) { if (substr($text, 0, 5) == 'game=') { $game = trim(substr($text, 5)); - if (in_array($game, array('cs', 'cssold', 'css', 'csgo', 'samp', 'crmp', 'mta', 'mc'))) + if (in_array($game, array('cs', 'cssold', 'css', 'csgo', 'cs2', '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') $webs = $sql->query('SELECT `id`, `type`, `server`, `user`, `unit`, `domain`, `passwd`, `login`, `date` FROM `web` WHERE `id`="' . sys::int($text) . '" LIMIT 1');