Jimmy Monin 58ffd500e6 Upgrade LBCAlerte to version 3.3
Add upgrade script
2016-11-26 19:25:53 +01:00

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";