###############################################
This article is original, if quoted, please indicate the author's information.
Author: Cool Crazy
Email:edincur@yeah.net
Http://safebase.yeah.net
###############################################
# # adduser.php ################################
###############################################
Require ("func.php");
if (empty ($name) or empty ($pwd 1)) {
Show_error (2);
$founderr = 1;
}
if (Is_user_exits ($name)) {
Show_error (3);
$founderr = 1;
}
if ($pwd 1<> $pwd 2) {
Show_error (5);
$founderr = 1;
}
if (strlen ($name) >16 or strlen ($pwd 1) >16 or strlen ($QM) >255) {
Show_error (6);
$founderr = 1;
}
$password = $pwd 1;
if (! $founderr) {
AddUser ();
echo "Success!";
}
?>
######################
# # admin.php ########
######################
Require "func.php";
if (Adminok ()) {
?>
<title>Management</title>
Please select a layout to operate
$sql = "SELECT * from Boardinfo", $sql _result=mysql_query ($sql); while ($sql _row=mysql_fetch_ Array ($sql _result)) {?> }?>
chinesename |
name |
!--? php
">!--? php echo $sql _row[chinesename]; ?--> |
!--? php echo $sql _row[name];?--" |
"!--? 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]; ?>
} ?>
|
}
else {
Show_error (1);
}
?>
The above describes the temporary Internet files MySQL-based forum (1), including the content of the temporary Internet files, I hope that the PHP tutorial interested in a friend helpful.