Home > php教程 > php手册 > body text

基于mysql的论坛(1)

WBOY
Release: 2016-06-13 12:38:43
Original
1304 people have browsed it

###############################################
此篇文章属原创,如有引用,请标明作者信息。
作者:冷情疯子
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 "成功!";
}

?>
######################
### admin.php ########
######################
require "func.php";
if (adminok()) {
?>


管理





璇烽
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!