Don't allow calling the install page after the install had been processed
This commit is contained in:
parent
b9bd7b4f10
commit
28f7c72cc7
1 changed files with 12 additions and 0 deletions
|
@ -43,6 +43,10 @@ class Install extends BaseModule
|
|||
{
|
||||
$a = self::getApp();
|
||||
|
||||
if (!$a->getMode()->isInstall()) {
|
||||
Core\System::httpExit(403);
|
||||
}
|
||||
|
||||
// route: install/testrwrite
|
||||
// $baseurl/install/testrwrite to test if rewrite in .htaccess is working
|
||||
if ($a->getArgumentValue(1, '') == 'testrewrite') {
|
||||
|
@ -62,6 +66,10 @@ class Install extends BaseModule
|
|||
{
|
||||
$a = self::getApp();
|
||||
|
||||
if (!$a->getMode()->isInstall()) {
|
||||
Core\System::httpExit(403);
|
||||
}
|
||||
|
||||
switch (self::$currentWizardStep) {
|
||||
case self::SYSTEM_CHECK:
|
||||
case self::DATABASE_CONFIG:
|
||||
|
@ -113,6 +121,10 @@ class Install extends BaseModule
|
|||
{
|
||||
$a = self::getApp();
|
||||
|
||||
if (!$a->getMode()->isInstall()) {
|
||||
Core\System::httpExit(403);
|
||||
}
|
||||
|
||||
$output = '';
|
||||
|
||||
$install_title = L10n::t('Friendica Communications Server - Setup');
|
||||
|
|
Loading…
Reference in a new issue