Compare commits
73 commits
Author | SHA1 | Date | |
---|---|---|---|
e2bf38003d | |||
599be21d06 | |||
93bb92a9c1 | |||
e2d54fe782 | |||
cfc85bf417 | |||
3fe8745043 | |||
4cf1059465 | |||
3ae49f558b | |||
0753b6b980 | |||
efb01cd7ce | |||
2671f4ae01 | |||
294e258444 | |||
424b5f6712 | |||
3af83b37e9 | |||
fd62058f68 | |||
0614668a4c | |||
f88bf38c2c | |||
42866ef7bb | |||
80cd80ecaa | |||
6a49fc1b1b | |||
e65e06d521 | |||
16f79162a8 | |||
a13c608d29 | |||
a1a318fc4d | |||
fe685c8897 | |||
fcca4e4d72 | |||
f4b08e1e62 | |||
3f3b0e6821 | |||
3f77682c0b | |||
327c4208e2 | |||
fbb1b335d2 | |||
a4e655f571 | |||
7c2e921f86 | |||
03b2c6a5db | |||
378f8603c8 | |||
d58387a5dc | |||
8388dcb82f | |||
3b3cf279a7 | |||
8a2727faca | |||
1b1ad0d68e | |||
b9c11c2447 | |||
fd6b5d5ed6 | |||
6db267037c | |||
bb7099667f | |||
a854de0948 | |||
67b23adb28 | |||
390cb600f4 | |||
d26088ab28 | |||
a8bb43a2cd | |||
0e1ac645b2 | |||
4b606d1132 | |||
06b41f9acd | |||
11d3af2954 | |||
2333543727 | |||
646f251baf | |||
1aa2defdab | |||
712ff9cc95 | |||
b35ad053d4 | |||
b582882508 | |||
4d7a5b8317 | |||
6f4a645dfd | |||
be1c660e08 | |||
b50c33d090 | |||
35bfd081dc | |||
ac918ce26c | |||
56de12fc79 | |||
91c2b73c16 | |||
35ac6f781e | |||
0af7adf841 | |||
6aded056ee | |||
e7d2753474 | |||
b3fa912c05 | |||
03a210f658 |
19
.env.example
Normal file
19
.env.example
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Panel operation mode. (dev or prod)
|
||||
RUN_MODE="prod"
|
||||
|
||||
# Basic Settings
|
||||
APP_PROTOCOL="http://"
|
||||
APP_URL="example.com"
|
||||
APP_NAME="EngineGP"
|
||||
APP_DESCRIPTION="EngineGP"
|
||||
APP_CRONKEY="enginegp_ck"
|
||||
|
||||
# Database Connection Settings
|
||||
DB_HOST="127.0.0.1"
|
||||
DB_DATABASE="enginegp_db"
|
||||
DB_USERNAME="enginegp_usr"
|
||||
DB_PASSWORD="enginegp_pwd"
|
||||
|
||||
# Settings of the "Control" service
|
||||
APP_IP="192.168.1.1"
|
||||
APP_SUBNET="192.168.1.0/24"
|
16
.github/dependabot.yml
vendored
Normal file
16
.github/dependabot.yml
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
# To get started with Dependabot version updates, you'll need to specify which
|
||||
# package ecosystems to update and where the package manifests are located.
|
||||
# Please see the documentation for all configuration options:
|
||||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
||||
|
||||
version: 2
|
||||
|
||||
updates:
|
||||
- package-ecosystem: "composer"
|
||||
directory: "/"
|
||||
versioning-strategy: increase-if-necessary
|
||||
commit-message:
|
||||
prefix: "Composer"
|
||||
include: "scope"
|
||||
schedule:
|
||||
interval: "daily"
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,6 @@
|
|||
.idea
|
||||
.vscode
|
||||
.env
|
||||
*.log
|
||||
vendor
|
||||
composer.phar
|
18
.htaccess
18
.htaccess
|
@ -16,22 +16,14 @@ RewriteCond %{REQUEST_FILENAME} !-d
|
|||
RewriteCond %{REQUEST_URI} !=/favicon.ico
|
||||
RewriteRule ^(?!acp).* index.php [L]
|
||||
|
||||
<Files .env>
|
||||
Order allow,deny
|
||||
Deny from all
|
||||
</Files>
|
||||
|
||||
ErrorDocument 403 /403.html
|
||||
ErrorDocument 404 /404.html
|
||||
|
||||
#***Раскодировать, если не загружаются большие файлы:
|
||||
php_value max_execution_time 500
|
||||
php_value max_input_time 500
|
||||
php_value upload_max_filesize 30M
|
||||
php_value post_max_size 30M
|
||||
|
||||
#***Раскодировать, если белый экран:
|
||||
#php_flag short_open_tag = On
|
||||
|
||||
php_flag display_startup_errors on
|
||||
php_flag display_errors on
|
||||
php_flag html_errors on
|
||||
|
||||
<ifModule mod_expires.c>
|
||||
|
||||
ExpiresActive On
|
||||
|
|
12
403.html
12
403.html
|
@ -1,3 +1,15 @@
|
|||
<!--
|
||||
~ EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
~
|
||||
~ @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
~
|
||||
~ @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
~ @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
~
|
||||
~ @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
~ @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
-->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
|
|
12
404.html
12
404.html
|
@ -1,3 +1,15 @@
|
|||
<!--
|
||||
~ EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
~
|
||||
~ @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
~
|
||||
~ @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
~ @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
~
|
||||
~ @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
~ @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
-->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
|
|
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2018-2023 Sergei Solovev and contributors
|
||||
Copyright (c) 2018-present Solovev Sergei
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
49
README.md
Normal file
49
README.md
Normal file
|
@ -0,0 +1,49 @@
|
|||
## About The Project
|
||||
**EngineGP** is an open source control panel that provides the ability to manage and game servers. EngineGP was written between 2010 and 2015 (in writing style) by Valery Marchenko. The original EngineGP did not include licensing and was passed from hand to hand. In 2018, the author of the source code disappeared, and the revision of the code was continued by Sergey Solovev under the MIT license.
|
||||
## Requirements
|
||||
- **PHP:** 7.4 and above.
|
||||
- **PHP Extensions:** `php-common`, `php-cli`, `php-memcache`, `php-mysql`, `php-xml`, `php-mbstring`, `php-gd`, `php-imagick`, `php-zip`, `php-curl`, `php-ssh2`
|
||||
- **Database:** MySQL 5.7 and above or MariaDB 10.5 and above.
|
||||
- **Web Server:** Apache 2.4 or Nginx.
|
||||
## Libraries and Dependencies
|
||||
- **Composer:** For managing PHP dependencies.
|
||||
## Supported Games
|
||||
- **Counter-Strike: 1.6**
|
||||
- **Counter-Strike: Source**
|
||||
- **Counter-Strike: Source v34**
|
||||
- **Counter-Strike: Global Offensive**
|
||||
- **Counter-Strike: 2**
|
||||
- **Criminal Russia Multiplayer**
|
||||
- **San Andreas Multiplayer**
|
||||
- **Multi Theft Auto**
|
||||
- **Minecraft Java**
|
||||
- **RUST**
|
||||
## Automatic installation
|
||||
**Update indexes and packages**
|
||||
```bash
|
||||
apt -y update && apt -y upgrade
|
||||
```
|
||||
**Install GIT**
|
||||
```bash
|
||||
apt -y install git
|
||||
```
|
||||
**Clone the repository**
|
||||
```bash
|
||||
git clone https://github.com/EngineGPDev/Autoinstall.git
|
||||
```
|
||||
**Make the installation file executable**
|
||||
```bash
|
||||
chmod +x ./Autoinstall/install.sh
|
||||
```
|
||||
**Run automatic installation**
|
||||
```bash
|
||||
./Autoinstall/install.sh
|
||||
```
|
||||
## Contributors
|
||||
- [belomaxorka](https://github.com/belomaxorka)
|
||||
## Official sources
|
||||
- [Website](https://www.enginegp.com) - official website
|
||||
- [Documentation](https://docs.enginegp.com) - official documentation
|
||||
- [MantisBT](https://bugs.enginegp.com) - official bugtracker
|
||||
- [Telegram](https://t.me/enginegpdev) - telegram channel
|
||||
- [VKontakte](https://vk.com/enginegp) - vkontakte group
|
|
@ -1,11 +1,41 @@
|
|||
<?php
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
header('X-Powered-By: EGP');
|
||||
date_default_timezone_set('Europe/Moscow');
|
||||
|
||||
@ini_set('display_errors', FALSE);
|
||||
@ini_set('html_errors', FALSE);
|
||||
@ini_set('error_reporting', E_ALL);
|
||||
// Composer
|
||||
if (!file_exists('../vendor/autoload.php')) {
|
||||
die('Please <a href="https://getcomposer.org/download/" target="_blank" rel="noreferrer" style="color:#0a25bb;">install composer</a> and run <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">composer install</code>');
|
||||
}
|
||||
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 +54,6 @@ $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 <a href="https://getcomposer.org/download/" target="_blank" rel="noreferrer" style="color:#0a25bb;">install composer</a> and run <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">composer install</code>');
|
||||
}
|
||||
require(ROOT . 'vendor/autoload.php');
|
||||
|
||||
// Настройки
|
||||
include(DATA . 'config.php');
|
||||
include(DATA . 'mysql.php');
|
||||
|
@ -48,4 +72,3 @@ include(ACP . 'distributor.php');
|
|||
|
||||
// Выхлоп
|
||||
echo $html->arr['all'];
|
||||
?>
|
|
@ -1,6 +1,8 @@
|
|||
{
|
||||
"require": {
|
||||
"ext-memcache": "*",
|
||||
"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",
|
||||
|
|
144
composer.lock
generated
144
composer.lock
generated
|
@ -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": "97ddce15e7e061a3cdd9ef42ce5b3818",
|
||||
"packages": [
|
||||
{
|
||||
"name": "filp/whoops",
|
||||
|
@ -229,6 +229,144 @@
|
|||
},
|
||||
"time": "2021-05-03T11:20:27+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/deprecation-contracts",
|
||||
"version": "v2.5.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/deprecation-contracts.git",
|
||||
"reference": "80d075412b557d41002320b96a096ca65aa2c98d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/80d075412b557d41002320b96a096ca65aa2c98d",
|
||||
"reference": "80d075412b557d41002320b96a096ca65aa2c98d",
|
||||
"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.3"
|
||||
},
|
||||
"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": "2023-01-24T14:02:46+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",
|
||||
|
@ -476,7 +614,9 @@
|
|||
"stability-flags": [],
|
||||
"prefer-stable": false,
|
||||
"prefer-lowest": false,
|
||||
"platform": [],
|
||||
"platform": {
|
||||
"ext-memcache": "*"
|
||||
},
|
||||
"platform-dev": [],
|
||||
"plugin-api-version": "2.3.0"
|
||||
}
|
||||
|
|
45
cron.php
45
cron.php
|
@ -1,9 +1,39 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
date_default_timezone_set('Europe/Moscow');
|
||||
|
||||
@ini_set('display_errors', TRUE);
|
||||
@ini_set('html_errors', TRUE);
|
||||
@ini_set('error_reporting', E_ALL);
|
||||
// Composer
|
||||
if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
|
||||
exit('Please install composer and run composer install' . PHP_EOL);
|
||||
}
|
||||
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'));
|
||||
|
@ -21,14 +51,14 @@ DEFINE('CRON', LIB . 'cron/');
|
|||
$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 +70,3 @@ include(LIB . 'sql.php');
|
|||
include(LIB . 'html.php');
|
||||
include(LIB . 'system.php');
|
||||
include(LIB . 'cron.php');
|
||||
?>
|
84
enginegp.sql
84
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`
|
||||
--
|
||||
|
@ -781,7 +738,7 @@ CREATE TABLE `news` (
|
|||
--
|
||||
|
||||
INSERT INTO `news` (`id`, `name`, `text`, `full_text`, `tags`, `views`, `date`) VALUES
|
||||
(1, 'Мы открылись!', 'Мы с удовольствием сообщаем, что сегодня всем поклонникам он-лайн игр стал доступен наш мультифункциональный сервис по аренде игровых серверов.\r\n\r\nВ результате профессиональной работы и тщательной технической подготовки был получен производительный и удобный для пользователей IT-продукт, который в самое ближайшее время составит серьёзную конкуренцию всем существующим в этой рыночной нише проектам.\r\n\r\nНаша команда в процессе разработки сервиса старалась учитывать все слабые и сильные стороны аналогичных предложений. Во главе угла ставились надёжное быстродействие хостинга и максимально доступные цены для пользователей. Предлагая вам лучшие условия аренды игровых серверов нового поколения, мы рассчитываем на долгосрочное сотрудничество и каждого заказчика рассматриваем как перспективного партнёра.\r\n\r\nС сегодняшнего дня великолепный мир захватывающих интерактивных игр стал более доступным и технически совершенным, обеспечивая новый уровень эмоциональной насыщенности не прерывающимся ни на минуту компьютерным баталиям.\r\n', 'Мы с удовольствием сообщаем, что сегодня всем поклонникам он-лайн игр стал доступен наш мультифункциональный сервис по аренде игровых серверов.\r\n\r\nВ результате профессиональной работы и тщательной технической подготовки был получен производительный и удобный для пользователей IT-продукт, который в самое ближайшее время составит серьёзную конкуренцию всем существующим в этой рыночной нише проектам.\r\n\r\nНаша команда в процессе разработки сервиса старалась учитывать все слабые и сильные стороны аналогичных предложений. Во главе угла ставились надёжное быстродействие хостинга и максимально доступные цены для пользователей. Предлагая вам лучшие условия аренды игровых серверов нового поколения, мы рассчитываем на долгосрочное сотрудничество и каждого заказчика рассматриваем как перспективного партнёра.\r\n\r\nС сегодняшнего дня великолепный мир захватывающих интерактивных игр стал более доступным и технически совершенным, обеспечивая новый уровень эмоциональной насыщенности не прерывающимся ни на минуту компьютерным баталиям.\r\n', '', 0, 1577869200);
|
||||
(1, 'Мы открылись!', 'Мы с удовольствием сообщаем, что сегодня всем поклонникам он-лайн игр стал доступен наш мультифункциональный сервис по аренде игровых серверов.\r\n\r\nВ результате профессиональной работы и тщательной технической подготовки был получен производительный и удобный для пользователей IT-продукт, который в самое ближайшее время составит серьёзную конкуренцию всем существующим в этой рыночной нише проектам.\r\n\r\nНаша команда в процессе разработки сервиса старалась учитывать все слабые и сильные стороны аналогичных предложений. Во главе угла ставились надёжное быстродействие хостинга и максимально доступные цены для пользователей. Предлагая вам лучшие условия аренды игровых серверов нового поколения, мы рассчитываем на долгосрочное сотрудничество и каждого заказчика рассматриваем как перспективного партнёра.\r\n\r\nС сегодняшнего дня великолепный мир захватывающих интерактивных игр стал более доступным и технически совершенным, обеспечивая новый уровень эмоциональной насыщенности не прерывающимся ни на минуту компьютерным баталиям.\r\n', 'Мы с удовольствием сообщаем, что сегодня всем поклонникам он-лайн игр стал доступен наш мультифункциональный сервис по аренде игровых серверов.\r\n\r\nВ результате профессиональной работы и тщательной технической подготовки был получен производительный и удобный для пользователей IT-продукт, который в самое ближайшее время составит серьёзную конкуренцию всем существующим в этой рыночной нише проектам.\r\n\r\nНаша команда в процессе разработки сервиса старалась учитывать все слабые и сильные стороны аналогичных предложений. Во главе угла ставились надёжное быстродействие хостинга и максимально доступные цены для пользователей. Предлагая вам лучшие условия аренды игровых серверов нового поколения, мы рассчитываем на долгосрочное сотрудничество и каждого заказчика рассматриваем как перспективного партнёра.\r\n\r\nС сегодняшнего дня великолепный мир захватывающих интерактивных игр стал более доступным и технически совершенным, обеспечивая новый уровень эмоциональной насыщенности не прерывающимся ни на минуту компьютерным баталиям.\r\n', '', 0, UNIX_TIMESTAMP());
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
|
@ -841,7 +798,7 @@ CREATE TABLE `panel` (
|
|||
--
|
||||
|
||||
INSERT INTO `panel` (`address`, `passwd`, `path`) VALUES
|
||||
('IPADDR:22', 'ROOTPASSWORD', '/var/enginegp/');
|
||||
('IPADDR:22', 'ROOTPASSWORD', '/var/www/enginegp/');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
|
@ -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(255) NOT NULL,
|
||||
`name` char(32) NOT NULL,
|
||||
`lastname` char(32) NOT NULL,
|
||||
`patronymic` char(32) NOT NULL,
|
||||
|
@ -1365,7 +1322,7 @@ CREATE TABLE `users` (
|
|||
--
|
||||
|
||||
INSERT INTO `users` (`id`, `login`, `passwd`, `name`, `lastname`, `patronymic`, `mail`, `new_mail`, `confirm_mail`, `phone`, `confirm_phone`, `contacts`, `balance`, `wmr`, `group`, `support_info`, `level`, `ip`, `browser`, `time`, `date`, `part`, `part_money`, `security_ip`, `security_code`, `notice_help`, `notice_news`, `help`, `rental`, `extend`) VALUES
|
||||
(1, 'root', 'ENGINEGPHASH', 'Имя', 'Фамилия', 'Отчество', 'admin@enginegp.ru', '', '', '', 0, '', 10000, '', 'admin', '', 0, '127.0.0.1', 'Google Chrome', 1518459967, 1517667554, 0, 0, 0, 0, 0, 1, 0, '', '');
|
||||
(1, 'root', 'ENGINEGPHASH', 'Имя', 'Фамилия', 'Отчество', 'admin@enginegp.ru', '', '', '', 0, '', 10000, '', 'admin', '', 0, '127.0.0.1', 'Google Chrome', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 0, 0, 0, 0, 0, 1, 0, '', '');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
|
@ -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`
|
||||
|
|
12
fail.html
12
fail.html
|
@ -1,3 +1,15 @@
|
|||
<!--
|
||||
~ EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
~
|
||||
~ @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
~
|
||||
~ @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
~ @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
~
|
||||
~ @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
~ @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
-->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
|
|
62
index.php
62
index.php
|
@ -1,12 +1,41 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
header('X-Powered-By: EGP');
|
||||
|
||||
date_default_timezone_set('Europe/Moscow');
|
||||
|
||||
@ini_set('display_errors', TRUE);
|
||||
@ini_set('html_errors', TRUE);
|
||||
@ini_set('error_reporting', E_ALL);
|
||||
// Composer
|
||||
if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
|
||||
die('Please <a href="https://getcomposer.org/download/" target="_blank" rel="noreferrer" style="color:#0a25bb;">install composer</a> and run <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">composer install</code>');
|
||||
}
|
||||
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 +49,11 @@ DEFINE('LIB', SYS . 'library/');
|
|||
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 <a href="https://getcomposer.org/download/" target="_blank" rel="noreferrer" style="color:#0a25bb;">install composer</a> and run <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">composer install</code>');
|
||||
}
|
||||
require(ROOT . 'vendor/autoload.php');
|
||||
|
||||
// Настройки
|
||||
include(DATA . 'config.php');
|
||||
include(DATA . 'engine.php');
|
||||
|
@ -45,24 +67,8 @@ include(LIB . 'system.php');
|
|||
|
||||
$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'];
|
||||
?>
|
12
success.html
12
success.html
|
@ -1,3 +1,15 @@
|
|||
<!--
|
||||
~ EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
~
|
||||
~ @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
~
|
||||
~ @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
~ @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
~
|
||||
~ @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
~ @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
-->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
|
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -17,8 +29,6 @@ $loggingInFile->loggerOnly(true);
|
|||
$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 +39,25 @@ $go = array_key_exists('go', $url);
|
|||
$page = array_key_exists('page', $url) ? sys::int($url['page']) : 1;
|
||||
$route = $route == '' ? 'index' : $route;
|
||||
|
||||
session_start();
|
||||
|
||||
$auth = false;
|
||||
|
||||
// Проверка cookie на авторизацию
|
||||
$aAuth = array();
|
||||
// Проверка сессии на авторизацию
|
||||
if (isset($_SESSION['user_id'])) {
|
||||
$userId = $_SESSION['user_id'];
|
||||
|
||||
$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'] : '';
|
||||
$sql->query('SELECT `id`, `login`, `balance`, `group`, `level`, `time` FROM `users` WHERE `id`="' . $userId . '" LIMIT 1');
|
||||
if ($sql->num()) {
|
||||
$user = $sql->get();
|
||||
|
||||
$authkey = md5($aAuth['login'] . $uip . $aAuth['passwd']);
|
||||
|
||||
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();
|
||||
|
||||
// Обновление активности
|
||||
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 +144,3 @@ foreach ($aRoute as $route)
|
|||
$html->set('main', isset($html->arr['main']) ? $html->arr['main'] : '', true);
|
||||
|
||||
$html->pack('all');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -35,4 +47,3 @@ $html->set('plugins', $sql->num());
|
|||
$html->pack('menu');
|
||||
|
||||
include(SEC . 'addons/' . $section . '.php');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -37,4 +49,3 @@ $html->pack('menu');
|
|||
$inc = $section != 'index' ? 'service' : 'index';
|
||||
|
||||
include(SEC . 'boost/' . $inc . '.php');
|
||||
?>
|
|
@ -1,10 +1,34 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
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 +79,3 @@ if ($id) {
|
|||
}
|
||||
|
||||
sys::outjs(array('e' => 'Не передан идентификатор заявки'), $nmc);
|
||||
?>
|
|
@ -1,8 +1,20 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
$info = '<i class="fa fa-dropbox"></i> Контроль';
|
||||
$info = '<i class="fa-brands fa-dropbox"></i> Контроль';
|
||||
|
||||
$aSection = array(
|
||||
'index',
|
||||
|
@ -34,4 +46,3 @@ $html->set('overdue', $sql->num());
|
|||
$html->pack('menu');
|
||||
|
||||
include(SEC . 'control/' . $section . '.php');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -6,4 +18,3 @@ $info = '<i class="fa fa-globe"></i> Список вирт. хостингов';
|
|||
|
||||
$html->get('menu', 'sections/hosting');
|
||||
$html->pack('menu');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -84,4 +96,3 @@ if ($html->arr['main'] == '') {
|
|||
$mcache->set($mcache_name, $html->arr['main'], false, 10);
|
||||
} else
|
||||
$html->arr['main'] = str_replace('[cashback]', $html->arr['cashback'], $html->arr['main']);
|
||||
?>
|
|
@ -1,32 +0,0 @@
|
|||
<?php
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
$info = '<i class="fa fa-envelope-open"></i> Вакансии';
|
||||
|
||||
$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');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -24,4 +36,3 @@ foreach ($aSection as $noactive)
|
|||
$html->pack('menu');
|
||||
|
||||
include(SEC . 'letter/' . $section . '.php');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -30,4 +42,3 @@ foreach ($aSection as $noactive)
|
|||
$html->pack('menu');
|
||||
|
||||
include(SEC . 'logs/' . $section . '.php');
|
||||
?>
|
|
@ -1,8 +1,20 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
$info = '<i class="fa fa-newspaper-o"></i> Управление новостями';
|
||||
$info = '<i class="fa-regular fa-newspaper"></i> Управление новостями';
|
||||
|
||||
$aSection = array(
|
||||
'index',
|
||||
|
@ -28,4 +40,3 @@ $html->set('news', $sql->num());
|
|||
$html->pack('menu');
|
||||
|
||||
include(SEC . 'news/' . $section . '.php');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -29,4 +41,3 @@ $html->set('active', $sql->num());
|
|||
$html->pack('menu');
|
||||
|
||||
include(SEC . 'notice/' . $section . '.php');
|
||||
?>
|
|
@ -1,8 +1,20 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
$info = '<i class="fa fa-file-text-o"></i> Управление старницами';
|
||||
$info = '<i class="fa-regular fa-file-lines"></i> Управление старницами';
|
||||
|
||||
$aSection = array(
|
||||
'index',
|
||||
|
@ -25,4 +37,3 @@ foreach ($aSection as $noactive)
|
|||
$html->pack('menu');
|
||||
|
||||
include(SEC . 'pages/' . $section . '.php');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -33,4 +45,3 @@ $html->set('end', $sql->num());
|
|||
$html->pack('menu');
|
||||
|
||||
include(SEC . 'promo/' . $section . '.php');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -74,4 +86,3 @@ $html->set('overdue', $sql->num());
|
|||
$html->pack('menu');
|
||||
|
||||
include(SEC . 'servers/' . $section . '.php');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -52,4 +64,3 @@ if ($go) {
|
|||
$html->get('index', 'sections/system');
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -30,4 +42,3 @@ $html->set('tarifs', $sql->num());
|
|||
$html->pack('menu');
|
||||
|
||||
include(SEC . 'tarifs/' . $section . '.php');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -30,4 +42,3 @@ $html->set('units', $sql->num());
|
|||
$html->pack('menu');
|
||||
|
||||
include(SEC . 'units/' . $section . '.php');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -41,4 +53,3 @@ $html->set('signup', $sql->num());
|
|||
$html->pack('menu');
|
||||
|
||||
include(SEC . 'users/' . $section . '.php');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -59,4 +71,3 @@ $html->set('hosting', $sql->num());
|
|||
$html->pack('menu');
|
||||
|
||||
include(SEC . 'web/' . $section . '.php');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -28,4 +40,3 @@ foreach ($aSection as $noactive)
|
|||
$html->pack('menu');
|
||||
|
||||
include(SEC . 'wiki/' . $section . '.php');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -41,4 +53,3 @@ if ($go) {
|
|||
$html->get('addcat', 'sections/addons');
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -346,4 +358,3 @@ if ($go) {
|
|||
|
||||
$html->get('addpl', 'sections/addons');
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -22,4 +34,3 @@ $html->get('cats', 'sections/addons');
|
|||
$html->set('list', $list);
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -54,4 +66,3 @@ if ($url['type'] == 'plugin') {
|
|||
}
|
||||
|
||||
sys::outjs(array('s' => 'ok'));
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -63,4 +75,3 @@ else {
|
|||
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -318,4 +330,3 @@ while ($data = $sql->get()) {
|
|||
$html->set('update', $update);
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -67,4 +79,3 @@ while ($plugin = $sql->get($plugins)) {
|
|||
$mcache->set($mkey, array('s' => $list), false, 15);
|
||||
|
||||
sys::outjs(array('s' => $list));
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -303,4 +315,3 @@ $html->set('config_write_del_all', $config_write_del_all);
|
|||
$html->set('files_delete_all', $files_delete_all);
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -72,4 +84,3 @@ $html->get('updmp', 'sections/addons');
|
|||
$html->set('units', $units);
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -76,4 +88,3 @@ $html->set('cur', $cfg['currency']);
|
|||
$html->set('pages', isset($html->arr['pages']) ? $html->arr['pages'] : '');
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -68,4 +80,3 @@ while ($log = $sql->get()) {
|
|||
$mcache->set($mkey, array('s' => $list), false, 15);
|
||||
|
||||
sys::outjs(array('s' => $list));
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -76,4 +88,3 @@ $html->set('cur', $cfg['currency']);
|
|||
$html->set('pages', isset($html->arr['pages']) ? $html->arr['pages'] : '');
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,8 +1,19 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
$sql->query('UPDATE `control` set `user`="-1", `status`="overdue", `time`="0", `overdue`="0" WHERE `id`="' . $id . '" LIMIT 1');
|
||||
|
||||
sys::outjs(array('s' => 'ok'));
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -50,4 +62,3 @@ else {
|
|||
$html->set('pages', isset($html->arr['pages']) ? $html->arr['pages'] : '');
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -31,4 +43,3 @@ else {
|
|||
$html->set('pages', '');
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -94,4 +106,3 @@ while ($ctrl = $sql->get($ctrls)) {
|
|||
$mcache->set($mkey, array('s' => $list), false, 15);
|
||||
|
||||
sys::outjs(array('s' => $list));
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -101,4 +113,3 @@ $html->set('overdue', $ctrl['overdue'] == 0 ? 'Установить' : date('d/m
|
|||
$html->set('block', $ctrl['block'] == 0 ? 'Заблокировать' : date('d/m/Y H:i', $ctrl['block']));
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,27 +0,0 @@
|
|||
<?php
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
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('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');
|
||||
?>
|
|
@ -1,38 +0,0 @@
|
|||
<?php
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
$sql->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'] ? '<option value="1">Доступна</option><option value="0">Недоступна</option>' : '<option value="0">Недоступна</option><option value="1">Доступна</option>';
|
||||
$html->set('status', $status);
|
||||
|
||||
$data = ['id', 'name', 'job', 'desc'];
|
||||
foreach ($data as $idata)
|
||||
$html->set($idata, $jobs[$idata]);
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,36 +0,0 @@
|
|||
<?php
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
if ($url['edit']) {
|
||||
include(SEC . 'jobs/edit.php');
|
||||
} else {
|
||||
$sql->query('SELECT * FROM `jobs` ORDER BY `id` ASC');
|
||||
while ($jobs = $sql->get()) {
|
||||
$status = [
|
||||
'1' => 'Доступна',
|
||||
'0' => 'Недоступна'
|
||||
];
|
||||
|
||||
$list .= '<tr>';
|
||||
$list .= '<td>' . $jobs['id'] . '</td>';
|
||||
$list .= '<td>' . $jobs['name'] . '</td>';
|
||||
$list .= '<td>' . $jobs['job'] . '</td>';
|
||||
$list .= '<td>' . $jobs['desc'] . '</td>';
|
||||
$list .= '<td>' . $status[$jobs['status']] . '</td>';
|
||||
$list .= '<td>' . sys::today($jobs['date']) . '</td>';
|
||||
$list .= '<td><div class="text-red" style="cursor: pointer;" onclick="del(\'' . $jobs['id'] . '\', \'confirm\')">удалить</div></td>';
|
||||
$list .= '<td><a href="[acp]jobs/edit/section/id/' . $jobs['id'] . '" class="green">Изменить</a></td>';
|
||||
$list .= '</tr>';
|
||||
}
|
||||
|
||||
if (isset($url['del'])) {
|
||||
$sql->query('DELETE FROM `jobs` WHERE `id`="' . $url['del'] . '" LIMIT 1');
|
||||
sys::outjs(array('s' => 'ok'));
|
||||
}
|
||||
|
||||
$html->get('index', 'sections/jobs');
|
||||
$html->set('list', $list);
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,60 +0,0 @@
|
|||
<?php
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
if ($id) {
|
||||
$sql->query('SELECT * FROM `jobs_app` WHERE `id`="' . $id . '" LIMIT 1');
|
||||
$jobs_app = $sql->get();
|
||||
|
||||
if ($go) {
|
||||
$aData = [];
|
||||
|
||||
$data = ['user', 'text', 'contact', 'job'];
|
||||
foreach ($data as $idata)
|
||||
$aData[$idata] = isset($_POST[$idata]) ? $_POST[$idata] : '';
|
||||
|
||||
$sql->query('UPDATE `jobs_app` set'
|
||||
. '`user`="' . $aData['user'] . '",'
|
||||
. '`text`="' . $aData['text'] . '",'
|
||||
. '`contact`="' . $aData['contact'] . '",'
|
||||
. '`job`="' . $aData['job'] . '"');
|
||||
|
||||
sys::outjs(array('s' => 'ok'));
|
||||
}
|
||||
|
||||
$html->get('request_edit', 'sections/jobs');
|
||||
$data = ['id', 'user', 'text', 'contact', 'job'];
|
||||
foreach ($data as $idata)
|
||||
$html->set($idata, $jobs_app[$idata]);
|
||||
$html->pack('main');
|
||||
} else {
|
||||
$sql->query('SELECT * FROM `jobs_app` ORDER BY `id` ASC');
|
||||
while ($jobs = $sql->get()) {
|
||||
$status = [
|
||||
'1' => 'Доступна',
|
||||
'0' => 'Недоступна'
|
||||
];
|
||||
|
||||
$list .= '<tr>';
|
||||
$list .= '<td>' . $jobs['id'] . '</td>';
|
||||
$list .= '<td><a href="[acp]users/id/' . $jobs['user'] . '">user_' . $jobs['user'] . '</a></td>';
|
||||
$list .= '<td>' . sys::strlen($jobs['text']) > 0 ? '<td>' . $jobs['text'] . '</td>' : '<td><a href="[acp]jobs/section/request/id/' . $jobs['id'] . '#text">Ответить</a></td>' . '</td>';
|
||||
$list .= '<td>' . $jobs['contact'] . '</td>';
|
||||
$list .= '<td><a href="[acp]jobs/edit/section/id/' . $jobs['job'] . '">job_' . $jobs['job'] . '</a></td>';
|
||||
$list .= '<td>' . sys::today($jobs['date']) . '</td>';
|
||||
$list .= '<td><div class="text-red" style="cursor: pointer;" onclick="del(\'' . $jobs['id'] . '\', \'confirm\')">удалить</div></td>';
|
||||
$list .= '<td><a href="[acp]jobs/section/request/id/' . $jobs['id'] . '" class="green">Изменить</a></td>';
|
||||
$list .= '</tr>';
|
||||
|
||||
if (isset($url['del'])) {
|
||||
$sql->query('DELETE FROM `jobs_app` WHERE `id`="' . $url['del'] . '" LIMIT 1');
|
||||
sys::outjs(array('s' => 'ok'));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$html->get('request', 'sections/jobs');
|
||||
$html->set('list', $list);
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -21,4 +33,3 @@ $html->get('index', 'sections/letter');
|
|||
$html->set('list', $list);
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -50,4 +62,3 @@ if ($noletter == '')
|
|||
$noletter = 'отправлено всем.';
|
||||
|
||||
sys::outjs(array('s' => $noletter));
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -28,4 +40,3 @@ $html->set('list', $list);
|
|||
$html->set('pages', isset($html->arr['pages']) ? $html->arr['pages'] : '');
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -28,4 +40,3 @@ $html->set('list', $list);
|
|||
$html->set('pages', isset($html->arr['pages']) ? $html->arr['pages'] : '');
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -28,4 +40,3 @@ $html->set('list', $list);
|
|||
$html->set('pages', isset($html->arr['pages']) ? $html->arr['pages'] : '');
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -36,4 +48,3 @@ $html->set('list', $list);
|
|||
$html->set('pages', isset($html->arr['pages']) ? $html->arr['pages'] : '');
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -28,4 +40,3 @@ $html->set('list', $list);
|
|||
$html->set('pages', isset($html->arr['pages']) ? $html->arr['pages'] : '');
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -28,4 +40,3 @@ $html->set('list', $list);
|
|||
$html->set('pages', isset($html->arr['pages']) ? $html->arr['pages'] : '');
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -71,4 +83,3 @@ while ($log = $sql->get()) {
|
|||
$mcache->set($mkey, array('s' => $list), false, 15);
|
||||
|
||||
sys::outjs(array('s' => $list));
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -75,4 +87,3 @@ while ($log = $sql->get()) {
|
|||
$mcache->set($mkey, array('s' => $list), false, 15);
|
||||
|
||||
sys::outjs(array('s' => $list));
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -33,4 +45,3 @@ if ($go) {
|
|||
$html->get('add', 'sections/news');
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,8 +1,19 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
$sql->query('DELETE FROM `news` WHERE `id`="' . $id . '" LIMIT 1');
|
||||
|
||||
sys::outjs(array('s' => 'ok'));
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -36,4 +48,3 @@ else {
|
|||
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -40,4 +52,3 @@ $html->set('full', htmlspecialchars_decode($news['full_text']));
|
|||
$html->set('tags', htmlspecialchars_decode($news['tags']));
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -57,4 +69,3 @@ while ($news = $sql->get()) {
|
|||
$mcache->set($mkey, array('s' => $list), false, 15);
|
||||
|
||||
sys::outjs(array('s' => $list));
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -27,7 +39,7 @@ if ($go) {
|
|||
|
||||
$aData['unit'] = 0;
|
||||
} else
|
||||
sys::outjs(array('e' => 'Выберете получателя уведомления'));
|
||||
sys::outjs(array('e' => 'Выберите получателя уведомления'));
|
||||
|
||||
$sql->query('INSERT INTO `notice` set '
|
||||
. '`unit`="' . $aData['unit'] . '",'
|
||||
|
@ -50,4 +62,3 @@ $html->get('add', 'sections/notice');
|
|||
$html->set('units', $units);
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,8 +1,19 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
$sql->query('DELETE FROM `notice` WHERE `id`="' . $id . '" LIMIT 1');
|
||||
|
||||
sys::outjs(array('s' => 'ok'));
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -47,4 +59,3 @@ else {
|
|||
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -47,4 +59,3 @@ else {
|
|||
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -30,7 +42,7 @@ if ($go) {
|
|||
|
||||
$aData['unit'] = 0;
|
||||
} else
|
||||
sys::outjs(array('e' => 'Выберете получателя уведомления'));
|
||||
sys::outjs(array('e' => 'Выберите получателя уведомления'));
|
||||
|
||||
$sql->query('UPDATE `notice` set '
|
||||
. '`unit`="' . $aData['unit'] . '",'
|
||||
|
@ -73,4 +85,3 @@ if ($notice['unit']) {
|
|||
$html->set('colors', str_replace('"' . $notice['color'] . '"', '"' . $notice['color'] . '" selected', '<option value="red">Красный</option><option value="green">Зеленый</option><option value="blue">Синий</option>'));
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -67,4 +79,3 @@ while ($notice = $sql->get($notices)) {
|
|||
$mcache->set($mkey, array('s' => $list), false, 15);
|
||||
|
||||
sys::outjs(array('s' => $list));
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -27,4 +39,3 @@ if ($go) {
|
|||
$html->get('add', 'sections/pages');
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -10,4 +22,3 @@ unlink(FILES . 'pages/' . $page['file']);
|
|||
$sql->query('DELETE FROM `pages` WHERE `id`="' . $id . '" LIMIT 1');
|
||||
|
||||
sys::outjs(array('s' => 'ok'));
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -32,4 +44,3 @@ else {
|
|||
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -33,4 +45,3 @@ $html->set('name', htmlspecialchars_decode($page['name']));
|
|||
$html->set('text', htmlspecialchars(file_get_contents(FILES . 'pages/' . $page['file'])));
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -80,4 +92,3 @@ $html->get('add', 'sections/promo');
|
|||
$html->set('tarifs', $tarifs);
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -6,4 +18,3 @@ $sql->query('DELETE FROM `promo` WHERE `id`="' . $id . '" LIMIT 1');
|
|||
$sql->query('DELETE FROM `promo_use` WHERE `promo`="' . $id . '" LIMIT 1');
|
||||
|
||||
sys::outjs(array('s' => 'ok'));
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -42,4 +54,3 @@ else {
|
|||
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -42,4 +54,3 @@ else {
|
|||
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -86,4 +98,3 @@ $html->set('extend', $promo['extend'] ? '<option value="1">Для продлен
|
|||
$html->set('tarif', $unit['name'] . ' / #' . $tarif['id'] . ' ' . $tarif['name'] . ' (' . strtoupper($tarif['game']) . ')');
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -61,4 +73,3 @@ while ($promo = $sql->get($promos)) {
|
|||
$mcache->set($mkey, array('s' => $list), false, 15);
|
||||
|
||||
sys::outjs(array('s' => $list));
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -33,4 +45,3 @@ $html->get('stats', 'sections/promo');
|
|||
$html->set('list', $list);
|
||||
|
||||
$html->pack('main');
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -72,4 +84,3 @@ else {
|
|||
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -72,4 +84,3 @@ else {
|
|||
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -72,4 +84,3 @@ else {
|
|||
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -72,4 +84,3 @@ else {
|
|||
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -72,4 +84,3 @@ else {
|
|||
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -72,4 +84,3 @@ else {
|
|||
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,8 +1,19 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
$sql->query('UPDATE `servers` set `user`="-1", `status`="overdue", `time`="0", `overdue`="0" WHERE `id`="' . $id . '" LIMIT 1');
|
||||
|
||||
sys::outjs(array('s' => 'ok'));
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -75,4 +87,3 @@ else {
|
|||
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -72,4 +84,3 @@ else {
|
|||
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
|
@ -1,4 +1,16 @@
|
|||
<?php
|
||||
/*
|
||||
* EngineGP (https://enginegp.ru or https://enginegp.com)
|
||||
*
|
||||
* @copyright Copyright (c) 2018-present Solovev Sergei <inbox@seansolovev.ru>
|
||||
*
|
||||
* @link https://github.com/EngineGPDev/EngineGP for the canonical source repository
|
||||
* @link https://gitforge.ru/EngineGP/EngineGP for the canonical source repository
|
||||
*
|
||||
* @license https://github.com/EngineGPDev/EngineGP/blob/main/LICENSE MIT License
|
||||
* @license https://gitforge.ru/EngineGP/EngineGP/src/branch/main/LICENSE MIT License
|
||||
*/
|
||||
|
||||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
||||
|
||||
|
@ -72,4 +84,3 @@ else {
|
|||
|
||||
$html->pack('main');
|
||||
}
|
||||
?>
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue