Advertisement
ROMaurice

login.php - MSP

Aug 1st, 2015
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.84 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
  3. <!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
  4. <!--[if !IE]><!-->
  5. <html lang="en">
  6. <!--<![endif]-->
  7. <!-- BEGIN HEAD -->
  8. <head>
  9. <meta charset="utf-8"/>
  10. <title>MSP - Login</title>
  11. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  12. <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
  13. <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  14. <meta content="" name="description"/>
  15. <meta content="" name="author"/>
  16. <!-- BEGIN GLOBAL MANDATORY STYLES -->
  17. <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css"/>
  18. <link href="assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
  19. <link href="assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css"/>
  20. <link href="assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
  21. <link href="assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>
  22. <!-- END GLOBAL MANDATORY STYLES -->
  23. <!-- BEGIN PAGE LEVEL STYLES -->
  24. <link href="assets/admin/pages/css/login.css" rel="stylesheet" type="text/css"/>
  25. <!-- END PAGE LEVEL SCRIPTS -->
  26. <!-- BEGIN THEME STYLES -->
  27. <link href="assets/global/css/components.css" id="style_components" rel="stylesheet" type="text/css"/>
  28. <link href="assets/global/css/plugins.css" rel="stylesheet" type="text/css"/>
  29. <link href="assets/admin/layout/css/layout.css" rel="stylesheet" type="text/css"/>
  30. <link href="assets/admin/layout/css/themes/darkblue.css" rel="stylesheet" type="text/css" id="style_color"/>
  31. <link href="assets/admin/layout/css/custom.css" rel="stylesheet" type="text/css"/>
  32. <!-- END THEME STYLES -->
  33. <link rel="shortcut icon" href="favicon.ico"/>
  34. </head>
  35. <!-- END HEAD -->
  36. <!-- BEGIN BODY -->
  37. <body class="login">
  38. <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
  39. <div class="menu-toggler sidebar-toggler">
  40. </div>
  41. <!-- END SIDEBAR TOGGLER BUTTON -->
  42. <!-- BEGIN LOGO -->
  43. <div class="logo">
  44.     <a href="index.html">
  45.     <img src="assets/admin/layout/img/logo.png" alt=""/>
  46.     </a>
  47. </div>
  48. <!-- END LOGO -->
  49. <!-- BEGIN LOGIN -->
  50. <div class="content">
  51.     <!-- BEGIN LOGIN FORM -->
  52.     <form class="login-form" action="" method="post">
  53.         <h3 class="form-title">Autentificare</h3>
  54.         <?  
  55.             if(isset($_SESSION["err_set"]))
  56.             {  
  57.                 if($_SESSION["err_set"] <= 2 && $_SESSION["err_set"] != 0)
  58.                 {
  59.                     echo "  <div class=\"alert alert-danger\">
  60.                                 <strong>Error:</strong> " . $_SESSION["err_txt"] . ".
  61.                             </div>";
  62.                     $_SESSION["err_set"] += 1;
  63.                     if($_SESSION["err_set"] == 2)
  64.                         $_SESSION["err_set"] = 0;
  65.                 }
  66.             }
  67.             if(isset($_SESSION["succes_set"]))
  68.             {  
  69.                 if($_SESSION["succes_set"] <= 2 && $_SESSION["succes_set"] != 0)
  70.                 {
  71.                     echo "  <div class=\"alert alert-success\">
  72.                                 <strong>Congratulations:</strong> Now you can login with your username and password.
  73.                             </div>";
  74.                     $_SESSION["succes_set"] += 1;
  75.                     if($_SESSION["succes_set"] == 2)
  76.                         unset($_SESSION["succes_set"]);
  77.                 }
  78.                
  79.             }
  80.         ?>
  81.         <div class="form-group">
  82.             <!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->
  83.             <label class="control-label visible-ie8 visible-ie9">Username</label>
  84.             <input class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="Username" name="login_user"/>
  85.         </div>
  86.         <div class="form-group">
  87.             <label class="control-label visible-ie8 visible-ie9">Password</label>
  88.             <input class="form-control form-control-solid placeholder-no-fix" type="password" autocomplete="off" placeholder="Password" name="login_pass"/>
  89.         </div>
  90.         <div class="form-actions">
  91.             <button type="submit" class="btn btn-success uppercase">Login</button>
  92.         </div>
  93.         <div class="login-options">
  94.             <h4>Sau logati-va cu:</h4>
  95.             <ul class="social-icons">
  96.                 <li>
  97.                     <a class="facebook" data-original-title="facebook" href="templates/loginfb.php"></a>
  98.                 </li>
  99.             </ul>
  100.         </div>
  101.     </form>
  102.     <!-- END LOGIN FORM -->
  103. </div>
  104. <div class="copyright">
  105.      2015 &copy; MSP Team
  106. </div>
  107. <!-- END LOGIN -->
  108. <!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
  109. <!-- BEGIN CORE PLUGINS -->
  110. <!--[if lt IE 9]>
  111. <script src="assets/global/plugins/respond.min.js"></script>
  112. <script src="assets/global/plugins/excanvas.min.js"></script>
  113. <![endif]-->
  114. <script src="assets/global/plugins/jquery.min.js" type="text/javascript"></script>
  115. <script src="assets/global/plugins/jquery-migrate.min.js" type="text/javascript"></script>
  116. <script src="assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
  117. <script src="assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
  118. <script src="assets/global/plugins/jquery.cokie.min.js" type="text/javascript"></script>
  119. <script src="assets/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
  120. <!-- END CORE PLUGINS -->
  121. <!-- BEGIN PAGE LEVEL PLUGINS -->
  122. <script src="assets/global/plugins/jquery-validation/js/jquery.validate.min.js" type="text/javascript"></script>
  123. <!-- END PAGE LEVEL PLUGINS -->
  124. <!-- BEGIN PAGE LEVEL SCRIPTS -->
  125. <script src="assets/global/scripts/metronic.js" type="text/javascript"></script>
  126. <script src="assets/admin/layout/scripts/layout.js" type="text/javascript"></script>
  127. <script src="assets/admin/layout/scripts/demo.js" type="text/javascript"></script>
  128. <script src="assets/admin/pages/scripts/login.js" type="text/javascript"></script>
  129. <!-- END PAGE LEVEL SCRIPTS -->
  130. <script>
  131. jQuery(document).ready(function() {    
  132.     Metronic.init(); // init metronic core components
  133.     Layout.init(); // init current layout
  134.     Login.init();
  135.     Demo.init();
  136. });
  137. </script>
  138. <!-- END JAVASCRIPTS -->
  139. </body>
  140. <!-- END BODY -->
  141. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement