###############################################
此篇文章属原创,如有引用,请标明作者信息。
作者:冷情疯子
Email: edincur@yeah.net
http://safebase.yeah.net
###############################################
## adduser.php ################################
###############################################
<?php
require("func.php");
if(empty($name) or empty($pwd1)){
show_error(2);
$founderr=1;
}
if (is_user_exits($name)){
show_error(3);
$founderr=1;
}
if ($pwd1<>$pwd2){
show_error(5);
$founderr=1;
}
if (strlen($name)>16 or strlen($pwd1)>16 or strlen($qm)>255){
show_error(6);
$founderr=1;
}
$password=$pwd1;
if (!$founderr){
adduser();
echo "成功!";
}
?>
######################
### admin.php ########
######################
<?php
require "func.php";
if (adminok()) {
?>
<html>
<head>
<title>管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css/index.css">
</head>
<body bgcolor="#FFFFFF">
请选择版面进行操作<br>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="52%" valign="top">
<table width="98%" border="1" cellspacing="0" cellpadding="0" bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr align="center" bgcolor="#eeeeee">
<td width="42%" height="18">Chinesename</td>
<td width="33%" height="18">Name</td>
</tr>
<?php
$sql="select * from boardinfo";
$sql_result=mysql_query($sql);
while ($sql_row=mysql_fetch_array($sql_result)) {
?>
<tr align="center">
<td width="42%"><a href="admin.php?board=<?php echo $sql_row[name];?>"><?php echo $sql_row[chinesename];?></a></td>
<td width="33%"><?php echo $sql_row[name];?></td>
</tr>
<?php
}
?>
</table>
<br>
<form name="form5" action="oper.php" >
英文名称:
<input type="text" name="name" size="20" maxlength="30">
<br>
中文名称:
<input type="text" name="chinesename" size="20" maxlength="30">
<input type="hidden" name="add_board" value="y">
<br>
<input type="submit" name="add_board" value="增加版面">
</form>
</td>
<td width="48%" valign="top">
<?php
if (isset($board)){
$sql="select * from boardinfo where name='$board'";
$sql_result=mysql_query($sql);
$sql_row=mysql_fetch_array($sql_result);
$name=$sql_row[name];
$chinesename=$sql_row[chinesename];
?>
<table width="98%" border="1" cellspacing="0" cellpadding="0" bordercolorlight="#FFFFFF" bordercolordark="#CCCCCC">
<tr>
<td>
<form name="form1" action="oper.php" >
增加版主:
<input type="text" name="name" size="17" maxlength="16">
<input type="submit" name="add_admin" value="增加">
<input type="hidden" name="add_admin" value="y">
<input type="hidden" name="board" value="<?php echo "$board"?>">
</form>
</td>
</tr>
<tr>
<td>
<form name="form2" action="oper.php" >
删除版主:
<select name="name">
<?php
$sql="select name from user where slaveboard='$board'";
$sql_result=mysql_query($sql);
while ($sql_row=mysql_fetch_array($sql_result)) {
echo "<option value=\"$sql_row[name]\">$sql_row[name]</option>";
}
?>
</select>
<input type="submit" name="delete_admin" value="删除">
<input type="hidden" name="delete_admin" value="y">
</form>
</td>
</tr>
<tr>
<td>
<form name="form3" action="oper.php" >
中文名称
<input type="text" name="chinesename" size="17" maxlength="16" value="<?php echo "$chinesename"?>">
<br>
英文名称
<input type="text" name="name" size="16" maxlength="40" value="<?php echo "$name"?>">
<input type="hidden" name="modify" value="y">
<input type="submit" name="modify" value="更改">
</form>
</td>
</tr>
<tr>
<td>
<form name="form4" action="oper.php" >
<input type="submit" name="del_board" value="删除板块">
<input type="hidden" name="board" value="<?php echo "$board"?>">
<input type="hidden" name="del_board" value="y">
</form>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<?php
}
?>
</td>
</tr>
</table>
</body>
</html>
<?php
}
else {
show_error(1);
}
?>
此篇文章属原创,如有引用,请标明作者信息。
作者:冷情疯子
Email: edincur@yeah.net
http://safebase.yeah.net
###############################################
## adduser.php ################################
###############################################
<?php
require("func.php");
if(empty($name) or empty($pwd1)){
show_error(2);
$founderr=1;
}
if (is_user_exits($name)){
show_error(3);
$founderr=1;
}
if ($pwd1<>$pwd2){
show_error(5);
$founderr=1;
}
if (strlen($name)>16 or strlen($pwd1)>16 or strlen($qm)>255){
show_error(6);
$founderr=1;
}
$password=$pwd1;
if (!$founderr){
adduser();
echo "成功!";
}
?>
######################
### admin.php ########
######################
<?php
require "func.php";
if (adminok()) {
?>
<html>
<head>
<title>管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css/index.css">
</head>
<body bgcolor="#FFFFFF">
请选择版面进行操作<br>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="52%" valign="top">
<table width="98%" border="1" cellspacing="0" cellpadding="0" bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr align="center" bgcolor="#eeeeee">
<td width="42%" height="18">Chinesename</td>
<td width="33%" height="18">Name</td>
</tr>
<?php
$sql="select * from boardinfo";
$sql_result=mysql_query($sql);
while ($sql_row=mysql_fetch_array($sql_result)) {
?>
<tr align="center">
<td width="42%"><a href="admin.php?board=<?php echo $sql_row[name];?>"><?php echo $sql_row[chinesename];?></a></td>
<td width="33%"><?php echo $sql_row[name];?></td>
</tr>
<?php
}
?>
</table>
<br>
<form name="form5" action="oper.php" >
英文名称:
<input type="text" name="name" size="20" maxlength="30">
<br>
中文名称:
<input type="text" name="chinesename" size="20" maxlength="30">
<input type="hidden" name="add_board" value="y">
<br>
<input type="submit" name="add_board" value="增加版面">
</form>
</td>
<td width="48%" valign="top">
<?php
if (isset($board)){
$sql="select * from boardinfo where name='$board'";
$sql_result=mysql_query($sql);
$sql_row=mysql_fetch_array($sql_result);
$name=$sql_row[name];
$chinesename=$sql_row[chinesename];
?>
<table width="98%" border="1" cellspacing="0" cellpadding="0" bordercolorlight="#FFFFFF" bordercolordark="#CCCCCC">
<tr>
<td>
<form name="form1" action="oper.php" >
增加版主:
<input type="text" name="name" size="17" maxlength="16">
<input type="submit" name="add_admin" value="增加">
<input type="hidden" name="add_admin" value="y">
<input type="hidden" name="board" value="<?php echo "$board"?>">
</form>
</td>
</tr>
<tr>
<td>
<form name="form2" action="oper.php" >
删除版主:
<select name="name">
<?php
$sql="select name from user where slaveboard='$board'";
$sql_result=mysql_query($sql);
while ($sql_row=mysql_fetch_array($sql_result)) {
echo "<option value=\"$sql_row[name]\">$sql_row[name]</option>";
}
?>
</select>
<input type="submit" name="delete_admin" value="删除">
<input type="hidden" name="delete_admin" value="y">
</form>
</td>
</tr>
<tr>
<td>
<form name="form3" action="oper.php" >
中文名称
<input type="text" name="chinesename" size="17" maxlength="16" value="<?php echo "$chinesename"?>">
<br>
英文名称
<input type="text" name="name" size="16" maxlength="40" value="<?php echo "$name"?>">
<input type="hidden" name="modify" value="y">
<input type="submit" name="modify" value="更改">
</form>
</td>
</tr>
<tr>
<td>
<form name="form4" action="oper.php" >
<input type="submit" name="del_board" value="删除板块">
<input type="hidden" name="board" value="<?php echo "$board"?>">
<input type="hidden" name="del_board" value="y">
</form>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<?php
}
?>
</td>
</tr>
</table>
</body>
</html>
<?php
}
else {
show_error(1);
}
?>
华山资源网 Design By www.eoogi.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
华山资源网 Design By www.eoogi.com
暂无评论...
更新日志
2025年01月01日
2025年01月01日
- 小骆驼-《草原狼2(蓝光CD)》[原抓WAV+CUE]
- 群星《欢迎来到我身边 电影原声专辑》[320K/MP3][105.02MB]
- 群星《欢迎来到我身边 电影原声专辑》[FLAC/分轨][480.9MB]
- 雷婷《梦里蓝天HQⅡ》 2023头版限量编号低速原抓[WAV+CUE][463M]
- 群星《2024好听新歌42》AI调整音效【WAV分轨】
- 王思雨-《思念陪着鸿雁飞》WAV
- 王思雨《喜马拉雅HQ》头版限量编号[WAV+CUE]
- 李健《无时无刻》[WAV+CUE][590M]
- 陈奕迅《酝酿》[WAV分轨][502M]
- 卓依婷《化蝶》2CD[WAV+CUE][1.1G]
- 群星《吉他王(黑胶CD)》[WAV+CUE]
- 齐秦《穿乐(穿越)》[WAV+CUE]
- 发烧珍品《数位CD音响测试-动向效果(九)》【WAV+CUE】
- 邝美云《邝美云精装歌集》[DSF][1.6G]
- 吕方《爱一回伤一回》[WAV+CUE][454M]