Compare commits

...

73 commits

Author SHA1 Message Date
Sergei Solovev e2bf38003d
Merge pull request #97 from EngineGPDev/Update-README.md
Update README.md
2024-05-24 01:11:24 +03:00
Sergei Solovev 599be21d06
Update README.md
Signed-off-by: Sergei Solovev <31823239+SeAnSolovev@users.noreply.github.com>
2024-05-24 01:11:05 +03:00
Sergei Solovev 93bb92a9c1
Merge pull request #96 from EngineGPDev/SeAnSolovev-patch-1
Create README.md
2024-05-24 00:54:05 +03:00
Sergei Solovev e2d54fe782
Create README.md
Signed-off-by: Sergei Solovev <31823239+SeAnSolovev@users.noreply.github.com>
2024-05-24 00:53:49 +03:00
Sergei Solovev cfc85bf417
Merge pull request #95 from EngineGPDev/The-scroll-button-has-been-updated
The scroll button has been updated
2024-05-23 14:28:47 +03:00
Sergei Solovev 3fe8745043 The scroll button has been updated
The up button does not appear when the page loads
The down button moves to the end of the page or to the position where the Up button was pressed
2024-05-23 14:26:36 +03:00
Sergei Solovev 4cf1059465
Merge pull request #94 from EngineGPDev/The-console-now-contains-a-screenshot-of-the-console-screen-instead-of-game-logs
The console now contains a screenshot of the console screen instead o…
2024-05-22 20:57:50 +03:00
Sergei Solovev 3ae49f558b The console now contains a screenshot of the console screen instead of game logs 2024-05-22 20:56:27 +03:00
Sergei Solovev 0753b6b980
Merge pull request #93 from EngineGPDev/Added-support-for-running-game-servers-behind-NAT
Added support for running game servers behind NAT
2024-05-21 23:24:13 +03:00
Sergei Solovev efb01cd7ce Added support for running game servers behind NAT 2024-05-21 23:23:18 +03:00
Sergei Solovev 2671f4ae01
Merge pull request #92 from EngineGPDev/The-panel-directory-has-been-updated
The panel directory has been updated
2024-04-14 21:16:38 +03:00
Sergei Solovev 294e258444 The panel directory has been updated
Before: /var/enginegp
After: /var/www/enginegp
2024-04-14 21:15:44 +03:00
Sergei Solovev 424b5f6712
Merge pull request #91 from EngineGPDev/Fixed-the-call-to-the-global-variable-of-the-CRON-key
Fixed the call to the global variable of the CRON key
2024-04-14 04:26:30 +03:00
Sergei Solovev 3af83b37e9 Fixed the call to the global variable of the CRON key 2024-04-14 04:25:53 +03:00
Sergei Solovev fd62058f68
Merge pull request #90 from EngineGPDev/The-length-of-the-password-hash-has-been-extended-to-255-characters
The length of the password hash has been extended to 255 characters
2024-04-13 15:30:56 +03:00
Sergei Solovev 0614668a4c The length of the password hash has been extended to 255 characters 2024-04-13 15:30:21 +03:00
Sergei Solovev f88bf38c2c
Merge pull request #89 from EngineGPDev/A-grammatical-error-has-been-fixed
A grammatical error has been fixed
2024-04-13 15:11:10 +03:00
Sergei Solovev 42866ef7bb A grammatical error has been fixed 2024-04-13 15:09:00 +03:00
Sergei Solovev 80cd80ecaa
Merge pull request #88 from EngineGPDev/The-cron-key-is-placed-in-the-.env-file
The cron key is placed in the .env file
2024-04-13 14:58:23 +03:00
Sergei Solovev 6a49fc1b1b The cron key is placed in the .env file 2024-04-13 14:57:39 +03:00
Sergei Solovev e65e06d521
Merge pull request #87 from EngineGPDev/The-version-of-the-panel-in-the-admin-panel-has-been-updated
The version of the panel in the admin panel has been updated
2024-04-13 14:41:30 +03:00
Sergei Solovev 16f79162a8 The version of the panel in the admin panel has been updated 2024-04-13 14:40:08 +03:00
Sergei Solovev a13c608d29
Merge pull request #86 from EngineGPDev/update-copyright
Update copyright
2024-04-10 23:32:51 +03:00
Sergei Solovev a1a318fc4d Update copyright 2024-04-10 23:31:20 +03:00
Sergei Solovev fe685c8897
Merge pull request #85 from EngineGPDev/update-copyright
Update copyright
2024-04-10 23:25:22 +03:00
Sergei Solovev fcca4e4d72 Removed copyright in enginegp.sql 2024-04-10 23:22:40 +03:00
Sergei Solovev f4b08e1e62 Update copyright 2024-04-10 23:20:14 +03:00
Sergei Solovev 3f3b0e6821
Merge pull request #84 from EngineGPDev/Use-current-UNIX-timestamps-in-SQL-dump
Use current UNIX-timestamps in SQL-dump
2024-04-09 14:59:35 +03:00
Roman Kelesidis 3f77682c0b Use current UNIX-timestamps in SQL-dump 2024-04-09 18:55:37 +07:00
Sergei Solovev 327c4208e2
Merge pull request #83 from EngineGPDev/Removed-extra-styles-for-fa-vk-icon
Removed extra-styles for fa-vk icon
2024-04-09 14:49:29 +03:00
Roman Kelesidis fbb1b335d2 Removed extra-styles for fa-vk icon 2024-04-09 18:47:54 +07:00
Sergei Solovev a4e655f571
Merge pull request #82 from EngineGPDev/Added-integration-with-Dependabot
Added integration with Dependabot
2024-04-09 14:36:44 +03:00
Roman Kelesidis 7c2e921f86 Added integration with Dependabot 2024-04-09 18:25:53 +07:00
Sergei Solovev 03b2c6a5db
Merge pull request #81 from EngineGPDev/Added-checking-memcache-extension-in-composer.json
Added checking memcache extension in composer.json
2024-04-09 13:46:25 +03:00
Roman Kelesidis 378f8603c8 Added checking memcache extension in composer.json 2024-04-09 17:44:34 +07:00
Sergei Solovev d58387a5dc
Merge pull request #80 from EngineGPDev/Added-.log-extension-in-gitignore
Added .log extension in gitignore
2024-04-09 13:41:45 +03:00
Roman Kelesidis 8388dcb82f Added .log extension in gitignore 2024-04-09 17:39:59 +07:00
Sergei Solovev 3b3cf279a7
Merge pull request #79 from EngineGPDev/develop
Upgrade to 3.7.1.4
2024-04-09 12:17:33 +03:00
Sergei Solovev 8a2727faca Do not display errors on the screen if the panel is used in production
Task:
https://bugs.enginegp.com/view.php?id=41
2024-04-06 00:40:26 +03:00
Sergei Solovev 1b1ad0d68e Delete the broken mobile version of "megp"
Task:
https://bugs.enginegp.com/view.php?id=40
2024-04-04 01:15:24 +03:00
Sergei Solovev b9c11c2447 Update enginegp.sql 2024-03-30 13:09:42 +03:00
Sergei Solovev fd6b5d5ed6 MD5 installed in the panel by default is vulnerable to password guessing
Task:
https://bugs.enginegp.com/view.php?id=30
2024-03-30 12:56:00 +03:00
Sergei Solovev 6db267037c Delete the vacancy module
Task:
https://bugs.enginegp.com/view.php?id=39
2024-03-28 20:33:17 +03:00
Sergei Solovev bb7099667f Updating according to the syntax of the panel 2024-03-22 00:03:05 +03:00
Sergei Solovev a854de0948 If the user has not logged into the charts section of his server, then monitoring gives an error
Task:
https://bugs.enginegp.com/view.php?id=38
2024-03-21 22:32:37 +03:00
Sergei Solovev 67b23adb28 Changed the use of cookies in the session
Task:
https://bugs.enginegp.com/view.php?id=32
2024-03-20 04:13:41 +03:00
Sergei Solovev 390cb600f4 Renamed .env in .env.example 2024-03-18 00:07:17 +03:00
Sergei Solovev d26088ab28 Added support .env files
Basic settings have been moved to .env
2024-03-15 04:47:14 +03:00
Sergei Solovev a8bb43a2cd Due to the remote cdn, server maps are not loaded in many countries
http://cdn.enginegp.ru / not available in many countries

