Advertisement
Guest User

index

a guest
Nov 26th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.73 KB | None | 0 0
  1. <?php
  2. require '@/config.php';
  3. require '@/init.php';
  4. if ($user -> LoggedIn())
  5. {
  6. header('Location: accueil.php');
  7. }
  8. ?>
  9. <!DOCTYPE html>
  10. <!--[if IE 9]> <html class="no-js lt-ie10"> <![endif]-->
  11. <!--[if gt IE 9]><!--> <html class="no-js"> <!--<![endif]-->
  12. <head>
  13. <script>
  14. function login()
  15. {
  16. var username=$('#loginusername').val();
  17. var password=$('#loginpassword').val();
  18. document.getElementById("logindiv").style.display="none";
  19. document.getElementById("loginimage").style.display="inline";
  20. var xmlhttp;
  21. if (window.XMLHttpRequest)
  22. {// code for IE7+, Firefox, Chrome, Opera, Safari
  23. xmlhttp=new XMLHttpRequest();
  24. }
  25. else
  26. {// code for IE6, IE5
  27. xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  28. }
  29. xmlhttp.onreadystatechange=function()
  30. {
  31. if (xmlhttp.readyState==4 && xmlhttp.status==200)
  32. {
  33. document.getElementById("logindiv").innerHTML=xmlhttp.responseText;
  34. document.getElementById("loginimage").style.display="none";
  35. document.getElementById("logindiv").style.display="inline";
  36. if (xmlhttp.responseText.search("Redirecting") != -1)
  37. {
  38. setInterval(function(){window.location="index.php"},3000);
  39. }
  40. }
  41. }
  42. xmlhttp.open("POST","ajax/login.php?type=login",true);
  43. xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
  44. xmlhttp.send("username=" + username + "&password=" + password);
  45. }
  46. </script>
  47. <meta charset="utf-8">
  48.  
  49. <title><?php echo htmlspecialchars($sitename); ?> - Connexion</title>
  50. <meta name="author" content="StrikeREAD">
  51. <meta name="robots" content="noindex, nofollow">
  52. <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0">
  53. <link rel="shortcut icon" href="img/favicon.png">
  54. <link rel="apple-touch-icon" href="img/icon57.png" sizes="57x57">
  55. <link rel="apple-touch-icon" href="img/icon72.png" sizes="72x72">
  56. <link rel="apple-touch-icon" href="img/icon76.png" sizes="76x76">
  57. <link rel="apple-touch-icon" href="img/icon114.png" sizes="114x114">
  58. <link rel="apple-touch-icon" href="img/icon120.png" sizes="120x120">
  59. <link rel="apple-touch-icon" href="img/icon144.png" sizes="144x144">
  60. <link rel="apple-touch-icon" href="img/icon152.png" sizes="152x152">
  61. <link rel="apple-touch-icon" href="img/icon180.png" sizes="180x180">
  62. <link rel="stylesheet" href="css/bootstrap.min.css">
  63. <link rel="stylesheet" href="css/plugins.css">
  64. <link rel="stylesheet" href="css/main.css">
  65. <link rel="stylesheet" href="css/themes.css">
  66. <link rel="stylesheet" href="css/themes/amethyst.css" id="theme-link">
  67. <link rel="stylesheet" href="background.css">
  68. <script src="js/vendor/modernizr-2.8.1.min.js"></script>
  69. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
  70. <style type="text/css">.jqstooltip { width: auto !important; height: auto !important; position: absolute;left: 0px;top: 0px;visibility: hidden;background: #000000;color: white;font-size: 11px;text-align: left;white-space: nowrap;padding: 5px;z-index: 10000;}.jqsfield { color: white;font: 10px arial, san serif;text-align: left;}</style>
  71. </head>
  72. <body>
  73. <img src="https://9071fa511ec644022b75d30b-cyberhostproltd.netdna-ssl.com/wp-content/uploads/2013/09/dedicated-servers.jpg" alt="Full Background" class="full-bg animation-pulseSlow"></img>
  74. <div id="login-container">
  75. <h1 class="h2 text-light text-center push-top-bottom animation-slideDown">
  76. <strong><?php echo htmlspecialchars($sitename); ?></strong>
  77. </h1>
  78. <div id="logindiv" style="display:none"></div>
  79. <div class="block animation-fadeInQuickInv">
  80. <div class="block-title">
  81. <div class="block-options pull-right">
  82. <a href="lost.php" class="btn btn-effect-ripple btn-primary" data-toggle="tooltip" data-placement="left" title="Forgot your password?"><i class="fa fa-exclamation-circle"></i></a>
  83. <a href="register.php" class="btn btn-effect-ripple btn-primary" data-toggle="tooltip" data-placement="left" title="Register"><i class="fa fa-plus"></i></a>
  84. </div>
  85. <h2>Login <img id="loginimage" src="img/jquery.easytree/loading.gif" style="display:none"/></h2>
  86. </div>
  87. <div class="form-horizontal">
  88. <div class="form-group">
  89. <div class="col-xs-12">
  90. <input type="text" id="loginusername" class="form-control" placeholder="Pseudo">
  91. </div>
  92. </div>
  93. <div class="form-group">
  94. <div class="col-xs-12">
  95. <input type="password" id="loginpassword" class="form-control" placeholder="Mot de passe">
  96. </div>
  97. </div>
  98. <div class="form-group form-actions">
  99. <div class="col-xs-8">
  100. <label class="csscheckbox csscheckbox-primary">
  101. <input type="checkbox" id="login-remember-me" name="login-remember-me" checked disabled>
  102. <span></span>
  103. </label>
  104. Accepter les <a href="<?php echo htmlspecialchars($tos); ?>">TOS</a>
  105. </div>
  106. <div class="col-xs-4 text-right">
  107. <button type="button" onclick="login()" class="btn btn-effect-ripple btn-sm btn-primary"><i class="fa fa-check"></i> Se connecter</button>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. <footer class="text-muted text-center animation-pullUp">
  113. <small><span id="year-copy"></span> &copy; <a href="<?php echo htmlspecialchars($siteurl); ?>" target="_blank"><?php echo htmlspecialchars($sitename); ?></a></small>
  114. </footer>
  115. </div>
  116. <script src="js/vendor/jquery.min.js"></script>
  117. <script src="js/vendor/bootstrap.min.js"></script>
  118. <script src="js/plugins.js"></script>
  119. <script src="js/app.js"></script><script src="js/pages/readyLogin.js"></script>
  120. <script type="text/javascript">
  121. $("#signinForm").validate({
  122. rules: {
  123. login: "required",
  124. password: "required"
  125. },
  126. messages: {
  127. firstname: "Mettez votre pseudo",
  128. lastname: "Mettez votre mot de passe"
  129. }
  130. });
  131. </script>
  132. </body>
  133. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement