Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 8.46 KB | None | 0 0
  1. {**
  2.  * 2007-2018 PrestaShop
  3.  *
  4.  * NOTICE OF LICENSE
  5.  *
  6.  * This source file is subject to the Open Software License (OSL 3.0)
  7.  * that is bundled with this package in the file LICENSE.txt.
  8.  * It is also available through the world-wide-web at this URL:
  9.  * https://opensource.org/licenses/OSL-3.0
  10.  * If you did not receive a copy of the license and are unable to
  11.  * obtain it through the world-wide-web, please send an email
  12.  * to license@prestashop.com so we can send you a copy immediately.
  13.  *
  14.  * DISCLAIMER
  15.  *
  16.  * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
  17.  * versions in the future. If you wish to customize PrestaShop for your
  18.  * needs please refer to http://www.prestashop.com for more information.
  19.  *
  20.  * @author    PrestaShop SA <contact@prestashop.com>
  21.  * @copyright 2007-2018 PrestaShop SA
  22.  * @license   https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
  23.  * International Registered Trademark & Property of PrestaShop SA
  24.  *}
  25. <div id="login-panel">
  26.     <div id="login-header">
  27.         <h1 class="text-center">
  28.             <img id="logo" src="{$img_dir}prestashop@2x.png" width="123px" height="24px" alt="PrestaShop" />
  29.         </h1>
  30.         <div class="text-center">{$ps_version}</div>
  31.         <div id="error" class="hide alert alert-danger">
  32.         {if isset($errors)}
  33.             <h4>
  34.                 {if isset($nbErrors) && $nbErrors > 1}
  35.                     {l s='There are %d errors.' sprintf=[$nbErrors] d='Admin.Notifications.Error'}
  36.                 {else}
  37.                     {l s='There is %d error.' sprintf=[$nbErrors] d='Admin.Notifications.Error'}
  38.                 {/if}
  39.             </h4>
  40.             <ol>
  41.                 {foreach from=$errors item="error"}
  42.                 <li>{$error}</li>
  43.                 {/foreach}
  44.             </ol>
  45.         {/if}
  46.         </div>
  47.  
  48.         {if isset($warningSslMessage)}
  49.         <div class="alert alert-warning">{$warningSslMessage}</div>
  50.         {/if}
  51.     </div>
  52.     <div id="shop-img"><img src="{$img_dir}preston-login@2x.png" alt="{$shop_name}" width="69.5px" height="118.5px" /></div>
  53.     <div class="flip-container">
  54.         <div class="flipper">
  55.             <div class="front front_login panel" {if isset($reset_token) && isset($id_employee)}style="display:none;"{/if}>
  56.                 <h4 id="shop_name">{$shop_name}</h4>
  57.                 {if !isset($wrong_folder_name) && !isset($wrong_install_name)}
  58.                 <form action="#" id="login_form" method="post">
  59.                     <input type="hidden" name="redirect" id="redirect" value="{$redirect}"/>
  60.                     <div class="form-group">
  61.                         <label class="control-label" for="email">{l s='Email address' d='Admin.Global'}</label>
  62.                         <input name="email" type="email" id="email" class="form-control" value="{if isset($email)}{$email|escape:'html':'UTF-8'}{/if}" autofocus="autofocus" tabindex="1" placeholder="&#xf0e0 test@example.com" />
  63.                     </div>
  64.                     <div class="form-group">
  65.                         <label class="control-label" for="passwd">
  66.                             {l s='Password' d='Admin.Global'}
  67.                         </label>
  68.                         <input name="passwd" type="password" id="passwd" class="form-control" value="{if isset($password)}{$password|escape:'html':'UTF-8'}{/if}" tabindex="2" placeholder="&#xf084 {l s='Password'}" />
  69.                     </div>
  70.                     <div class="form-group row-padding-top">
  71.                         <button id="submit_login" name="submitLogin" type="submit" tabindex="4" class="btn btn-primary btn-lg btn-block ladda-button" data-style="slide-up" data-spinner-color="white" >
  72.                             <span class="ladda-label">
  73.                                 {l s='Log in' d='Admin.Login.Feature'}
  74.                             </span>
  75.                         </button>
  76.                     </div>
  77.                     <div class="form-group">
  78.                         <div id="remind-me" class="checkbox pull-left">
  79.                             <label for="stay_logged_in">
  80.                                 <input name="stay_logged_in" type="checkbox" id="stay_logged_in" value="1"  tabindex="3"/>
  81.                                 {l s='Stay logged in' d='Admin.Login.Feature'}
  82.                             </label>
  83.                         </div>
  84.                         <a href="#" class="show-forgot-password pull-right" >
  85.                             {l s='I forgot my password' d='Admin.Login.Feature'}
  86.                         </a>
  87.                     </div>
  88.                 </form>
  89.             </div>
  90.             {if isset($reset_token) && isset($id_employee)}
  91.             <div class="front front_reset panel">
  92.                 <form action="#" id="reset_password_form" method="post">
  93.                     <h4 id="reset_name">{l s='Reset your password' d='Admin.Login.Feature'}</h4>
  94.                     <div class="form-group">
  95.                         <label class="control-label" for="reset_passwd">
  96.                             {l s='New password' d='Admin.Login.Feature'}
  97.                         </label>
  98.                         <input name="reset_passwd" type="password" id="reset_passwd" class="form-control" value="" tabindex="1" placeholder="&#xf084 {l s='Password' d='Admin.Global'}" />
  99.                     </div>
  100.                     <div class="form-group">
  101.                         <label class="control-label" for="reset_confirm">
  102.                             {l s='Confirm new password' d='Admin.Login.Feature'}
  103.                         </label>
  104.                         <input name="reset_confirm" type="password" id="reset_confirm" class="form-control" value="" tabindex="2" placeholder="&#xf084 {l s='Confirm password' d='Admin.Login.Feature'}" />
  105.                     </div>
  106.                     <div class="panel-footer">
  107.                         <button class="btn btn-primary btn-default pull-right" name="submitLogin" type="submit" tabindex="3">
  108.                             <i class="icon-ok text-success"></i>
  109.                             {l s='Reset password' d='Admin.Login.Feature'}
  110.                         </button>
  111.                     </div>
  112.                     <input type="hidden" name="reset_token" id="reset_token" value="{$reset_token|escape:'html':'UTF-8'}" />
  113.                     <input type="hidden" name="id_employee" id="id_employee" value="{$id_employee|escape:'html':'UTF-8'}" />
  114.                     <input type="hidden" name="reset_email" id="reset_email" value="{$reset_email|escape:'html':'UTF-8'}" />
  115.                 </form>
  116.             </div>
  117.             <div class="back back_reset">
  118.                 <h4 id="reset_confirm_name">{l s='Your password has been successfully changed.'}<br/><br/>{l s='You will be redirected to the login page in a few seconds.' d='Admin.Login.Notification'}</h4>
  119.             </div>
  120.             {/if}
  121.  
  122.             <div class="back panel">
  123.                 <h4 id="forgot_name">{l s='Forgot your password?' d='Admin.Global'}</h4>
  124.                 <form action="#" id="forgot_password_form" method="post">
  125.                     <div class="form-group">
  126.                         <label class="control-label" for="email_forgot">
  127.                             {l s='Email address' d='Admin.Global'}
  128.                         </label>
  129.                         <input type="text" name="email_forgot" id="email_forgot" class="form-control" autofocus="autofocus" tabindex="5" placeholder="&#xf0e0 test@example.com" />
  130.                     </div>
  131.                     <div class="panel-footer">
  132.                         <button type="button" href="#" class="btn btn-default show-login-form" tabindex="7">
  133.                             <i class="icon-caret-left"></i>
  134.                             {l s='Cancel' d='Admin.Actions'}
  135.                         </button>
  136.                         <button class="btn btn-primary btn-default pull-right" name="submitLogin" type="submit" tabindex="6">
  137.                             <i class="icon-ok text-success"></i>
  138.                             {l s='Send reset link' d='Admin.Login.Feature'}
  139.                         </button>
  140.                     </div>
  141.                 </form>
  142.             </div>
  143.  
  144.             <div class="front forgot_confirm" style="display: none">
  145.                 <h4 id="forgot_confirm_name">{l s='Please, check your mailbox.' d='Admin.Login.Notification'}<br/><br/>{l s='A link to reset your password has been sent to you.' d='Admin.Login.Notification'}</h4>
  146.             </div>
  147.         </div>
  148.         {else}
  149.         <div class="alert alert-danger">
  150.             <p>{l s='For security reasons, you cannot connect to the back office until you have:' d='Admin.Login.Notification'}</p>
  151.             <ul>
  152.                 {if isset($wrong_install_name) && $wrong_install_name == true}
  153.                     <li>{l s='deleted the /install folder' d='Admin.Login.Notification'}</li>
  154.                 {/if}
  155.                 {if isset($wrong_folder_name) && $wrong_folder_name == true}
  156.                     <li>{l s='renamed the /admin folder (e.g. %s)' sprintf=[$randomNb] d='Admin.Login.Notification'}</li>
  157.                 {/if}
  158.             </ul>
  159.             <p>
  160.                 <a href="{$adminUrl|escape:'html':'UTF-8'}">
  161.                     {l s='Please then access this page by the new URL (e.g. %s)' sprintf=[$adminUrl] d='Admin.Login.Notification'}
  162.                 </a>
  163.             </p>
  164.         </div>
  165.         {/if}
  166.     </div>
  167.     {hook h="displayAdminLogin"}
  168.     <div id="login-footer">
  169.         <p class="text-center text-muted">
  170.             <a href="http://www.prestashop.com/" onclick="return !window.open(this.href);">
  171.                 &copy; PrestaShop&#8482; 2007-{$smarty.now|date_format:"%Y"} - All rights reserved
  172.             </a>
  173.         </p>
  174.         <p class="text-center">
  175.             <a class="link-social link-twitter _blank" href="https://twitter.com/PrestaShop" title="Twitter">
  176.                 <i class="icon-twitter"></i>
  177.             </a>
  178.             <a class="link-social link-facebook _blank" href="https://www.facebook.com/prestashop" title="Facebook">
  179.                 <i class="icon-facebook"></i>
  180.             </a>
  181.             <a class="link-social link-github _blank" href="https://www.prestashop.com/github" title="Github">
  182.                 <i class="icon-github"></i>
  183.             </a>
  184.             <a class="link-social link-google _blank" href="https://plus.google.com/+prestashop/" title="Google">
  185.                 <i class="icon-google-plus"></i>
  186.             </a>
  187.         </p>
  188.     </div>
  189. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement