marc by marc jacobs官网 基于mysql的论坛(5)
程序员文章站
2022-05-05 14:56:07
...
## manage_read.php
require ("func.php");
if (check_admin_password()) {
$board=$jl_forum[board];
switch ($job){
case "setgood":
set_good($jl_forum[board],$uid);
$work=1;
break;
case "setnogood":
set_no_good($jl_forum[board],$uid);
$work=1;
break;
case "delete":
del_doc($jl_forum[board],$uid);
$work=1;
break;
}
if (!$word) {
add_one_hit($board,$id);
}
$sql="select * from $board where id=$id";
$sql_result=mysql_query($sql);
$sum=mysql_num_rows($sql_result);
$sql_row=mysql_fetch_array($sql_result);
$title=$sql_row[title];
$writer=$sql_row[writer];
$c
$writetime=$sql_row[writetime];
$hits=$sql_row[hits];
$good=$sql_row[good];
$rootid=$sql_row[id];
$fromip=$sql_row[fromip];
$sql="select * from $board where slaveid=$id";
$sql_result=mysql_query($sql);
if ($sum0) {
?>
if (!$add){
while($sql_row=mysql_fetch_array($sql_result)) {
$good=$sql_row[good];
?>
}
}
?>
}
else {
echo "此条纪录已经被删除";
}
}
else {
show_error(1);
}
?>
## modify.php
require "func.php";
if (check_user_password($jl_forum[name],$jl_forum[password])) {
$name=$jl_forum[name];
$password=$jl_forum[password];
$sql="select * from user where name='$name'";
$sql_result=mysql_query($sql);
$sql_row=mysql_fetch_array($sql_result);
?>
修改资料
}
else {
show_error(4);
}
?>
## modify_l.php
require "func.php";
if ($b1) {
if (is_user_exits($name) and check_user_password($name,$password)) {
setcookie ("jl_forum[name]",$name);
setcookie ("jl_forum[password]",$password);
redirect2("modify.php");
}
else {
show_error(4);
}
}
else {
?>
main
}
?>
## oper.php
require "func.php";
if (adminok()) {
if (isset($add_board)) {
if (isset($name) and isset($chinesename) and !is_board_exits($name)) {
create_board_table($name,$chinesename);
}
else {
echo "出现错误!(可能版面已经存在)";
$founderr=1;
}
}
elseif (isset($del_board)) {
if (isset($board)) {
drop_board_table($board);
}
else {
echo "出现错误!(请选择要删除的版面)";
$founderr=1;
}
}
elseif (isset($modify)) {
if (isset($name) and isset($chinesename)) {
update_board($name,$chinesename);
}
else {
echo "出现错误!(请填写完整)";
$founderr=1;
}
}
elseif (isset($add_admin)) {
if (is_user_exits($name) and isset($board)) {
add_admin($board,$name);
}
else {
echo "出现错误!(极有可能是用户不存在)";
$founderr=1;
}
}
elseif (isset($delete_admin)) {
if (is_user_exits($name)) {
del_admin($name);
}
else {
echo "出现错误!(极有可能是用户不存在)";
$founderr=1;
}
}
else {
echo "你要干什么?";
$founderr=1;
}
if (!$founderr) {
redirect2("admin.php");
}
}
else {
show_error(1);
}
?>
require ("func.php");
if (check_admin_password()) {
$board=$jl_forum[board];
switch ($job){
case "setgood":
set_good($jl_forum[board],$uid);
$work=1;
break;
case "setnogood":
set_no_good($jl_forum[board],$uid);
$work=1;
break;
case "delete":
del_doc($jl_forum[board],$uid);
$work=1;
break;
}
if (!$word) {
add_one_hit($board,$id);
}
$sql="select * from $board where id=$id";
$sql_result=mysql_query($sql);
$sum=mysql_num_rows($sql_result);
$sql_row=mysql_fetch_array($sql_result);
$title=$sql_row[title];
$writer=$sql_row[writer];
$c
$writetime=$sql_row[writetime];
$hits=$sql_row[hits];
$good=$sql_row[good];
$rootid=$sql_row[id];
$fromip=$sql_row[fromip];
$sql="select * from $board where slaveid=$id";
$sql_result=mysql_query($sql);
if ($sum0) {
?>
标题: ◎操作:";?>转进精华区 ";?>删除if ($good=="y"){ ?> ";?>转出精华区 } ?> |
作者:(,点击:) ')"> |
※ 来源: [◆FROM:] |
if (!$add){
while($sql_row=mysql_fetch_array($sql_result)) {
$good=$sql_row[good];
?>
标题: $id=$sql_row[id]; ?> ◎操作:";?>转进精华区 ";?>删除if ($good=="y"){ ?> ";?>转出精华区 } ?> |
作者:() ')"> "> |
※ 来源: [◆FROM:] |
}
}
?>
}
else {
echo "此条纪录已经被删除";
}
}
else {
show_error(1);
}
?>
## modify.php
require "func.php";
if (check_user_password($jl_forum[name],$jl_forum[password])) {
$name=$jl_forum[name];
$password=$jl_forum[password];
$sql="select * from user where name='$name'";
$sql_result=mysql_query($sql);
$sql_row=mysql_fetch_array($sql_result);
?>
修改用户个人资料
|
}
else {
show_error(4);
}
?>
## modify_l.php
require "func.php";
if ($b1) {
if (is_user_exits($name) and check_user_password($name,$password)) {
setcookie ("jl_forum[name]",$name);
setcookie ("jl_forum[password]",$password);
redirect2("modify.php");
}
else {
show_error(4);
}
}
else {
?>
修改资料登陆 |
|
论坛信息 |
|
}
?>
## oper.php
require "func.php";
if (adminok()) {
if (isset($add_board)) {
if (isset($name) and isset($chinesename) and !is_board_exits($name)) {
create_board_table($name,$chinesename);
}
else {
echo "出现错误!(可能版面已经存在)";
$founderr=1;
}
}
elseif (isset($del_board)) {
if (isset($board)) {
drop_board_table($board);
}
else {
echo "出现错误!(请选择要删除的版面)";
$founderr=1;
}
}
elseif (isset($modify)) {
if (isset($name) and isset($chinesename)) {
update_board($name,$chinesename);
}
else {
echo "出现错误!(请填写完整)";
$founderr=1;
}
}
elseif (isset($add_admin)) {
if (is_user_exits($name) and isset($board)) {
add_admin($board,$name);
}
else {
echo "出现错误!(极有可能是用户不存在)";
$founderr=1;
}
}
elseif (isset($delete_admin)) {
if (is_user_exits($name)) {
del_admin($name);
}
else {
echo "出现错误!(极有可能是用户不存在)";
$founderr=1;
}
}
else {
echo "你要干什么?";
$founderr=1;
}
if (!$founderr) {
redirect2("admin.php");
}
}
else {
show_error(1);
}
?>
以上就介绍了marc by marc jacobs官网 基于mysql的论坛(5),包括了marc by marc jacobs官网方面的内容,希望对PHP教程有兴趣的朋友有所帮助。
推荐阅读
-
marc by marc jacobs 官网 php实现mysql同步的实现方法
-
marc by marc jacobs官网 php 攻击方法之谈php+mysql注射语句构造
-
marc by marc jacobs官网 PHP FOR MYSQL 代码生成助手根据Mysql里的字段自动生成类文件的
-
marc by marc jacobs 官网 脚本安全的本质_PHP+MYSQL第1/3页
-
marc by marc jacobs 官网 mysql建立外键
-
marc by marc jacobs官网 php 攻击方法之谈php+mysql注射语句构造
-
marc by marc jacobs 官网 PHP查询MySQL大量数据的时候内存占用分析
-
marc by marc jacobs 官网 基于mysql的论坛(6)
-
marc by marc jacobs 官网 mysql建立外键
-
marc by marc jacobs官网 PHP FOR MYSQL 代码生成助手根据Mysql里的字段自动生成类文件的