Task:
https://bugs.enginegp.com/view.php?id=29
2024-03-14 21:15:56 +03:00
Sergei Solovev 0e1ac645b2 Updated Font Awesome up to 6.5.1 2024-03-14 09:09:53 +03:00
Sergei Solovev 4b606d1132 Deleting residual chat files 2024-03-14 07:08:29 +03:00
Sergei Solovev 06b41f9acd Lack of support for the letter "ё" in Cyrillic
Task:
https://bugs.enginegp.com/view.php?id=28
2024-03-14 06:56:13 +03:00
Sergei Solovev 11d3af2954 The chat module has been removed 2024-03-14 06:46:07 +03:00
Sergei Solovev 2333543727 Update all.html 2024-03-13 03:30:20 +03:00
Sergei Solovev 646f251baf Graphics error
Whoops\Exception\ErrorException thrown with message "Constant AXIS_FORMAT_DEFAULT already defined"

Tasks:
https://bugs.enginegp.com/view.php?id=13
https://bugs.enginegp.com/view.php?id=20
https://bugs.enginegp.com/view.php?id=21
https://bugs.enginegp.com/view.php?id=22
https://bugs.enginegp.com/view.php?id=23
https://bugs.enginegp.com/view.php?id=24
https://bugs.enginegp.com/view.php?id=25
https://bugs.enginegp.com/view.php?id=26
https://bugs.enginegp.com/view.php?id=27
2024-03-13 03:07:50 +03:00
Sergei Solovev 1aa2defdab Updated jQuery Form Plugin up to 4.3.0 2024-03-13 00:36:14 +03:00
Sergei Solovev 712ff9cc95 Socket reading error if the server is turned off
[2024-03-11T03:50:06.627273+03:00] EngineGP.ERROR: xPaw\SourceQuery\Exception\InvalidPacketException: Failed to read any data from socket in file /var/www/enginegp/vendor/xpaw/php-source-query-class/SourceQuery/BaseSocket.php on line 50

Task:
https://bugs.enginegp.com/view.php?id=19
2024-03-13 00:27:11 +03:00
Sergei Solovev b35ad053d4 Incorrect location determination by IP
SxGeoCity has been updated to version 2024.02.29

Task:
https://bugs.enginegp.com/view.php?id=18
2024-03-12 22:05:25 +03:00
Sergei Solovev b582882508 Fixed erroneous forced use of php 7.4 in cron
Task:
https://bugs.enginegp.com/view.php?id=17
2024-03-11 23:56:50 +03:00
Sergei Solovev 4d7a5b8317 Updated jQuery up to 1.12.4 2024-03-11 23:13:38 +03:00
Sergei Solovev 6f4a645dfd Incorrect launch parameters Counter-Strike: Source v34
Game.dll loaded for "Counter-Strike: Source"
----------
BufferFix loaded!
----------
maxplayers set to 32
exec autoexec.cfg: file size larger than 20MB.
Unknown command "fps_egp"
maxplayers set to 32
Unknown command "port"

Task:
https://bugs.enginegp.com/view.php?id=16
2024-03-11 22:53:40 +03:00
Sergei Solovev be1c660e08 The Counter-Strike: GO server is not starting
Whoops\Exception\ErrorException thrown with message "Undefined index: tv"

Stacktrace:
# 5 Whoops\Exception\ErrorException in /var/www/enginegp/system/library/games/csgo/action.php:76
# 4 Whoops\Run:handleError in /var/www/enginegp/system/library/games/csgo/action.php:76
# 3 action:start in /var/www/enginegp/system/sections/servers/action.php:31
# 2 include in /var/www/enginegp/system/engine/servers.php:82
# 1 include in /var/www/enginegp/system/distributor.php:89
# 0 include in /var/www/enginegp/index.php:62

Task:
https://bugs.enginegp.com/view.php?id=11
2024-03-11 03:48:56 +03:00
Sergei Solovev b50c33d090 The Counter-Strike: Source server is not starting
Whoops\Exception\ErrorException thrown with message "Undefined index: tv"

Stacktrace:
# 5 Whoops\Exception\ErrorException in /var/www/enginegp/system/library/games/css/action.php:74
# 4 Whoops\Run:handleError in /var/www/enginegp/system/library/games/css/action.php:74
# 3 action:start in /var/www/enginegp/system/sections/servers/action.php:31
# 2 include in /var/www/enginegp/system/engine/servers.php:82
# 1 include in /var/www/enginegp/system/distributor.php:89
# 0 include in /var/www/enginegp/index.php:62

Task:
https://bugs.enginegp.com/view.php?id=1
2024-03-11 03:44:34 +03:00
Sergei Solovev 35bfd081dc The Counter-Strike: Source v34 server is not starting
Whoops\Exception\ErrorException thrown with message "Undefined index: tv"

Stacktrace:
# 5 Whoops\Exception\ErrorException in /var/www/enginegp/system/library/games/cssold/action.php:74
# 4 Whoops\Run:handleError in /var/www/enginegp/system/library/games/cssold/action.php:74
# 3 action:start in /var/www/enginegp/system/sections/servers/action.php:31
# 2 include in /var/www/enginegp/system/engine/servers.php:82
# 1 include in /var/www/enginegp/system/distributor.php:89
# 0 include in /var/www/enginegp/index.php:62

Task:
https://bugs.enginegp.com/view.php?id=2
2024-03-11 03:26:13 +03:00
Sergei Solovev ac918ce26c Error while executing the cron scan_control task
[2024-03-10T23:14:45.104530+03:00] EngineGP.ERROR: Whoops\Exception\ErrorException: Array and string offset access syntax with curly braces is deprecated in file /var/www/enginegp/system/library/control/control.php on line 424
Stack trace:
  1. Whoops\Exception\ErrorException->() /var/www/enginegp/system/library/control/control.php:424
  2. Whoops\Run->handleError() /var/www/enginegp/system/library/cron/scan_control.php:12
  3. include() /var/www/enginegp/system/library/cron/scan_control.php:12
  4. scan_control->__construct() /var/www/enginegp/system/library/cron.php:87
  5. include() /var/www/enginegp/cron.php:48
 [] []

Task:
https://bugs.enginegp.com/view.php?id=7
2024-03-11 02:54:50 +03:00
Sergei Solovev 56de12fc79 Closing tags for PSR-12 have been removed
Continuation of the replacements missed last time
2024-03-11 02:31:07 +03:00
Sergei Solovev 91c2b73c16 Closing tags for PSR-12 have been removed
Unpredictable result
2024-03-11 00:54:27 +03:00
Sergei Solovev 35ac6f781e Error when executing the cron scan_servers file task server_delete.php
Has the closing tag been removed, because of which the values of the variables were not passed ?>

Task:
https://bugs.enginegp.com/view.php?id=9
2024-03-11 00:36:10 +03:00
Sergei Solovev 0af7adf841 Error while executing the cron scan_servers task
[2024-03-10T23:00:05.436595+03:00] EngineGP.ERROR: Whoops\Exception\ErrorException: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in file /var/www/enginegp/system/library/cron/scan_servers.php on line 101
Stack trace:
  1. Whoops\Exception\ErrorException->() /var/www/enginegp/system/library/cron/scan_servers.php:101
  2. Whoops\Run->handleError() /var/www/enginegp/system/library/cron.php:85
  3. include() /var/www/enginegp/system/library/cron.php:85
  4. include() /var/www/enginegp/cron.php:48
 [] []

Task:
https://bugs.enginegp.com/view.php?id=5
2024-03-10 23:59:02 +03:00
Sergei Solovev 6aded056ee Fixed Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Occurs due to the uncommented values in .htaccess, which work in Apache mod_php mode
2024-03-10 23:36:48 +03:00
Sergei Solovev e7d2753474 Added cron error output to the file 2024-03-10 23:03:58 +03:00
Sergei Solovev b3fa912c05 Fixed cron key verification
Previously, you could specify any key and it was not checked

https://bugs.enginegp.com/view.php?id=4
2024-03-10 22:16:08 +03:00
Sergei Solovev 03a210f658 Update LICENSE 2024-03-10 12:46:16 +03:00
1584 changed files with 34650 additions and 54905 deletions

19
.env.example Normal file
View 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
View 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
View file

@ -1,4 +1,6 @@
.idea
.vscode
.env
*.log
vendor
composer.phar

View file

@ -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

View file

@ -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>

View file

@ -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>

View file

@ -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
View 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

View file

@ -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'];
?>

View file

@ -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
View file

@ -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"
}

View file

@ -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');
?>

View file

@ -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`

View file

@ -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>

View file

@ -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'];
?>

View file

@ -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>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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);
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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']);
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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'));
?>

View file

@ -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');
}
?>

View file

@ -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');
?>

View file

@ -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));
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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));
?>

View file

@ -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');
?>

View file

@ -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'));
?>

View file

@ -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');
}
?>

View file

@ -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');
}
?>

View file

@ -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));
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
}
?>

View file

@ -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');
}
?>

View file

@ -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');
?>

View file

@ -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));
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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));
?>

View file

@ -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));
?>

View file

@ -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');
?>

View file

@ -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'));
?>

View file

@ -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');
}
?>

View file

@ -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');
?>

View file

@ -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));
?>

View file

@ -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');
?>

View file

@ -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'));
?>

View file

@ -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');
}
?>

View file

@ -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');
}
?>

View file

@ -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');
?>

View file

@ -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));
?>

View file

@ -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');
?>

View file

@ -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'));
?>

View file

@ -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');
}
?>

View file

@ -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');
?>

View file

@ -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');
?>

View file

@ -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'));
?>

View file

@ -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');
}
?>

View file

@ -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');
}
?>

View file

@ -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');
?>

View file

@ -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));
?>

View file

@ -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');
?>

View file

@ -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');
}
?>

View file

@ -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');
}
?>

View file

@ -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');
}
?>

View file

@ -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');
}
?>

View file

@ -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');
}
?>

View file

@ -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');
}
?>

View file

@ -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'));
?>

View file

@ -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');
}
?>

View file

@ -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');
}
?>

View file

@ -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