mirror of
https://github.com/YunoHost-Apps/cheky_ynh.git
synced 2024-09-03 18:16:00 +02:00
11 lines
381 B
PHP
11 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";
|