// admin folder name
This commit is contained in:
@@ -48,7 +48,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<div id="login">
|
<div id="login">
|
||||||
<h1>{$shop_name}</h1>
|
<h1>{$shop_name}</h1>
|
||||||
{if !isset($wrong_folder_name)}
|
{if !isset($wrong_folder_name) && !isset($wrong_install_name)}
|
||||||
<form action="#" id="login_form" method="post">
|
<form action="#" id="login_form" method="post">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label for="email">{l s='Email address:'}</label>
|
<label for="email">{l s='Email address:'}</label>
|
||||||
@@ -101,10 +101,10 @@
|
|||||||
<div class="padding-30">
|
<div class="padding-30">
|
||||||
<p>{l s='For security reasons, you cannot connect to the Back Office until after you have:'}</p>
|
<p>{l s='For security reasons, you cannot connect to the Back Office until after you have:'}</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>{l s='deleted the /install folder'}</li>
|
{if isset($wrong_install_name) && $wrong_install_name == true}<li>{l s='deleted the /install folder'}</li>{/if}
|
||||||
<li>{l s='renamed the /admin folder (e.g. /admin%d)' sprintf=$randomNb}</li>
|
{if isset($wrong_folder_name) && $wrong_folder_name == true}<li>{l s='renamed the /admin folder (e.g. /admin%d)' sprintf=$randomNb}</li>{/if}
|
||||||
</ul>
|
</ul>
|
||||||
<p>{l s='Please then access this page by the new URL (e.g. http://www.yoursite.com/admin%d)' sprintf=$randomNb}</p>
|
{if isset($wrong_folder_name) && $wrong_folder_name == true}<p>{l s='Please then access this page by the new URL (e.g. http://www.yoursite.com/admin%d)' sprintf=$randomNb}</p>{/if}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ class AdminLoginControllerCore extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (file_exists(_PS_ADMIN_DIR_.'/../install'))
|
if (file_exists(_PS_ADMIN_DIR_.'/../install'))
|
||||||
$this->context->smarty->assign('wrong_folder_name', true);
|
$this->context->smarty->assign('wrong_install_name', true);
|
||||||
if (file_exists(_PS_ADMIN_DIR_.'/../admin'))
|
if (file_exists(_PS_ADMIN_DIR_.'/../admin'))
|
||||||
{
|
{
|
||||||
$rand = sprintf('%04d', rand(0, 9999));
|
$rand = sprintf('%04d', rand(0, 9999));
|
||||||
|
|||||||
Reference in New Issue
Block a user