Advertisement
Guest User

login_popup.php

a guest
May 27th, 2010
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.81 KB | None | 0 0
  1. <?php
  2. /*================================================================+\
  3. || # PHPRetro - An extendable virtual hotel site and management
  4. |+==================================================================
  5. || # Copyright (C) 2009 Yifan Lu. All rights reserved.
  6. || # http://www.yifanlu.com
  7. || # Parts Copyright (C) 2009 Meth0d. All rights reserved.
  8. || # http://www.meth0d.org
  9. || # All images, scripts, and layouts
  10. || # Copyright (C) 2009 Sulake Ltd. All rights reserved.
  11. |+==================================================================
  12. || # PHPRetro is provided "as is" and comes without
  13. || # warrenty of any kind. PHPRetro is free software!
  14. || # License: GNU Public License 3.0
  15. || # http://opensource.org/licenses/gpl-license.php
  16. \+================================================================*/
  17.  
  18. require_once('./includes/core.php');
  19.  
  20. $data = new index_sql;
  21. $lang->addLocale("landing.login");
  22. $lang->addLocale("landing.login.popup");
  23.  
  24. if(!isset($_SESSION['login'])){
  25.     $_SESSION['login']['enabled'] = true;
  26.     $_SESSION['login']['tries'] = 0;
  27. }
  28.  
  29. $page['name'] = $lang->loc['pagename.popup'];
  30. $page['bodyid'] = "popup";
  31.  
  32. if($user->id > 0){ header("Location:".PATH."/client"); }
  33.  
  34. require_once('./templates/login_header.php');
  35.  
  36. ?>
  37.                 <div id="column1" class="column">
  38.                        
  39.                 <div class="habblet-container ">       
  40.    
  41.                         <div class="cbb clearfix green">
  42.     <h2 class="title"><?php echo $lang->loc['register.link']; ?></h2>
  43.  
  44.     <div class="box-content">
  45.         <p><?php echo $lang->loc['popup.register.desc']; ?>?</p>
  46.         <div class="register-button clearfix">
  47.             <a href="<?php echo PATH; ?>/register" onclick="HabboClient.closeHabboAndOpenMainWindow(this); return false;"><?php echo $lang->loc['popup.register.button']; ?></a>
  48.             <span></span>
  49.         </div>                
  50.     </div>
  51. </div>
  52.    
  53.                        
  54.                    
  55.                 </div>
  56.  
  57.                 <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
  58.              
  59.  
  60. </div>
  61. <div id="column2" class="column">
  62.                        
  63.                 <div class="habblet-container ">       
  64.    
  65.                         <div class="cbb loginbox clearfix ">
  66.     <h2 class="title"><?php echo $lang->loc['sign.in']; ?></h2>
  67.     <div class="box-content clearfix" id="login-habblet">
  68.         <form action="<?php echo PATH; ?>/account/submit" method="post" class="login-habblet">
  69.            
  70.             <ul>
  71.  
  72.                 <li>
  73.                     <label for="login-username" class="login-text"><?php echo $lang->loc['username']; ?></label>
  74.                     <input tabindex="1" type="text" class="login-field" name="username" id="login-username" value="" />
  75.                 </li>
  76.                 <li>
  77.                     <label for="login-password" class="login-text"><?php echo $lang->loc['password']; ?></label>
  78.                     <input tabindex="2" type="password" class="login-field" name="password" id="login-password" />
  79. <?php if($_SESSION['login']['tries'] > 4 && $settings->find("site_capcha") == "1"){ ?>
  80.                 </li>
  81.                 <li>
  82.  
  83. <h3>
  84.  
  85. <label for="bean_captcha" class="registration-text"><?php echo $lang->loc['type.security.code']; ?></label>
  86. </h3>
  87.  
  88. <div id="captcha-code-error"></div>
  89.  
  90. <p></p>
  91.  
  92. <div class="register-label" id="captcha-reload">
  93.     <p>
  94.         <img src="<?php echo PATH; ?>/web-gallery/v2/images/shared_icons/reload_icon.gif" width="15" height="15" alt=""/>
  95.         <a id="captcha-reload-link" href="#"><?php echo $lang->loc['cannot.read.code']; ?></a>
  96.     </p>
  97.  
  98. </div>
  99.  
  100. <script type="text/javascript">
  101. document.observe("dom:loaded", function() {
  102.     Event.observe($("captcha-reload"), "click", function(e) {Utils.reloadCaptcha()});
  103. });
  104. </script>
  105.  
  106. <p id="captcha-container">
  107.     <img id="captcha" src="<?php echo PATH; ?>/captcha.jpg?t=<?php echo time(); ?>" alt="" width="200" height="50" />
  108. </p>
  109.  
  110. <p>
  111. <input type="text" name="captcha" id="captcha-code" value="" class="registration-text required-captcha" />
  112. </p>
  113. <?php } ?>
  114.                         <input type="submit" value="Log in" class="submit" id="login-submit-button"/>
  115.  
  116.                         <a href="#" id="login-submit-new-button" class="new-button" style="float: left; margin-left: 0;display:none"><b style="padding-left: 10px; padding-right: 7px; width: 55px">Log in</b><i></i></a>
  117.                 </li>
  118.                 <li class="no-label">
  119.                     <input tabindex="4" type="checkbox" name="_login_remember_me" id="login-remember-me" value="true"/>
  120.                     <label for="login-remember-me"><?php echo $lang->loc['remember.me']; ?></label>
  121.                 </li>
  122.                 <li class="no-label">
  123.                     <a href="<?php echo PATH; ?>/register" class="login-register-link" onclick="HabboClient.closeHabboAndOpenMainWindow(this); return false;"><span><?php echo $lang->loc['register.link']; ?></span></a>
  124.  
  125.                 </li>
  126.                 <li class="no-label">
  127.                     <a href="<?php echo PATH; ?>/account/password/forgot" id="forgot-password"><span><?php echo $lang->loc['forgot']; ?></span></a>
  128.                 </li>
  129.             </ul>
  130.         </form>
  131.  
  132.     </div>
  133. </div>
  134.  
  135. <div id="remember-me-notification" class="bottom-bubble" style="display:none;">
  136.     <div class="bottom-bubble-t"><div></div></div>
  137.     <div class="bottom-bubble-c">
  138.     <?php echo $lang->loc['remember.warning']; ?>
  139.     </div>
  140.     <div class="bottom-bubble-b"><div></div></div>
  141. </div>
  142. <script type="text/javascript">
  143.     HabboView.add(LoginFormUI.init);
  144.     HabboView.add(RememberMeUI.init);
  145. </script>
  146.    
  147.                        
  148.                    
  149.                 </div>
  150.                 <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
  151.  
  152.              
  153.  
  154. </div>
  155. <!--[if lt IE 7]>
  156. <script type="text/javascript">
  157. Pngfix.doPngImageFix();
  158. </script>
  159. <![endif]-->
  160. <?php require_once('./templates/login_footer.php'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement