Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Mar 21st, 2010  |  syntax: None  |  size: 6.75 KB  |  hits: 97  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. || # iBobba Login Page by Ubercheese at RaGEZONE
  18. \+================================================================*/
  19.  
  20. require_once('./includes/core.php');
  21.  
  22. if($user->id > 0){ header("Location:".PATH."/me"); }
  23.  
  24. $lang->addLocale("landing.login");
  25.  
  26. $data = new index_sql;
  27.  
  28. $page['name'] = $lang->loc['pagename.home'];
  29. $page['bodyid'] = "landing";
  30.  
  31. if(!empty($_GET['error'])){
  32.         $error = $input->HoloText($_GET['error']);
  33.         if(!is_numeric($error)){ $error = 2; }
  34.         $error = $lang->loc['error.'.$error];
  35. }elseif(!empty($_SESSION['error'])){
  36.         $error = $_SESSION['error'];
  37.         unset($_SESSION['error']);
  38. }
  39.  
  40. $username = $input->HoloText($_GET['username']);
  41. $rememberme = $input->HoloText($_GET['rememberme']);
  42. $pageto = $input->HoloText($_GET['page']);
  43.  
  44. if(!isset($_SESSION['login'])){
  45.         $_SESSION['login']['enabled'] = true;
  46.         $_SESSION['login']['tries'] = 0;
  47. }
  48.  
  49. require_once('./templates/login_header.php');
  50. ?>
  51.  
  52.                         <div id="column1" class="column">
  53.                                        
  54.                                 <div class="habblet-container " id="create-habbo">             
  55.        
  56.                 <div style="background-image: url(<?php echo PATH; ?>/web-gallery/v2/images/hotelview.png); width: 756px; height: 389px; margin-left: -21px;"></div>
  57. </div>
  58.  
  59.  
  60.  
  61.                                 </div>
  62.                                 <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
  63.  
  64. </div>
  65. <div id="column2" class="column">
  66.                                 <div style="margin-top: 120px; -moz-opacity: 0.80;"  class="habblet-container ">
  67.  
  68.                                                 <div class="cbb loginbox blue">
  69.  
  70. <?php
  71.         if(isset($error)){
  72.                 echo "\n<div class=\"action-error flash-message\">\n <div class=\"rounded\">\n  <ul>\n   <li>".$error."</li>\n  </ul>\n </div>\n</div>\n";
  73.         }
  74. ?>
  75.  
  76.     <div class="box-content clearfix">
  77.         <form action="<?php echo PATH; ?>/account/submit" method="post" class="login-habblet">
  78.                         <?php if(isset($_GET['page'])){ ?><input type="hidden" name="page" value="<?php echo $pageto; ?>" /><?php } ?>
  79.             <ul>
  80.                 <li>
  81.                     <label for="login-username" class="login-text"><?php echo $lang->loc['username']; ?></label>
  82.                     <input tabindex="1" type="text" class="login-field" name="username" id="login-username" value="<?php echo $username; ?>"/>
  83.                 </li>
  84.                 <li>
  85.                     <label for="login-password" class="login-text"><?php echo $lang->loc['password']; ?></label>
  86.                     <input tabindex="2" type="password" class="login-field" name="password" id="login-password" />
  87. <?php if($_SESSION['login']['tries'] > 4 && $settings->find("site_capcha") == "1"){ ?>
  88.                 </li>
  89.                 <li>
  90.  
  91. <h3>
  92.  
  93. <label for="bean_captcha" class="registration-text"><?php echo $lang->loc['type.security.code']; ?></label>
  94. </h3>
  95.  
  96. <div id="captcha-code-error"></div>
  97.  
  98. <p></p>
  99.  
  100. <div class="register-label" id="captcha-reload">
  101.     <p>
  102.         <img src="<?php echo PATH; ?>/web-gallery/v2/images/shared_icons/reload_icon.gif" width="15" height="15" alt=""/>
  103.         <a id="captcha-reload-link" href="#"><?php echo $lang->loc['cannot.read.code']; ?></a>
  104.     </p>
  105.  
  106. </div>
  107.  
  108. <script type="text/javascript">
  109. document.observe("dom:loaded", function() {
  110.     Event.observe($("captcha-reload"), "click", function(e) {Utils.reloadCaptcha()});
  111. });
  112. </script>
  113.  
  114. <p id="captcha-container">
  115.     <img id="captcha" src="<?php echo PATH; ?>/captcha.jpg?t=<?php echo time(); ?>" alt="" width="200" height="50" />
  116. </p>
  117.  
  118. <p>
  119. <input class="login-field" type="text" name="bean.captchaResponse" id="recaptcha_response_field" class="register-text error" value="" size="25" />
  120. </p>
  121. <?php } ?>
  122.                         <input type="submit" value="<?php echo $lang->loc['sign.in']; ?>" class="submit" id="login-submit-button"/>
  123.                         <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"><?php echo $lang->loc['sign.in']; ?></b><i></i></a>
  124.                 </li>
  125.                 <li class="no-label">
  126.                     <input tabindex="3" type="checkbox" value="true" name="_login_remember_me" id="login-remember-me"<?php /* if(isset($_GET['rememberme']) && $rememberme = "true"){ echo " checked=\"checked\""; }elseif($rememberme = "false"){ echo " checked=\"unchecked\""; } */ ?>/>
  127.                     <label for="login-remember-me"><?php echo $lang->loc['remember.me']; ?></label>
  128.                 </li>
  129.                 <li class="no-label">
  130.                     <a href="<?php echo PATH; ?>/register" class="login-register-link"><span><b>REGISTER NOW &raquo;</b></span></a><br />
  131.                     <a href="<?php echo PATH; ?>/account/password/forgot" id="forgot-password"><span>Forgotten your password?</span></a>
  132.                 </li>
  133.             </ul>
  134.         </form>
  135.  
  136.     </div>
  137. </div>
  138. <div id="remember-me-notification" class="bottom-bubble" style="display:none;">
  139.         <div class="bottom-bubble-t"><div></div></div>
  140.         <div class="bottom-bubble-c">
  141.         <?php echo $lang->loc['remember.warning']; ?>
  142.         </div>
  143.         <div class="bottom-bubble-b"><div></div></div>
  144. </div>
  145. <script type="text/javascript">
  146.         HabboView.add(LoginFormUI.init);
  147.         HabboView.add(RememberMeUI.init);
  148. </script>
  149.  
  150.  
  151.  
  152.                                                                 </div>
  153. <div class="habblet-container ">
  154.                                                 <div class="cbb clearfix red ">
  155.  
  156.                                                         <h2 class="title"><span style="float: left;">Plabbo Notices</span><span style="float: right; font-weight: normal; font-size: 75%;"></span>
  157.                                                         </h2>
  158.                                                 <div id="notfound-content" class="box-content">
  159. <?php
  160. echo "
  161. Welcome to <b>Plabbo</b>!<br><br>
  162. This section is currently under construction, so please bare with us!
  163. ";
  164. ?>
  165.  
  166.  
  167.                                                
  168.  
  169.  
  170. <div id="column3" class="column">
  171. </div>
  172. <div id="column-footer">
  173.                
  174.                                
  175.                          
  176.  
  177. <!--[if lt IE 7]>
  178. <script type="text/javascript">
  179. Pngfix.doPngImageFix();
  180. </script>
  181. <![endif]-->
  182.  
  183. <!--[if lt IE 7]>
  184. <script type="text/javascript">
  185. Pngfix.doPngImageFix();
  186. </script>
  187. <![endif]-->
  188.  
  189. <?php require_once('./templates/login_footer.php'); ?>