Add missing header to some files

This commit is contained in:
slawkens 2023-02-15 08:06:08 +01:00
parent 8503135ce0
commit 6ae1bf5814
8 changed files with 51 additions and 5 deletions

View File

@ -1,5 +1,12 @@
<?php <?php
/**
* Exception handler
*
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2023 MyAAC
* @link https://my-aac.org
*/
require LIBS . 'SensitiveException.php'; require LIBS . 'SensitiveException.php';
/** /**

View File

@ -7,12 +7,11 @@
* @copyright 2019 MyAAC * @copyright 2019 MyAAC
* @link https://my-aac.org * @link https://my-aac.org
*/ */
defined('MYAAC') or die('Direct access not allowed!');
use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\PHPMailer;
use Twig\Loader\ArrayLoader as Twig_ArrayLoader; use Twig\Loader\ArrayLoader as Twig_ArrayLoader;
defined('MYAAC') or die('Direct access not allowed!');
function message($message, $type, $return) function message($message, $type, $return)
{ {
if(IS_CLI) { if(IS_CLI) {

View File

@ -1,4 +1,13 @@
<?php <?php
/**
* Logout from account
*
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2019 MyAAC
* @link https://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');
if(isset($account_logged) && $account_logged->isLoaded()) { if(isset($account_logged) && $account_logged->isLoaded()) {
if($hooks->trigger(HOOK_LOGOUT, ['account_id' => $account_logged->getId()])) { if($hooks->trigger(HOOK_LOGOUT, ['account_id' => $account_logged->getId()])) {

View File

@ -1,4 +1,13 @@
<?php <?php
/**
* Database migrations
*
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2019 MyAAC
* @link https://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');
// database migrations // database migrations
$tmp = ''; $tmp = '';
@ -19,4 +28,4 @@ else { // register first version
require SYSTEM . 'migrations/' . $i . '.php'; require SYSTEM . 'migrations/' . $i . '.php';
updateDatabaseConfig('database_version', $i); updateDatabaseConfig('database_version', $i);
} }
} }

View File

@ -1,4 +1,15 @@
<?php <?php
/**
* Login
*
* @package MyAAC
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2023 MyAAC
* @link https://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');
$title = 'Login';
// new login with data from form // new login with data from form
if(!$logged && isset($_POST['account_login'], $_POST['password_login'])) if(!$logged && isset($_POST['account_login'], $_POST['password_login']))

View File

@ -4,9 +4,10 @@
* *
* @package MyAAC * @package MyAAC
* @author Slawkens <slawkens@gmail.com> * @author Slawkens <slawkens@gmail.com>
* @copyright 2021 MyAAC * @copyright 2023 MyAAC
* @link https://my-aac.org * @link https://my-aac.org
*/ */
defined('MYAAC') or die('Direct access not allowed!');
if(!isset($content[0])) if(!isset($content[0]))
$content = ''; $content = '';

View File

@ -7,6 +7,7 @@
* @copyright 2021 MyAAC * @copyright 2021 MyAAC
* @link https://my-aac.org * @link https://my-aac.org
*/ */
defined('MYAAC') or die('Direct access not allowed!');
return [ return [
['GET', '', '__redirect__/news'], // redirect empty URL to news ['GET', '', '__redirect__/news'], // redirect empty URL to news

View File

@ -1,4 +1,13 @@
<?php <?php
/**
* Twig Loader
*
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2021 MyAAC
* @link https://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');
use Twig\Environment as Twig_Environment; use Twig\Environment as Twig_Environment;
use Twig\Extension\DebugExtension as Twig_DebugExtension; use Twig\Extension\DebugExtension as Twig_DebugExtension;