Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST["login"]))
- {
- $username = $mysql->real_escape_string(stripslashes(htmlspecialchars($username)));
- $password = $mysql->real_escape_string(stripslashes(md5($password)));
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta name="viewport" content="width=1,initial-scale=1,user-scalable=1" />
- <title><?php echo $_CONFIG["translation"]["title"]; ?></title>
- <link href="http://fonts.googleapis.com/css?family=Lato:100italic,100,300italic,300,400italic,400,700italic,700,900italic,900" rel="stylesheet" type="text/css">
- <link rel="stylesheet" type="text/css" href="<?php echo $_CONFIG["SiteSettings"]["url"]; ?>assets/bootstrap/css/bootstrap.min.css?<?php echo rand(0, 1000); ?>" />
- <link rel="stylesheet" type="text/css" href="<?php echo $_CONFIG["SiteSettings"]["url"]; ?>assets/css/styles.css?<?php echo rand(0, 1000); ?>" />
- <!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
- <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
- <![endif]-->
- </head>
- <body>
- <section id="logo">
- <a href="#"><img src="<?php echo $_CONFIG["SiteSettings"]["url"]; ?>assets/images/logo.png?<?php echo rand(0, 1000); ?>" alt="" /></a>
- </section>
- <section class="container">
- <section class="row">
- <form method="post" action="" role="login">
- <div class="form-group">
- <input type="text" name="username" placeholder="<?php echo $_CONFIG["translation"]["username"]; ?>" required class="form-control" />
- <span class="glyphicon glyphicon-user"></span>
- </div>
- <div class="form-group">
- <input type="password" name="password" placeholder="<?php echo $_CONFIG["translation"]["password"]; ?>" required class="form-control" />
- <span class="glyphicon glyphicon-lock"></span>
- </div>
- <button type="submit" name="login" class="btn btn-block btn-primary"><?php echo $_CONFIG["translation"]["login"]; ?></button>
- </form>
- </section>
- </section>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
- <script src="<?php echo $_CONFIG["SiteSettings"]["url"]; ?>assets/bootstrap/js/bootstrap.min.js?<?php echo rand(0, 1000); ?>"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement