######################################## ####### This article is original, if there is any reference, please indicate the author information. Author: cold love crazy Email: edincur@yeah.nethttp: // safebase.yeah.net ##################################### ######################################## #########
This article is original. if it is referenced, please indicate the author's information.
Author: cool-hearted madman
Email: edincur@yeah.net
Http://safebase.yeah.net
######################################## #######
### Adduser. 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 "successful! ";
}
?>
######################
### Admin. php ########
######################
Require "func. php ";
If (adminok ()){
?>
Management
Select a layout for operations
Chinesename |
Name |
$ SQL = "select * from boardinfo ";$ SQL _result = mysql_query ($ SQL );While ($ SQL _row = mysql_fetch_array ($ SQL _result )){?>
"> |
|
}?>
|
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 );
}
?>