<?
require("common.php3");
$id=chop($id);
if(!isset($id))error("請輸入要刪除的用戶ID !");
elseif($pwd<>$adminpass)error("管理員密碼錯誤!");
else{
$data=dbmopen("class","w"); " /> 亚洲日日做天天做日日谢,国内精品视频在线观看,人人模人人

一区二区久久-一区二区三区www-一区二区三区久久-一区二区三区久久精品-麻豆国产一区二区在线观看-麻豆国产视频

PHP+DBM的同學錄程序(2)

3、刪除成員del.php3
<?
require("common.php3");
$id=chop($id);
if(!isset($id))error("請輸入要刪除的用戶ID !");
elseif($pwd<>$adminpass)error("管理員密碼錯誤!");
else{
  $data=dbmopen("class","w");
  dbmdelete($data,$id);
  dbmclose($data);
  $data=dbmopen("password","w");
  dbmdelete($data,$id);
  dbmclose($data);
  header("location:index.php3");
}
?>

4、公用文件common.php3
<?
$adminpass="test";
function error($msg){
?>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="style.css"><title>同學錄 出錯</title></head><body bgcolor="#ffffff">
<html><head></head><body bgcolor="#FFFFFF"><center><table border="0" width="80%" height="80%" cellspacing="0" cellpadding="0">
<tr><td width="100%"><table border="0" width="100%" bgcolor="#000000" cellspacing="0" cellpadding="0">
<tr><td width="100%"><table border="0" cellspacing="1" width="100%" align=left height="320">
<tr><td width="100%" bgcolor="#FFB500" align=center height="31"><font color="#804000"><span style="font-size: 11pt">同學錄 出錯</span></font></td>
</tr><tr><td width="100%" align=left height="247" bgcolor="#F7F7F7"><span style="font-size: 11pt"><p align="center">
出錯原因:<font color="#FF0000"><? echo $msg;?></font></p><p align="center"><a href="Javascript:history.go(-1);"><font color="#000000">請點這里返回檢查你的輸入是否有誤</font></a></p>
<p align="center">[ <a href="Javascript:history.go(-1);">返回</a> ]</p></span></td></tr><tr><td width="100%" bgcolor="#FFB500" height="30"><p align="right"><span   
style="font-size: 9pt"><font color="#804000">Copyright 200x y10k </font><font face="Arial" color="#804000">.Allrights reserved.</font></span></td>
</tr></table></td></tr></table></td></tr></table></center></body></html>
<?
}
?>

5、登陸文件login.php3
<?
require("common.php3");
if($submit){
$id=chop($id);
  if($id=="")error("請輸入您的用戶名稱!");
  else{
    $dbm=dbmopen("password","r");
    if(!dbmexists($dbm,$id))error("沒有這個用戶名稱!");
    else{
      $pass=dbmfetch($dbm,$id);
      if($pass==$password){
        setcookie("login",$id,time()+31536000);
        header("location:index.php3");
      }else error("您的密碼不對!如果忘記密碼,請使用忘記密碼功能!");
    }
    dbmclose($dbm);
  }
}else{
?>
<html>
<head>
<title>深圳中學2000屆高中(12)班同學錄:::版權(quán)所有:辛 主站蜘蛛池模板: 久久精品国产精品亚洲红杏 | 亚洲视频一二 | 一二三四在线观看视频中国 | 国产麻豆福利a v在线播放 | 黄频在线| 一二三四在线观看视频中国 | 一区二区三区在线观看视频 | 久久久久亚洲国产 | 天天综合天天色 | 性欧美zoz0另类xxxx | 高清一区二区三区视频 | 国产精品视频一区二区猎奇 | 激情小说图片 | 网站国产 | 91亚洲国产成人久久精品网址 | 亚洲热在线 | 色成人综合| 国产在线毛片 | 91中文| 色综合五月激情综合色一区 | 自拍偷拍2019 | 国产91精品久久久久久久 | 欧美黑人巨大日本人又爽又色 | 日本免费一区二区三区a区 日本免费一区二区三区看片 | 久久综合一 | 起碰97| 国产精品成人亚洲 | 国产精品jlzz视频 | 婷婷色在线 | 91精品成人免费国产片 | 国产91精品福利在线观看 | 日本一区二区视频免费播放 | 狠狠干婷婷 | 国内不卡一二三四区 | 一级做a爰片久久毛片人呢 一级做a爰片久久毛片图片 | 欧美激情性色生活片在线观看 | 中文字幕在线观看日韩 | 99久久精品免费观看国产 | 玖玖色在线 | 亚洲精品在线不卡 | 亚洲国产成人久久一区www |