index-unlogged.php 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php
  2. //require_once('main/inc/global.inc.php');
  3. require_once('language.php');
  4. if (isset($_GET['loginFailed'])){
  5. if (isset($_GET['error'])) {
  6. switch ($_GET['error']) {
  7. case 'account_expired':
  8. $error_message = cblue_get_lang('AccountExpired');
  9. break;
  10. case 'account_inactive':
  11. $error_message = cblue_get_lang('AccountInactive');
  12. break;
  13. case 'user_password_incorrect':
  14. $error_message = cblue_get_lang('InvalidId');
  15. break;
  16. case 'access_url_inactive':
  17. $error_message = cblue_get_lang('AccountURLInactive');
  18. break;
  19. default :
  20. $error_message = cblue_get_lang('InvalidId');
  21. }
  22. } else {
  23. $error_message = get_lang('InvalidId');
  24. }
  25. }
  26. ?>
  27. <html>
  28. <head>
  29. <title>Custompage - login</title>
  30. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  31. <!--[if !IE 6]><!-->
  32. <link rel="stylesheet" type="text/css" href="/custompages/style.css" />
  33. <!--<![endif]-->
  34. <!--[if IE 6]>
  35. <link rel="stylesheet" type="text/css" href="/custompages/style-ie6.css" />
  36. <![endif]-->
  37. <script type="text/javascript" src="/custompages/jquery-1.5.1.min.js"></script>
  38. <script type="text/javascript">
  39. $(document).ready(function() {
  40. if (top.location != location)
  41. top.location.href = document.location.href ;
  42. // Handler pour la touche retour
  43. $('input').keyup(function(e) {
  44. if (e.keyCode == 13) {
  45. $('#login-form').submit();
  46. }
  47. });
  48. });
  49. </script>
  50. </head>
  51. <body>
  52. <div id="backgroundimage">
  53. <img src="<?php echo api_get_path(WEB_PATH)?>/custompages/images/page-background.png" class="backgroundimage" />
  54. </div>
  55. <div id="wrapper">
  56. <div id="header">
  57. <img src="<?php echo api_get_path(WEB_PATH)?>/custompages/images/header.png" alt="Logo" />
  58. </div> <!-- #header -->
  59. <div id="login-form-box" class="form-box">
  60. <div id="login-form-info" class="form-info">
  61. <?php if (isset($content['info']) && !empty($content['info'] )) {
  62. echo $content['info'];
  63. }?>
  64. </div>
  65. <?php if (isset($error_message)) {
  66. echo '<div id="login-form-info" class="form-error">'.$error_message.'</div>';
  67. }?>
  68. <form id="login-form" class="form" action="<?php echo api_get_path(WEB_PATH)?>index.php" method="post">
  69. <div>
  70. <label for="login">*<?php echo cblue_get_lang('User');?></label>
  71. <input name="login" type="text" /><br />
  72. <label for="password">*<?php echo cblue_get_lang('langPass');?></label>
  73. <input name="password" type="password" /><br />
  74. </div>
  75. </form>
  76. <div id="login-form-submit" class="form-submit" onclick="document.forms['login-form'].submit();">
  77. <span><?php echo cblue_get_lang('LoginEnter');?></span>
  78. </div> <!-- #form-submit -->
  79. <div id="links">
  80. <a href="<?php echo api_get_path(WEB_PATH)?>main/auth/inscription.php"><?php echo cblue_get_lang('langReg')?></a><br />
  81. <a href="<?php echo api_get_path(WEB_PATH)?>main/auth/lostPassword.php"><?php echo cblue_get_lang('langLostPassword')?></a>
  82. </div>
  83. </div> <!-- #form -->
  84. <div id="footer">
  85. <img src="<?php echo api_get_path(WEB_PATH)?>/custompages/images/footer.png" />
  86. </div> <!-- #footer -->
  87. </div> <!-- #wrapper -->
  88. </body>
  89. </html>