From 6ae1bf58147eee6427b6612afa60864c5315f3b3 Mon Sep 17 00:00:00 2001 From: slawkens Date: Wed, 15 Feb 2023 08:06:08 +0100 Subject: [PATCH] Add missing header to some files --- system/exception.php | 9 ++++++++- system/functions.php | 3 +-- system/logout.php | 9 +++++++++ system/migrate.php | 11 ++++++++++- system/pages/account/login.php | 11 +++++++++++ system/router.php | 3 ++- system/routes.php | 1 + system/twig.php | 9 +++++++++ 8 files changed, 51 insertions(+), 5 deletions(-) diff --git a/system/exception.php b/system/exception.php index 3ad1fefe..e46f0d54 100644 --- a/system/exception.php +++ b/system/exception.php @@ -1,5 +1,12 @@ + * @copyright 2023 MyAAC + * @link https://my-aac.org + */ require LIBS . 'SensitiveException.php'; /** diff --git a/system/functions.php b/system/functions.php index db3bfd8f..a2c7d202 100644 --- a/system/functions.php +++ b/system/functions.php @@ -7,12 +7,11 @@ * @copyright 2019 MyAAC * @link https://my-aac.org */ +defined('MYAAC') or die('Direct access not allowed!'); use PHPMailer\PHPMailer\PHPMailer; use Twig\Loader\ArrayLoader as Twig_ArrayLoader; -defined('MYAAC') or die('Direct access not allowed!'); - function message($message, $type, $return) { if(IS_CLI) { diff --git a/system/logout.php b/system/logout.php index a7f5d8fd..af443aa3 100644 --- a/system/logout.php +++ b/system/logout.php @@ -1,4 +1,13 @@ + * @copyright 2019 MyAAC + * @link https://my-aac.org + */ +defined('MYAAC') or die('Direct access not allowed!'); if(isset($account_logged) && $account_logged->isLoaded()) { if($hooks->trigger(HOOK_LOGOUT, ['account_id' => $account_logged->getId()])) { diff --git a/system/migrate.php b/system/migrate.php index 46daeef6..4eb7bf7a 100644 --- a/system/migrate.php +++ b/system/migrate.php @@ -1,4 +1,13 @@ + * @copyright 2019 MyAAC + * @link https://my-aac.org + */ +defined('MYAAC') or die('Direct access not allowed!'); // database migrations $tmp = ''; @@ -19,4 +28,4 @@ else { // register first version require SYSTEM . 'migrations/' . $i . '.php'; updateDatabaseConfig('database_version', $i); } -} \ No newline at end of file +} diff --git a/system/pages/account/login.php b/system/pages/account/login.php index a62aa827..557aeb86 100644 --- a/system/pages/account/login.php +++ b/system/pages/account/login.php @@ -1,4 +1,15 @@ + * @author Slawkens + * @copyright 2023 MyAAC + * @link https://my-aac.org + */ +defined('MYAAC') or die('Direct access not allowed!'); +$title = 'Login'; // new login with data from form if(!$logged && isset($_POST['account_login'], $_POST['password_login'])) diff --git a/system/router.php b/system/router.php index 596121f5..4f3b6321 100644 --- a/system/router.php +++ b/system/router.php @@ -4,9 +4,10 @@ * * @package MyAAC * @author Slawkens - * @copyright 2021 MyAAC + * @copyright 2023 MyAAC * @link https://my-aac.org */ +defined('MYAAC') or die('Direct access not allowed!'); if(!isset($content[0])) $content = ''; diff --git a/system/routes.php b/system/routes.php index a7ddd295..c6dfa780 100644 --- a/system/routes.php +++ b/system/routes.php @@ -7,6 +7,7 @@ * @copyright 2021 MyAAC * @link https://my-aac.org */ +defined('MYAAC') or die('Direct access not allowed!'); return [ ['GET', '', '__redirect__/news'], // redirect empty URL to news diff --git a/system/twig.php b/system/twig.php index 5b912875..87d2ad6f 100644 --- a/system/twig.php +++ b/system/twig.php @@ -1,4 +1,13 @@ + * @copyright 2021 MyAAC + * @link https://my-aac.org + */ +defined('MYAAC') or die('Direct access not allowed!'); use Twig\Environment as Twig_Environment; use Twig\Extension\DebugExtension as Twig_DebugExtension;