mirror of
https://gitlab.com/mojo42/Jirafeau.git
synced 2025-01-18 21:28:10 +01:00
No more needed to delete install.php to access admin.php
Signed-off-by: Jerome Jutteau <mojo@couak.net>
This commit is contained in:
parent
fbf2b5f1a5
commit
12b5f1c92a
13
admin.php
13
admin.php
@ -32,19 +32,8 @@ if (file_exists (JIRAFEAU_ROOT . 'install.php')
|
||||
exit;
|
||||
}
|
||||
|
||||
/* Check if the install.php script is still in the directory. */
|
||||
if (file_exists (JIRAFEAU_ROOT . 'install.php'))
|
||||
{
|
||||
require (JIRAFEAU_ROOT . 'lib/template/header.php');
|
||||
echo '<div class="error"><p>'.
|
||||
t('Installer script still present') .
|
||||
'</p></div>';
|
||||
require (JIRAFEAU_ROOT.'lib/template/footer.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
/* Disable admin interface if we have a empty admin password. */
|
||||
if (!$cfg['admin_password'])
|
||||
if (empty($cfg['admin_password']))
|
||||
{
|
||||
require (JIRAFEAU_ROOT . 'lib/template/header.php');
|
||||
echo '<div class="error"><p>'.
|
||||
|
Loading…
x
Reference in New Issue
Block a user