Marc by Marc Jacobs website based on MySQL forum (5)

Source: Internet
Author: User
Tags setcookie
# # 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 ($sum <>0) {
?>


<title><?php echo $title;? ></title>





















title: Action: go to the essence   to remove if ($good = = "Y") {
?>
turn out the essence area
}
?>
Author: ( , click: ) ') ' > ' >
※ Source: [from: ]



if (! $add) {
while ($sql _row=mysql_fetch_array ($sql _result)) {
$good = $sql _row[good];
?>













Title: $id = $sql _row[id];
> Action: Go to the Essence Area   to remove if ($good = = "Y") {
?>
turn out the essence area
}
?>
Author: ( ) ">" >
※ Source: [from: ]

}
}
?>





}
else {
echo "This record has been deleted";
}
}
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);
?>


<title>Modify Information</title>







Modify User Profile


















}
else {
Show_error (4);
}
?>
# # Modify_l.php
Require "func.php";
if ($b 1) {
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 {
?>


<title>Main</title>


















Modify Data Login



Forum Information





}
?>
# # 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 "Error occurred! (Possible layout already exists) ";
$founderr = 1;
}
}
ElseIf (Isset ($del _board)) {
if (Isset ($board)) {
Drop_board_table ($board);
}
else {
echo "Error occurred! (Please select the layout you want to delete) ";
$founderr = 1;
}
}
ElseIf (Isset ($modify)) {
if (Isset ($name) and Isset ($chinesename)) {
Update_board ($name, $chinesename);
}
else {
echo "Error occurred! (please complete) ";
$founderr = 1;
}
}
ElseIf (Isset ($add _admin)) {
if (Is_user_exits ($name) and Isset ($board)) {
Add_admin ($board, $name);
}
else {
echo "Error occurred! (most likely the user does not exist) ";
$founderr = 1;
}
}
ElseIf (Isset ($delete _admin)) {
if (Is_user_exits ($name)) {
Del_admin ($name);
}
else {
echo "Error occurred! (most likely the user does not exist) ";
$founderr = 1;
}
}
else {
echo "What are you doing?" ";
$founderr = 1;
}
if (! $founderr) {
Redirect2 ("admin.php");
}
}
else {
Show_error (1);
}
?>

The above describes the Marc by Marc Jacobs website based on the MySQL forum (5), including the Marc by Marc Jacobs website content, I hope to be interested in PHP tutorial friends helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.