D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
grandhou
/
www
/
album
/
album-admin
/
Filename :
index.php
back
Copy
<?php session_start(); error_reporting(0); include("include/configpage.php"); if(isset($_POST['submit'])) { $username=$_POST['username']; $password=md5($_POST['password']); $ret=mysqli_query($dbhandle,"SELECT * FROM admin WHERE username='$username' and password='$password'"); $num=mysqli_fetch_array($ret); if($num>0) { $extra="manage-user.php";// $_SESSION['alogin']=$_POST['username']; $_SESSION['id']=$num['id']; $host=$_SERVER['HTTP_HOST']; $uri=rtrim(dirname($_SERVER['PHP_SELF']),'/\\'); header("location:http://$host$uri/$extra"); exit(); } else { $_SESSION['errmsg']="Invalid username or password"; $extra="index.php"; $host = $_SERVER['HTTP_HOST']; $uri = rtrim(dirname($_SERVER['PHP_SELF']),'/\\'); header("location:http://$host$uri/$extra"); exit(); } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>GRAND HOUSE | ALBUM</title> <link type="text/css" href="bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link type="text/css" href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet"> <link rel="shortcut icon" href="upload/favicon.ico"> <link type="text/css" href="css/theme.css" rel="stylesheet"> <link type="text/css" href="images/icons/css/font-awesome.css" rel="stylesheet"> <link type="text/css" href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600' rel='stylesheet'> </head> <body oncontextmenu="return false;"> <script> document.onkeydown = function(e) { if(event.keyCode == 123) { return false; } if(e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)){ return false; } } </script> <div class="navbar navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".navbar-inverse-collapse"> <i class="icon-reorder shaded"></i> </a> <a class="brand" href="index.php"> GRAND HOUSE | Admin </a> <div class="nav-collapse collapse navbar-inverse-collapse"> <ul class="nav pull-right"> <li><a href="#"> Back to Portal </a></li> </ul> </div><!-- /.nav-collapse --> </div> </div><!-- /navbar-inner --> </div><!-- /navbar --> <div class="wrapper"> <div class="container"> <div class="row"> <div class="module module-login span4 offset4"> <form class="form-vertical" method="post"> <div class="module-head"> <h3>Sign In</h3> </div> <span style="color:red;" ><?php echo htmlentities($_SESSION['errmsg']); ?><?php echo htmlentities($_SESSION['errmsg']="");?></span> <div class="module-body"> <div class="control-group"> <div class="controls row-fluid"> <input class="span12" type="text" id="inputEmail" name="username" placeholder="Username"> </div> </div> <div class="control-group"> <div class="controls row-fluid"> <input class="span12" type="password" id="inputPassword" name="password" placeholder="Password"> </div> </div> </div> <div class="module-foot"> <div class="control-group"> <div class="controls clearfix"> <button type="submit" class="btn btn-primary pull-right" name="submit">Login</button> </div> </div> </div> </form> </div> </div> </div> </div><!--/.wrapper--> <div class="footer"> <div class="container"> <b class="copyright"> © 2020 all rights reseved Grandhouse, Wedding Photo & Video Sydny Australia<br> Site by <a href="https://www.graffitopaints.com" title="Best Indian Web Designer" target="_blank">ayyans</a><br> </div> </div> <script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script> </body>