No more needed to delete install.php to access admin.php

Signed-off-by: Jerome Jutteau <mojo@couak.net>
This commit is contained in:
Zertrin 2014-05-10 15:07:09 +02:00 committed by Jerome Jutteau
parent fbf2b5f1a5
commit 12b5f1c92a

View File

@ -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>'.