mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-06-07 13:05:30 +02:00
12 lines
381 B
PHP
12 lines
381 B
PHP
<?php
|
|
if ($action != "check") {
|
|
$storageType = $config->get("storage", "type", "files");
|
|
if ($storageType == "db") {
|
|
$storage = new \App\Storage\Db\Alert($dbConnection, $userAuthed);
|
|
} else {
|
|
$storage = new \App\Storage\File\Alert(DOCUMENT_ROOT."/var/configs/".$auth->getUsername().".csv");
|
|
}
|
|
}
|
|
|
|
require DOCUMENT_ROOT."/app/data/notifications.php";
|