// added check for install-new directory
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11739 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -78,6 +78,7 @@
|
||||
<p><span>{l s='For security reasons, you cannot connect to the Back Office until after you have:'}<br /><br />
|
||||
<ul>
|
||||
<li>{l s='delete the /install folder'}</li>
|
||||
<li>{l s='delete the /install-new folder'}</li>
|
||||
<li>{l s='renamed the /admin folder (eg.) /admin'}{$randomNb}</li>
|
||||
</ul>
|
||||
<br />{l s='Please then access this page by the new url (eg.) http://www.domain.tld/admin'}{$randomNb}</span></p>
|
||||
@@ -100,4 +101,4 @@
|
||||
</form>
|
||||
</div>
|
||||
<h2><a href="http://www.prestashop.com">© Copyright by PrestaShop. all rights reserved.</a></h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -70,7 +70,9 @@ class AdminLoginControllerCore extends AdminController
|
||||
|
||||
|
||||
|
||||
if(file_exists(_PS_ADMIN_DIR_.'/../install') OR file_exists(_PS_ADMIN_DIR_.'/../admin'))
|
||||
if(file_exists(_PS_ADMIN_DIR_.'/../install') || file_exists(_PS_ADMIN_DIR_.'/../admin')
|
||||
|| file_exists(_PS_ADMIN_DIR_.'/../install-new')
|
||||
)
|
||||
$this->context->smarty->assign(
|
||||
array(
|
||||
'randomNb' => rand(100, 999),
|
||||
@@ -204,4 +206,4 @@ class AdminLoginControllerCore extends AdminController
|
||||
else if (Tools::isSubmit('ajax'))
|
||||
die(Tools::jsonEncode(array('hasErrors' => true, 'errors' => $this->errors)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user