Redirect to login page when isntalled
This commit is contained in:
parent
462135365f
commit
a65e3724f4
1 changed files with 5 additions and 0 deletions
|
@ -8,6 +8,11 @@
|
||||||
|
|
||||||
use wishthis\{Page, Database};
|
use wishthis\{Page, Database};
|
||||||
|
|
||||||
|
if ($database->getOption('isInstalled')) {
|
||||||
|
header('Location: /?page=login');
|
||||||
|
die();
|
||||||
|
}
|
||||||
|
|
||||||
$page = new page(__FILE__, 'Install');
|
$page = new page(__FILE__, 'Install');
|
||||||
$page->header();
|
$page->header();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue