管理面板的用户注册和登录以及用户管理系统
这是一个小型项目,此项目在两个模块中进行描述。 一个是用户模块,第二个是管理面板。同时也讲解了如何使用管理面板项目运行用户注册和登录以及用户管理系统。
预览截图
应用介绍
此项目介绍了管理面板的用户注册和登录以及用户管理系统,引用了bootstrap框架。同时也讲解了如何使用管理面板项目运行用户注册和登录以及用户管理系统。本人只展示了一部分php代码,如想详细了解请点击下方链接下载附件。
<?php
session_start();
include("dbconnection.php");
if(isset($_POST['login']))
{
$adminusername=$_POST['username'];
$pass=md5($_POST['password']);
$ret=mysqli_query($con,"SELECT * FROM admin WHERE username='$adminusername' and password='$pass'");
$num=mysqli_fetch_array($ret);
if($num>0)
{
$extra="manage-users.php";
$_SESSION['login']=$_POST['username'];
$_SESSION['id']=$num['id'];
echo "<script>window.location.href='".$extra."'</script>";
exit();
}
else
{
$_SESSION['action1']="*Invalid username or password";
$extra="index.php";
echo "<script>window.location.href='".$extra."'</script>";
exit();
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Dashboard">
<meta name="keyword" content="Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">
<title>Admin | Login</title>
<link href="assets/css/bootstrap.css" rel="stylesheet">
<link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
<link href="assets/css/style.css" rel="stylesheet">
<link href="assets/css/style-responsive.css" rel="stylesheet">
</head>
<body>
<div id="login-page">
<div class="container">
<form class="form-login" action="" method="post">
<h2 class="form-login-heading">sign in now</h2>
<p style="color:#F00; padding-top:20px;" align="center">
<?php echo $_SESSION['action1'];?><?php echo $_SESSION['action1']="";?></p>
<div class="login-wrap">
<input type="text" name="username" class="form-control" placeholder="User ID" autofocus>
<br>
<input type="password" name="password" class="form-control" placeholder="Password"><br >
<input name="login" class="btn btn-theme btn-block" type="submit">
</div>
</form>
</div>
</div>
<script src="assets/js/jquery.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/js/jquery.backstretch.min.js"></script>
<script>
$.backstretch("assets/img/login-bg.jpg", {speed: 500});
</script>
</body>
</html>
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: [email protected] 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » 管理面板的用户注册和登录以及用户管理系统
文件列表(部分)
名称 | 大小 | 修改日期 |
---|---|---|
User Registration and login System with admin panel | 0.00 KB | 2019-07-24 |
loginsystem | 0.00 KB | 2019-07-04 |
admin | 0.00 KB | 2019-07-04 |
assets | 0.00 KB | 2019-07-04 |
.DS_Store | 15.00 KB | 2015-06-00 |
css | 0.00 KB | 2019-07-04 |
.DS_Store | 6.00 KB | 2015-06-06 |
bootstrap.css | 135.50 KB | 2015-06-06 |
style-responsive.css | 6.85 KB | 2015-06-04 |
style.css | 40.86 KB | 2015-06-04 |
table-responsive.css | 2.92 KB | 2015-06-02 |
to-do.css | 1.85 KB | 2015-06-02 |
zabuto_calendar.css | 3.69 KB | 2015-06-02 |
font-awesome | 0.00 KB | 2019-07-04 |
.DS_Store | 6.00 KB | 2015-06-12 |
css | 0.00 KB | 2019-07-04 |
.DS_Store | 6.00 KB | 2015-06-10 |
font-awesome.css | 26.14 KB | 2015-06-08 |
fonts | 0.00 KB | 2019-07-04 |
.DS_Store | 6.00 KB | 2015-06-20 |
fontawesome-webfont.eot | 70.75 KB | 2015-06-18 |
fontawesome-webfont.svg | 248.04 KB | 2015-06-18 |
fontawesome-webfont.ttf | 138.25 KB | 2015-06-16 |
fontawesome-webfont.woff | 81.80 KB | 2015-06-14 |
FontAwesome.otf | 73.43 KB | 2015-06-22 |
fonts | 0.00 KB | 2019-07-04 |
.DS_Store | 6.00 KB | 2015-06-26 |
glyphicons-halflings-regular.eot | 19.86 KB | 2015-06-26 |
glyphicons-halflings-regular.svg | 61.67 KB | 2015-06-26 |
glyphicons-halflings-regular.ttf | 40.31 KB | 2015-06-24 |
glyphicons-halflings-regular.woff | 22.77 KB | 2015-06-22 |
img | 0.00 KB | 2019-07-04 |
发表评论 取消回复