mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-07-06 03:40:48 +02:00
Initial commit
Functional, without SSO
This commit is contained in:
9
sources/app/mail/init.php
Normal file
9
sources/app/mail/init.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?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");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user