Advertisement
Guest User

Untitled

a guest
Mar 30th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.28 KB | None | 0 0
  1. <?php
  2. if(isset($_POST["login"]))
  3. {
  4.     $username = $mysql->real_escape_string(stripslashes(htmlspecialchars($username)));
  5.     $password = $mysql->real_escape_string(stripslashes(md5($password)));
  6. }
  7. ?>
  8. <!DOCTYPE html>
  9. <html>
  10. <head>
  11.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  12.     <meta name="viewport" content="width=1,initial-scale=1,user-scalable=1" />
  13.     <title><?php echo $_CONFIG["translation"]["title"]; ?></title>
  14.  
  15.     <link href="http://fonts.googleapis.com/css?family=Lato:100italic,100,300italic,300,400italic,400,700italic,700,900italic,900" rel="stylesheet" type="text/css">
  16.     <link rel="stylesheet" type="text/css" href="<?php echo $_CONFIG["SiteSettings"]["url"]; ?>assets/bootstrap/css/bootstrap.min.css?<?php echo rand(0, 1000); ?>" />
  17.     <link rel="stylesheet" type="text/css" href="<?php echo $_CONFIG["SiteSettings"]["url"]; ?>assets/css/styles.css?<?php echo rand(0, 1000); ?>" />
  18.     <!--[if lt IE 9]>
  19.       <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  20.       <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  21.     <![endif]-->
  22. </head>
  23. <body>
  24.     <section id="logo">
  25.         <a href="#"><img src="<?php echo $_CONFIG["SiteSettings"]["url"]; ?>assets/images/logo.png?<?php echo rand(0, 1000); ?>" alt="" /></a>
  26.     </section>
  27.    
  28.     <section class="container">
  29.         <section class="row">
  30.             <form method="post" action="" role="login">
  31.                 <div class="form-group">
  32.                     <input type="text" name="username" placeholder="<?php echo $_CONFIG["translation"]["username"]; ?>" required class="form-control" />
  33.                     <span class="glyphicon glyphicon-user"></span>
  34.                 </div>
  35.                
  36.                 <div class="form-group">
  37.                     <input type="password" name="password" placeholder="<?php echo $_CONFIG["translation"]["password"]; ?>" required class="form-control" />
  38.                     <span class="glyphicon glyphicon-lock"></span>
  39.                 </div>
  40.                 <button type="submit" name="login" class="btn btn-block btn-primary"><?php echo $_CONFIG["translation"]["login"]; ?></button>
  41.             </form>
  42.         </section>
  43.     </section>
  44.    
  45.     <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
  46.     <script src="<?php echo $_CONFIG["SiteSettings"]["url"]; ?>assets/bootstrap/js/bootstrap.min.js?<?php echo rand(0, 1000); ?>"></script>
  47. </body>
  48. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement