Добавляем все файлы

This commit is contained in:
2025-11-06 19:41:55 +02:00
parent 235d6a3a18
commit 2e5aaec307
218 changed files with 79015 additions and 0 deletions

27
main_plugin/auth/plug.php Executable file
View File

@@ -0,0 +1,27 @@
<?php
/**
* @file plug.php
* @brief Подключает плагин авторизации, подставляет языковые строки и выводит HTML-код формы авторизации
*/
global $path, $_SESSION;
/** @brief Загружает языковой массив для плагина авторизации */
$lang = include $path . 'main_plugin/auth/lang.php';
/** @brief Определяет текущий язык пользователя, по умолчанию 'en' */
$lng = $_SESSION['lng'] ?? 'en';
include_once $path . 'main_plugin/auth/func.auth.php';
/** @brief Загружает HTML-шаблон формы авторизации */
$Html = file_get_contents($path . 'main_plugin/auth/auth.php');
foreach ($lang[$lng] as $key => $value) {
$Html = str_replace('{{' . $key . '}}', $value, $Html);
}
echo $Html;
echo '<link rel="stylesheet" type="text/css" href="/main_plugin/auth/auth.css">';
echo '<script type="text/javascript" src="/main_plugin/auth/lang.js.php?lng=' . $lng . '"></script>';
?>