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 />
|
<p><span>{l s='For security reasons, you cannot connect to the Back Office until after you have:'}<br /><br />
|
||||||
<ul>
|
<ul>
|
||||||
<li>{l s='delete the /install folder'}</li>
|
<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>
|
<li>{l s='renamed the /admin folder (eg.) /admin'}{$randomNb}</li>
|
||||||
</ul>
|
</ul>
|
||||||
<br />{l s='Please then access this page by the new url (eg.) http://www.domain.tld/admin'}{$randomNb}</span></p>
|
<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'))
|
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']).'/');
|
$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'))
|
if (!file_exists(dirname(__FILE__).'/../install-dev'))
|
||||||
die('Error: \'install\' directory is missing');
|
die('Error: "install" directory is missing');
|
||||||
header('Location: install-new/');
|
header('Location: install-dev/');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
require_once(dirname(__FILE__).'/settings.inc.php');
|
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')
|
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(
|
$this->context->smarty->assign(
|
||||||
array(
|
array(
|
||||||
'randomNb' => rand(100, 999),
|
'randomNb' => rand(100, 999),
|
||||||
|
|||||||
Reference in New Issue
Block a user