install-new renamed to install-dev in files
This commit is contained in:
@@ -78,7 +78,6 @@
|
||||
<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>
|
||||
|
||||
@@ -50,9 +50,9 @@ if(!headers_sent())
|
||||
if (!file_exists(dirname(__FILE__).'/settings.inc.php'))
|
||||
{
|
||||
$dir = ((is_dir($_SERVER['REQUEST_URI']) OR substr($_SERVER['REQUEST_URI'], -1) == '/') ? $_SERVER['REQUEST_URI'] : dirname($_SERVER['REQUEST_URI']).'/');
|
||||
if(!file_exists(dirname(__FILE__).'/../install-new'))
|
||||
die('Error: \'install\' directory is missing');
|
||||
header('Location: install-new/');
|
||||
if (!file_exists(dirname(__FILE__).'/../install-dev'))
|
||||
die('Error: "install" directory is missing');
|
||||
header('Location: install-dev/');
|
||||
exit;
|
||||
}
|
||||
require_once(dirname(__FILE__).'/settings.inc.php');
|
||||
|
||||
@@ -71,7 +71,7 @@ class AdminLoginControllerCore extends AdminController
|
||||
|
||||
|
||||
if (file_exists(_PS_ADMIN_DIR_.'/../install') || file_exists(_PS_ADMIN_DIR_.'/../admin')
|
||||
|| (file_exists(_PS_ADMIN_DIR_.'/../install-new') && (!defined('_PS_MODE_DEV_') || !_PS_MODE_DEV_)))
|
||||
|| (file_exists(_PS_ADMIN_DIR_.'/../install-dev') && (!defined('_PS_MODE_DEV_') || !_PS_MODE_DEV_)))
|
||||
$this->context->smarty->assign(
|
||||
array(
|
||||
'randomNb' => rand(100, 999),
|
||||
|
||||
Reference in New Issue
Block a user