composer install
');
+}
+require('../vendor/autoload.php');
+
+// Загружаем .env
+$dotenv = new Symfony\Component\Dotenv\Dotenv();
+$dotenv->load('../.env');
+
+if ($_ENV['RUN_MODE'] === 'dev') {
+ // Включение отображения ошибок в режиме разработки
+ ini_set('display_errors', TRUE);
+ ini_set('html_errors', TRUE);
+ ini_set('error_reporting', E_ALL);
+} else {
+ // Отключение отображения ошибок в продакшене
+ ini_set('display_errors', FALSE);
+ ini_set('html_errors', FALSE);
+ ini_set('error_reporting', 0);
+}
DEFINE('EGP', TRUE);
DEFINE('ROOT', '../');
@@ -24,12 +42,6 @@
$mcache = new Memcache;
$mcache->connect('127.0.0.1', 11211) or exit('Ошибка подключения Memcache');
-// Composer
-if (!file_exists(ROOT . 'vendor/autoload.php')) {
- die('Please install composer and run composer install
');
-}
-require(ROOT . 'vendor/autoload.php');
-
// Настройки
include(DATA . 'config.php');
include(DATA . 'mysql.php');
@@ -48,4 +60,3 @@
// Выхлоп
echo $html->arr['all'];
-?>
\ No newline at end of file
diff --git a/composer.json b/composer.json
index fae15eba..518f1110 100644
--- a/composer.json
+++ b/composer.json
@@ -1,6 +1,7 @@
{
"require": {
"symfony/polyfill": "1.28.0",
+ "symfony/dotenv": "5.4.35",
"filp/whoops": "2.15.4",
"monolog/monolog": "2.9.2",
"xpaw/php-source-query-class": "2.1.0",
diff --git a/composer.lock b/composer.lock
index 3f9353aa..72105c78 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "9fe541d20000bad8bcc7a6f093bd89a1",
+ "content-hash": "06f4af2d7e9531adb777efd893131ba8",
"packages": [
{
"name": "filp/whoops",
@@ -229,6 +229,144 @@
},
"time": "2021-05-03T11:20:27+00:00"
},
+ {
+ "name": "symfony/deprecation-contracts",
+ "version": "v2.5.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/deprecation-contracts.git",
+ "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66",
+ "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "2.5-dev"
+ },
+ "thanks": {
+ "name": "symfony/contracts",
+ "url": "https://github.com/symfony/contracts"
+ }
+ },
+ "autoload": {
+ "files": [
+ "function.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "A generic function and convention to trigger deprecation notices",
+ "homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.2"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2022-01-02T09:53:40+00:00"
+ },
+ {
+ "name": "symfony/dotenv",
+ "version": "v5.4.35",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/dotenv.git",
+ "reference": "4de488440104b99d2e7c0717ee432e760b061e32"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/dotenv/zipball/4de488440104b99d2e7c0717ee432e760b061e32",
+ "reference": "4de488440104b99d2e7c0717ee432e760b061e32",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2.5",
+ "symfony/deprecation-contracts": "^2.1|^3"
+ },
+ "require-dev": {
+ "symfony/console": "^4.4|^5.0|^6.0",
+ "symfony/process": "^4.4|^5.0|^6.0"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Dotenv\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Registers environment variables from a .env file",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "dotenv",
+ "env",
+ "environment"
+ ],
+ "support": {
+ "source": "https://github.com/symfony/dotenv/tree/v5.4.35"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2024-01-23T13:51:25+00:00"
+ },
{
"name": "symfony/polyfill",
"version": "v1.28.0",
@@ -478,5 +616,5 @@
"prefer-lowest": false,
"platform": [],
"platform-dev": [],
- "plugin-api-version": "2.3.0"
+ "plugin-api-version": "2.6.0"
}
diff --git a/cron.php b/cron.php
index 80466af7..f5e708a7 100644
--- a/cron.php
+++ b/cron.php
@@ -1,9 +1,27 @@
load(__DIR__ . '/.env');
+
+if ($_ENV['RUN_MODE'] === 'dev') {
+ // Включение отображения ошибок в режиме разработки
+ ini_set('display_errors', TRUE);
+ ini_set('html_errors', TRUE);
+ ini_set('error_reporting', E_ALL);
+} else {
+ // Отключение отображения ошибок в продакшене
+ ini_set('display_errors', FALSE);
+ ini_set('html_errors', FALSE);
+ ini_set('error_reporting', 0);
+}
DEFINE('EGP', TRUE);
DEFINE('DIR', dirname('index.php'));
@@ -21,14 +39,14 @@
$start_point = $_SERVER['REQUEST_TIME'];
$mcache = new Memcache;
-$mcache->connect('127.0.0.1', 11211) or exit('Ошибка: не удалось создать связь с Memcache.' . PHP_EOL);
+$mcache->connect('127.0.0.1', 11211) or exit('Ошибка подключения Memcache.' . PHP_EOL);
// Настройки
include(DATA . 'config.php');
-/*if($argv[1] != $cfg['cron_key'])
- exit('error key.'.PHP_EOL);
-*/
+// Проверка ключа и указания параметра
+if($argv[1] != $cfg['cron_key'])
+ exit('Invalid cron key' . PHP_EOL);
$task = $argv[2];
include(DATA . 'engine.php');
@@ -40,4 +58,3 @@
include(LIB . 'html.php');
include(LIB . 'system.php');
include(LIB . 'cron.php');
-?>
\ No newline at end of file
diff --git a/enginegp.sql b/enginegp.sql
index 6f549814..337faa4c 100644
--- a/enginegp.sql
+++ b/enginegp.sql
@@ -279,19 +279,6 @@ CREATE TABLE `cashback` (
-- --------------------------------------------------------
---
--- Структура таблицы `chat`
---
-
-CREATE TABLE `chat` (
- `id` int(11) NOT NULL,
- `userid` int(11) NOT NULL,
- `date` datetime NOT NULL,
- `msg` text NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-
--- --------------------------------------------------------
-
--
-- Структура таблицы `control`
--
@@ -689,36 +676,6 @@ CREATE TABLE `help_upload` (
-- --------------------------------------------------------
---
--- Структура таблицы `jobs`
---
-
-CREATE TABLE `jobs` (
- `id` int(11) NOT NULL,
- `name` varchar(500) NOT NULL,
- `job` varchar(150) NOT NULL,
- `desc` text NOT NULL,
- `status` int(11) NOT NULL,
- `date` int(11) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-
--- --------------------------------------------------------
-
---
--- Структура таблицы `jobs_app`
---
-
-CREATE TABLE `jobs_app` (
- `id` int(11) NOT NULL,
- `user` int(11) NOT NULL,
- `text` text NOT NULL,
- `contact` varchar(100) NOT NULL,
- `job` int(11) NOT NULL,
- `date` int(11) NOT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-
--- --------------------------------------------------------
-
--
-- Структура таблицы `logs`
--
@@ -1330,7 +1287,7 @@ CREATE TABLE `units` (
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`login` char(15) NOT NULL,
- `passwd` char(32) NOT NULL,
+ `passwd` char(60) NOT NULL,
`name` char(32) NOT NULL,
`lastname` char(32) NOT NULL,
`patronymic` char(32) NOT NULL,
@@ -1533,12 +1490,6 @@ ALTER TABLE `boost_rating`
ALTER TABLE `cashback`
ADD PRIMARY KEY (`id`);
---
--- Индексы таблицы `chat`
---
-ALTER TABLE `chat`
- ADD PRIMARY KEY (`id`);
-
--
-- Индексы таблицы `control`
--
@@ -1671,18 +1622,6 @@ ALTER TABLE `help_dialogs`
ALTER TABLE `help_upload`
ADD PRIMARY KEY (`id`);
---
--- Индексы таблицы `jobs`
---
-ALTER TABLE `jobs`
- ADD PRIMARY KEY (`id`);
-
---
--- Индексы таблицы `jobs_app`
---
-ALTER TABLE `jobs_app`
- ADD PRIMARY KEY (`id`);
-
--
-- Индексы таблицы `logs`
--
@@ -1995,11 +1934,6 @@ ALTER TABLE `boost_rating`
ALTER TABLE `cashback`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
--- AUTO_INCREMENT для таблицы `chat`
---
-ALTER TABLE `chat`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
---
-- AUTO_INCREMENT для таблицы `control`
--
ALTER TABLE `control`
@@ -2090,16 +2024,6 @@ ALTER TABLE `help_dialogs`
ALTER TABLE `help_upload`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
--- AUTO_INCREMENT для таблицы `jobs`
---
-ALTER TABLE `jobs`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
---
--- AUTO_INCREMENT для таблицы `jobs_app`
---
-ALTER TABLE `jobs_app`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
---
-- AUTO_INCREMENT для таблицы `logs`
--
ALTER TABLE `logs`
diff --git a/index.php b/index.php
index 155ba1d1..6d223f9f 100644
--- a/index.php
+++ b/index.php
@@ -1,12 +1,29 @@
install composer and run composer install
');
+}
+require(__DIR__ . '/vendor/autoload.php');
+
+// Загружаем .env
+$dotenv = new Symfony\Component\Dotenv\Dotenv();
+$dotenv->load(__DIR__ . '/.env');
+
+if ($_ENV['RUN_MODE'] === 'dev') {
+ // Включение отображения ошибок в режиме разработки
+ ini_set('display_errors', TRUE);
+ ini_set('html_errors', TRUE);
+ ini_set('error_reporting', E_ALL);
+} else {
+ // Отключение отображения ошибок в продакшене
+ ini_set('display_errors', FALSE);
+ ini_set('html_errors', FALSE);
+ ini_set('error_reporting', 0);
+}
DEFINE('EGP', TRUE);
DEFINE('DIR', dirname('index.php'));
@@ -20,18 +37,11 @@
DEFINE('ENG', SYS . 'engine/');
DEFINE('SEC', SYS . 'sections/');
-$device = isset($_COOKIE['egp_device']) ? $_COOKIE['egp_device'] : '!mobile';
$start_point = $_SERVER['REQUEST_TIME'];
$mcache = new Memcache;
$mcache->connect('127.0.0.1', 11211) or exit('Ошибка подключения Memcache');
-// Composer
-if (!file_exists(ROOT . 'vendor/autoload.php')) {
- die('Please install composer and run composer install
');
-}
-require(ROOT . 'vendor/autoload.php');
-
// Настройки
include(DATA . 'config.php');
include(DATA . 'engine.php');
@@ -45,24 +55,8 @@
$uip = sys::ip();
-/* if(!isset($_COOKIE['egp_device']))
-{
- include(LIB.'megp.php');
-
- $device = $megp->isMobile() ? 'mobile' : '!mobile';
-
- sys::cookie('egp_device', $device, 14);
-
- if($device == 'mobile')
- sys::back();
-} */
-
// Распределитель
-if ($device == '!mobile')
- include(SYS . 'distributor.php');
-/* else
- include(SYS.'mdistributor.php'); */
+include(SYS . 'distributor.php');
// Выхлоп
echo $html->arr['all'];
-?>
\ No newline at end of file
diff --git a/system/acp/distributor.php b/system/acp/distributor.php
index a2b0d9f3..87ff8008 100644
--- a/system/acp/distributor.php
+++ b/system/acp/distributor.php
@@ -17,8 +17,6 @@
$loggingInFile->setLogger((new \Monolog\Logger('EngineGP', [(new \Monolog\Handler\StreamHandler(ROOT . '/logs/enginegp.log'))->setFormatter((new \Monolog\Formatter\LineFormatter(null, null, true)))])));
$whoops->pushHandler($loggingInFile);
-$device = '!mobile';
-
// Парсинг адреса
$url = is_array(sys::url()) ? sys::url() : array();
$route = sys::url(false);
@@ -29,30 +27,25 @@
$page = array_key_exists('page', $url) ? sys::int($url['page']) : 1;
$route = $route == '' ? 'index' : $route;
-$auth = false;
-
-// Проверка cookie на авторизацию
-$aAuth = array();
+session_start();
-$aAuth['login'] = isset($_COOKIE['egp_login']) ? $_COOKIE['egp_login'] : '';
-$aAuth['passwd'] = isset($_COOKIE['egp_passwd']) ? $_COOKIE['egp_passwd'] : '';
-$aAuth['authkeycheck'] = isset($_COOKIE['egp_authkeycheck']) ? $_COOKIE['egp_authkeycheck'] : '';
+$auth = false;
-$authkey = md5($aAuth['login'] . $uip . $aAuth['passwd']);
+// Проверка сессии на авторизацию
+if (isset($_SESSION['user_id'])) {
+ $userId = $_SESSION['user_id'];
-if (!in_array('', $aAuth) and $authkey == $aAuth['authkeycheck']) {
- if ((!sys::valid($aAuth['login'], 'other', $aValid['login'])) and !sys::valid($aAuth['passwd'], 'md5')) {
- $sql->query('SELECT `id` FROM `users` WHERE `login`="' . $aAuth['login'] . '" AND `passwd`="' . $aAuth['passwd'] . '" AND `group`="admin" LIMIT 1');
- if ($sql->num()) {
- $sql->query('SELECT `id`, `login`, `balance`, `group`, `time` FROM `users` WHERE `login`="' . $aAuth['login'] . '" AND `passwd`="' . $aAuth['passwd'] . '" LIMIT 1');
- $user = $sql->get();
+ $sql->query('SELECT `id`, `login`, `balance`, `group`, `level`, `time` FROM `users` WHERE `id`="' . $userId . '" LIMIT 1');
+ if ($sql->num()) {
+ $user = $sql->get();
- // Обновление активности
- if ($user['time'] + 10 < $start_point)
- $sql->query('UPDATE `users` set `time`="' . $start_point . '" WHERE `id`="' . $user['id'] . '" LIMIT 1');
+ // Обновление активности
+ if ($user['time'] + 10 < $start_point)
+ $sql->query('UPDATE `users` set `time`="' . $start_point . '" WHERE `id`="' . $user['id'] . '" LIMIT 1');
+ // Проверка принадлежности к группе admin
+ if ($user['group'] === "admin")
$auth = true;
- }
}
}
@@ -139,4 +132,3 @@
$html->set('main', isset($html->arr['main']) ? $html->arr['main'] : '', true);
$html->pack('all');
-?>
\ No newline at end of file
diff --git a/system/acp/engine/addons.php b/system/acp/engine/addons.php
index 94af15e2..3cba8948 100644
--- a/system/acp/engine/addons.php
+++ b/system/acp/engine/addons.php
@@ -35,4 +35,3 @@
$html->pack('menu');
include(SEC . 'addons/' . $section . '.php');
-?>
\ No newline at end of file
diff --git a/system/acp/engine/boost.php b/system/acp/engine/boost.php
index 77988342..d103ed3e 100644
--- a/system/acp/engine/boost.php
+++ b/system/acp/engine/boost.php
@@ -37,4 +37,3 @@
$inc = $section != 'index' ? 'service' : 'index';
include(SEC . 'boost/' . $inc . '.php');
-?>
\ No newline at end of file
diff --git a/system/acp/engine/cashback.php b/system/acp/engine/cashback.php
index bd7ad553..d7eb9ce2 100644
--- a/system/acp/engine/cashback.php
+++ b/system/acp/engine/cashback.php
@@ -2,9 +2,21 @@
if (!DEFINED('EGP'))
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
-@ini_set('display_errors', TRUE);
-@ini_set('html_errors', TRUE);
-@ini_set('error_reporting', E_ALL);
+// Загружаем .env
+$dotenv = new Symfony\Component\Dotenv\Dotenv();
+$dotenv->load(ROOT . '/.env');
+
+if ($_ENV['RUN_MODE'] === 'dev') {
+ // Включение отображения ошибок в режиме разработки
+ ini_set('display_errors', TRUE);
+ ini_set('html_errors', TRUE);
+ ini_set('error_reporting', E_ALL);
+} else {
+ // Отключение отображения ошибок в продакшене
+ ini_set('display_errors', FALSE);
+ ini_set('html_errors', FALSE);
+ ini_set('error_reporting', 0);
+}
$nmc = 'cashback_' . $id;
@@ -55,4 +67,3 @@
}
sys::outjs(array('e' => 'Не передан идентификатор заявки'), $nmc);
-?>
\ No newline at end of file
diff --git a/system/acp/engine/control.php b/system/acp/engine/control.php
index 459e5960..974e9383 100644
--- a/system/acp/engine/control.php
+++ b/system/acp/engine/control.php
@@ -2,7 +2,7 @@
if (!DEFINED('EGP'))
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
-$info = ' Контроль';
+$info = ' Контроль';
$aSection = array(
'index',
@@ -34,4 +34,3 @@
$html->pack('menu');
include(SEC . 'control/' . $section . '.php');
-?>
\ No newline at end of file
diff --git a/system/acp/engine/hosting.php b/system/acp/engine/hosting.php
index 1d190acc..4b94132d 100644
--- a/system/acp/engine/hosting.php
+++ b/system/acp/engine/hosting.php
@@ -6,4 +6,3 @@
$html->get('menu', 'sections/hosting');
$html->pack('menu');
-?>
\ No newline at end of file
diff --git a/system/acp/engine/index.php b/system/acp/engine/index.php
index 8cc9bc8c..70f9c01c 100644
--- a/system/acp/engine/index.php
+++ b/system/acp/engine/index.php
@@ -84,4 +84,3 @@
$mcache->set($mcache_name, $html->arr['main'], false, 10);
} else
$html->arr['main'] = str_replace('[cashback]', $html->arr['cashback'], $html->arr['main']);
-?>
\ No newline at end of file
diff --git a/system/acp/engine/jobs.php b/system/acp/engine/jobs.php
deleted file mode 100644
index 7d40cde4..00000000
--- a/system/acp/engine/jobs.php
+++ /dev/null
@@ -1,32 +0,0 @@
- Вакансии';
-
-$aSection = array(
- 'index',
- 'add',
- 'request'
-);
-
-if (!in_array($section, $aSection))
- $section = 'index';
-
-$html->get('menu', 'sections/jobs');
-
-$html->unit('s_' . $section, true);
-
-unset($aSection[array_search($section, $aSection)]);
-
-foreach ($aSection as $noactive)
- $html->unit('s_' . $noactive);
-
-$sql->query('SELECT `id` FROM `jobs`');
-$html->set('jobs', $sql->num());
-$sql->query('SELECT `id` FROM `jobs_app`');
-$html->set('jobs_app', $sql->num());
-$html->pack('menu');
-
-include(SEC . 'jobs/' . $section . '.php');
-?>
\ No newline at end of file
diff --git a/system/acp/engine/letter.php b/system/acp/engine/letter.php
index 9440775d..681888c6 100644
--- a/system/acp/engine/letter.php
+++ b/system/acp/engine/letter.php
@@ -24,4 +24,3 @@
$html->pack('menu');
include(SEC . 'letter/' . $section . '.php');
-?>
\ No newline at end of file
diff --git a/system/acp/engine/logs.php b/system/acp/engine/logs.php
index 7f088158..e470bb36 100644
--- a/system/acp/engine/logs.php
+++ b/system/acp/engine/logs.php
@@ -30,4 +30,3 @@
$html->pack('menu');
include(SEC . 'logs/' . $section . '.php');
-?>
\ No newline at end of file
diff --git a/system/acp/engine/news.php b/system/acp/engine/news.php
index 3572f40d..037a12d4 100644
--- a/system/acp/engine/news.php
+++ b/system/acp/engine/news.php
@@ -2,7 +2,7 @@
if (!DEFINED('EGP'))
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
-$info = ' Управление новостями';
+$info = ' Управление новостями';
$aSection = array(
'index',
@@ -28,4 +28,3 @@
$html->pack('menu');
include(SEC . 'news/' . $section . '.php');
-?>
\ No newline at end of file
diff --git a/system/acp/engine/notice.php b/system/acp/engine/notice.php
index 79277a2b..69f464c0 100644
--- a/system/acp/engine/notice.php
+++ b/system/acp/engine/notice.php
@@ -29,4 +29,3 @@
$html->pack('menu');
include(SEC . 'notice/' . $section . '.php');
-?>
\ No newline at end of file
diff --git a/system/acp/engine/pages.php b/system/acp/engine/pages.php
index 1630e0df..61b7c2ed 100644
--- a/system/acp/engine/pages.php
+++ b/system/acp/engine/pages.php
@@ -2,7 +2,7 @@
if (!DEFINED('EGP'))
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
-$info = ' Управление старницами';
+$info = ' Управление старницами';
$aSection = array(
'index',
@@ -25,4 +25,3 @@
$html->pack('menu');
include(SEC . 'pages/' . $section . '.php');
-?>
\ No newline at end of file
diff --git a/system/acp/engine/promo.php b/system/acp/engine/promo.php
index 3dcdc26e..cc25da12 100644
--- a/system/acp/engine/promo.php
+++ b/system/acp/engine/promo.php
@@ -33,4 +33,3 @@
$html->pack('menu');
include(SEC . 'promo/' . $section . '.php');
-?>
\ No newline at end of file
diff --git a/system/acp/engine/servers.php b/system/acp/engine/servers.php
index 3d077748..bb6b4516 100644
--- a/system/acp/engine/servers.php
+++ b/system/acp/engine/servers.php
@@ -74,4 +74,3 @@
$html->pack('menu');
include(SEC . 'servers/' . $section . '.php');
-?>
\ No newline at end of file
diff --git a/system/acp/engine/system.php b/system/acp/engine/system.php
index 953d4751..ca6c0271 100644
--- a/system/acp/engine/system.php
+++ b/system/acp/engine/system.php
@@ -52,4 +52,3 @@
$html->get('index', 'sections/system');
$html->pack('main');
-?>
\ No newline at end of file
diff --git a/system/acp/engine/tarifs.php b/system/acp/engine/tarifs.php
index 3bac8c0e..42663703 100644
--- a/system/acp/engine/tarifs.php
+++ b/system/acp/engine/tarifs.php
@@ -30,4 +30,3 @@
$html->pack('menu');
include(SEC . 'tarifs/' . $section . '.php');
-?>
\ No newline at end of file
diff --git a/system/acp/engine/units.php b/system/acp/engine/units.php
index 2af8f96b..507f30d4 100644
--- a/system/acp/engine/units.php
+++ b/system/acp/engine/units.php
@@ -30,4 +30,3 @@
$html->pack('menu');
include(SEC . 'units/' . $section . '.php');
-?>
\ No newline at end of file
diff --git a/system/acp/engine/users.php b/system/acp/engine/users.php
index 74db691c..de2ebc8e 100644
--- a/system/acp/engine/users.php
+++ b/system/acp/engine/users.php
@@ -41,4 +41,3 @@
$html->pack('menu');
include(SEC . 'users/' . $section . '.php');
-?>
\ No newline at end of file
diff --git a/system/acp/engine/web.php b/system/acp/engine/web.php
index a9941ca4..42abcf39 100644
--- a/system/acp/engine/web.php
+++ b/system/acp/engine/web.php
@@ -59,4 +59,3 @@
$html->pack('menu');
include(SEC . 'web/' . $section . '.php');
-?>
\ No newline at end of file
diff --git a/system/acp/engine/wiki.php b/system/acp/engine/wiki.php
index 1c920967..48841116 100644
--- a/system/acp/engine/wiki.php
+++ b/system/acp/engine/wiki.php
@@ -28,4 +28,3 @@
$html->pack('menu');
include(SEC . 'wiki/' . $section . '.php');
-?>
\ No newline at end of file
diff --git a/system/acp/sections/addons/addcat.php b/system/acp/sections/addons/addcat.php
index a4465a6a..5ecaa094 100644
--- a/system/acp/sections/addons/addcat.php
+++ b/system/acp/sections/addons/addcat.php
@@ -41,4 +41,3 @@
$html->get('addcat', 'sections/addons');
$html->pack('main');
-?>
\ No newline at end of file
diff --git a/system/acp/sections/addons/addpl.php b/system/acp/sections/addons/addpl.php
index 14ac6740..895b9957 100644
--- a/system/acp/sections/addons/addpl.php
+++ b/system/acp/sections/addons/addpl.php
@@ -346,4 +346,3 @@
$html->get('addpl', 'sections/addons');
$html->pack('main');
-?>
\ No newline at end of file
diff --git a/system/acp/sections/addons/cats.php b/system/acp/sections/addons/cats.php
index 2ab6601f..5f1e3e77 100644
--- a/system/acp/sections/addons/cats.php
+++ b/system/acp/sections/addons/cats.php
@@ -22,4 +22,3 @@
$html->set('list', $list);
$html->pack('main');
-?>
\ No newline at end of file
diff --git a/system/acp/sections/addons/delete.php b/system/acp/sections/addons/delete.php
index 5379acfd..2ee36844 100644
--- a/system/acp/sections/addons/delete.php
+++ b/system/acp/sections/addons/delete.php
@@ -54,4 +54,3 @@
}
sys::outjs(array('s' => 'ok'));
-?>
\ No newline at end of file
diff --git a/system/acp/sections/addons/index.php b/system/acp/sections/addons/index.php
index 3a55198f..909e8446 100644
--- a/system/acp/sections/addons/index.php
+++ b/system/acp/sections/addons/index.php
@@ -63,4 +63,3 @@
$html->pack('main');
}
-?>
\ No newline at end of file
diff --git a/system/acp/sections/addons/plugin.php b/system/acp/sections/addons/plugin.php
index b4ce4d39..ffed0065 100644
--- a/system/acp/sections/addons/plugin.php
+++ b/system/acp/sections/addons/plugin.php
@@ -318,4 +318,3 @@
$html->set('update', $update);
$html->pack('main');
-?>
\ No newline at end of file
diff --git a/system/acp/sections/addons/search.php b/system/acp/sections/addons/search.php
index 576a7d51..d5016834 100644
--- a/system/acp/sections/addons/search.php
+++ b/system/acp/sections/addons/search.php
@@ -67,4 +67,3 @@
$mcache->set($mkey, array('s' => $list), false, 15);
sys::outjs(array('s' => $list));
-?>
\ No newline at end of file
diff --git a/system/acp/sections/addons/update.php b/system/acp/sections/addons/update.php
index ca97a6db..91a1b6ce 100644
--- a/system/acp/sections/addons/update.php
+++ b/system/acp/sections/addons/update.php
@@ -303,4 +303,3 @@
$html->set('files_delete_all', $files_delete_all);
$html->pack('main');
-?>
\ No newline at end of file
diff --git a/system/acp/sections/addons/updmp.php b/system/acp/sections/addons/updmp.php
index 1c8fb890..7d6cadf4 100644
--- a/system/acp/sections/addons/updmp.php
+++ b/system/acp/sections/addons/updmp.php
@@ -72,4 +72,3 @@
$html->set('units', $units);
$html->pack('main');
-?>
\ No newline at end of file
diff --git a/system/acp/sections/boost/index.php b/system/acp/sections/boost/index.php
index 15093d71..977f37ba 100644
--- a/system/acp/sections/boost/index.php
+++ b/system/acp/sections/boost/index.php
@@ -76,4 +76,3 @@
$html->set('pages', isset($html->arr['pages']) ? $html->arr['pages'] : '');
$html->pack('main');
-?>
\ No newline at end of file
diff --git a/system/acp/sections/boost/search.php b/system/acp/sections/boost/search.php
index f0fdbc1b..8717f59d 100644
--- a/system/acp/sections/boost/search.php
+++ b/system/acp/sections/boost/search.php
@@ -68,4 +68,3 @@
$mcache->set($mkey, array('s' => $list), false, 15);
sys::outjs(array('s' => $list));
-?>
\ No newline at end of file
diff --git a/system/acp/sections/boost/service.php b/system/acp/sections/boost/service.php
index cd1e370e..9fd15369 100644
--- a/system/acp/sections/boost/service.php
+++ b/system/acp/sections/boost/service.php
@@ -76,4 +76,3 @@
$html->set('pages', isset($html->arr['pages']) ? $html->arr['pages'] : '');
$html->pack('main');
-?>
\ No newline at end of file
diff --git a/system/acp/sections/control/delete.php b/system/acp/sections/control/delete.php
index 38daf315..a552c6e7 100644
--- a/system/acp/sections/control/delete.php
+++ b/system/acp/sections/control/delete.php
@@ -5,4 +5,3 @@
$sql->query('UPDATE `control` set `user`="-1", `status`="overdue", `time`="0", `overdue`="0" WHERE `id`="' . $id . '" LIMIT 1');
sys::outjs(array('s' => 'ok'));
-?>
\ No newline at end of file
diff --git a/system/acp/sections/control/index.php b/system/acp/sections/control/index.php
index f8b58b02..e67f63a8 100644
--- a/system/acp/sections/control/index.php
+++ b/system/acp/sections/control/index.php
@@ -50,4 +50,3 @@
$html->set('pages', isset($html->arr['pages']) ? $html->arr['pages'] : '');
$html->pack('main');
}
-?>
\ No newline at end of file
diff --git a/system/acp/sections/control/overdue.php b/system/acp/sections/control/overdue.php
index 077d6229..65b64429 100644
--- a/system/acp/sections/control/overdue.php
+++ b/system/acp/sections/control/overdue.php
@@ -31,4 +31,3 @@
$html->set('pages', '');
$html->pack('main');
}
-?>
\ No newline at end of file
diff --git a/system/acp/sections/control/search.php b/system/acp/sections/control/search.php
index d45c2c65..875a71e3 100644
--- a/system/acp/sections/control/search.php
+++ b/system/acp/sections/control/search.php
@@ -94,4 +94,3 @@
$mcache->set($mkey, array('s' => $list), false, 15);
sys::outjs(array('s' => $list));
-?>
\ No newline at end of file
diff --git a/system/acp/sections/control/server.php b/system/acp/sections/control/server.php
index 49190714..c410b470 100644
--- a/system/acp/sections/control/server.php
+++ b/system/acp/sections/control/server.php
@@ -101,4 +101,3 @@
$html->set('block', $ctrl['block'] == 0 ? 'Заблокировать' : date('d/m/Y H:i', $ctrl['block']));
$html->pack('main');
-?>
\ No newline at end of file
diff --git a/system/acp/sections/jobs/add.php b/system/acp/sections/jobs/add.php
deleted file mode 100644
index 0f3686ee..00000000
--- a/system/acp/sections/jobs/add.php
+++ /dev/null
@@ -1,27 +0,0 @@
- 'Необходимо заполнить все поля!'));
-
- $sql->query('INSERT INTO `jobs` set'
- . '`name`="' . $aData['name'] . '",'
- . '`job`="' . $aData['job'] . '",'
- . '`desc`="' . $aData['desc'] . '",'
- . '`status`="' . $aData['status'] . '",'
- . '`date`="' . $start_point . '"');
-
- sys::outjs(array('s' => 'ok'));
-}
-
-$html->get('add', 'sections/jobs');
-$html->pack('main');
-?>
\ No newline at end of file
diff --git a/system/acp/sections/jobs/edit.php b/system/acp/sections/jobs/edit.php
deleted file mode 100644
index d7b474ab..00000000
--- a/system/acp/sections/jobs/edit.php
+++ /dev/null
@@ -1,38 +0,0 @@
-query('SELECT * FROM `jobs` WHERE `id`="' . $id . '" LIMIT 1');
-if (!$sql->num())
- header('Location: ' . $cfg['http'] . 'acp/jobs');
-$jobs = $sql->get();
-
-if ($go) {
- $aData = [];
-
- $data = ['name', 'job', 'desc', 'status'];
- foreach ($data as $idata)
- $aData[$idata] = isset($_POST[$idata]) ? $_POST[$idata] : '';
-
- if (in_array('', $aData))
- sys::outjs(array('e' => 'Необходимо заполнить все поля!'));
-
- $sql->query('UPDATE `jobs` set'
- . '`name`="' . $aData['name'] . '",'
- . '`job`="' . $aData['job'] . '",'
- . '`desc`="' . $aData['desc'] . '",'
- . '`status`="' . $aData['status'] . '",'
- . '`date`="' . $start_point . '"');
-
- sys::outjs(array('s' => 'ok'));
-}
-
-$html->get('edit', 'sections/jobs');
-$status = $jobs['status'] ? '' : '';
-$html->set('status', $status);
-
-$data = ['id', 'name', 'job', 'desc'];
-foreach ($data as $idata)
- $html->set($idata, $jobs[$idata]);
-$html->pack('main');
-?>
\ No newline at end of file
diff --git a/system/acp/sections/jobs/index.php b/system/acp/sections/jobs/index.php
deleted file mode 100644
index 6056dea6..00000000
--- a/system/acp/sections/jobs/index.php
+++ /dev/null
@@ -1,36 +0,0 @@
-query('SELECT * FROM `jobs` ORDER BY `id` ASC');
- while ($jobs = $sql->get()) {
- $status = [
- '1' => 'Доступна',
- '0' => 'Недоступна'
- ];
-
- $list .= 't |
ID | -Название | -Должность | -Описание | -Статус | -Создан | -- | - |
---|
ID | -Пользователь | -Ответ | -Контакты | -Вакансия | -Создан | -- | - |
---|
Телеграм канал: @tg_channel
- -Вконтакте: @vk_group_id
-WhatsApp: @phone_number
-Viber: @phone_number
-YouTube: @channel_name
+ GitHub: https://github.com/EngineGPDev/EngineGPВремя работы: Круглосуточно
Техническая поддержка осуществляется только через тикет систему в - панели управления. Перед созданием нового тикета рекомендуем заглянуть в нашу базу - знаний, где Вы сможете найти ответы на большинство ваших вопросов
+Техническая поддержка осуществляется только через тикет систему в панели управления. Перед созданием нового тикета рекомендуем заглянуть в нашу базу знаний, где Вы сможете найти ответы на большинство ваших вопросов
t |