📁 File Manager
Editing:
/home/wedigitalindia/public_html/voltaicpower.in/admin/login1.php
<?php include("connection.php"); //ob_start(); session_start(); if (isset($_POST['submit'])) { $user = $_POST['user']; $pass = $_POST['pass']; $sql = "SELECT * FROM login WHERE `user`='$user' and `pass`='$pass'"; $query = mysqli_query($con, $sql); if (mysqli_num_rows($query) > 0) { $_SESSION['start'] = 'start'; header('location: index.php'); // echo"<script type='text/javascript'></script>"; } else { header('location: login.php'); } } ob_flush(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet"> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css"> <title>login Page</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body{ background: linear-gradient(0deg, #0000006e 0%, #00000063 20%), url(./assets/logo/banner.jpg); background-size: cover; background-position: center; background-repeat: no-repeat; height: 100vh; } .form { display: flex; flex-direction: column; gap: 10px; background:#fffaf724; border: 2px solid #832B00; padding: 30px; max-width: 450px; width: 100%; border-radius: 2px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); } .form img{ margin-inline: auto; /* height: 100px; */ width: 260px; background:#F7E5DA; padding: 10px; } h2 { text-align: center; color: white; } ::placeholder { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; color: white; } .form button { align-self: flex-end; } .flex-column>label { color: white; font-weight: 600; } .inputForm { border: 1.5px solid #ecedec; border-radius: 10px; height: 50px; display: flex; align-items: center; padding-left: 10px; transition: 0.2s ease-in-out; } .input { margin-left: 10px; border-radius: 10px; border: none; width: 85%; height: 100%; background: none; color: white; } .input:focus { outline: none; } .inputForm:focus-within { border: 1.5px solid #2d79f3; } .flex-row { display: flex; flex-direction: row; align-items: center; gap: 10px; justify-content: space-between; } .flex-row>div>label { font-size: 14px; color: black; font-weight: 400; } .span { font-size: 14px; margin-left: 5px; color: #2d79f3; font-weight: 500; cursor: pointer; } .button-submit { margin: 20px 0 10px 0; background-color: #832B00; border: none; color: #F7E5DA; font-size: 15px; font-weight: 600; border-radius: 10px; height: 50px; width: 100%; cursor: pointer; } .button-submit a{ text-decoration: none; color: white; } .button-submit:hover { background-color: #F7E5DA; color: #832B00; } .button-submit a:hover{ text-decoration: none; color: #9e0c00; /* background-color: yellow; */ } .p { text-align: center; color: black; font-size: 14px; margin: 5px 0; } .btn { margin-top: 10px; width: 30%; height: 50px; border-radius: 10px; display: flex; justify-content: center; align-items: center; font-weight: 500; gap: 10px; border: 1px solid #ededef; background-color: white; cursor: pointer; transition: 0.2s ease-in-out; } .btn:hover { border: 1px solid #2d79f3; } </style> </head> <body> <form class="form" method="post" > <img class="text-center" src="./assets/logo/Logo1.png" alt=""> <h2>Login Dashboard</h2> <div class="flex-column"> <label>User</label> </div> <div class="inputForm"> <svg xmlns="http://www.w3.org/2000/svg" color="white" width="16" height="16" fill="currentColor" class="bi bi-person-circle" viewBox="0 0 16 16"> <path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0" /> <path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8m8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1" /> </svg> <input type="text" class="input" name="user" placeholder="Enter your User name" required/> </div> <!-- --> <div class="flex-column"> <label>Password </label> </div> <div class="inputForm"> <svg xmlns="http://www.w3.org/2000/svg" color="white" width="16" height="16" fill="currentColor" class="bi bi-lock-fill" viewBox="0 0 16 16"> <path d="M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2m3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2" /> </svg> <input type="password" class="input" name="pass" id="myInput" placeholder="Enter your Password" required /> <input type="checkbox" onclick="myFunction()" style="margin-right: 10px;"> </div> <button class="button-submit" name="submit">Submit</button> <!-- <button class="button-submit"><a href="forget.php">Forget Password</a></button> --> </form> <script> function myFunction() { var x = document.getElementById("myInput"); if (x.type === "password") { x.type = "text"; } else { x.type = "password"; } } </script> </body> </html>
Save
Cancel