BLOG HOSTER---PHP & MYSQL
Create Blogs in seconds
Installation of your
BlogHoster system is easy.
源代码在线查看: comments.php
$page = "comments.php";
include "header.php";
// CHECK IF COMMENTS ARE DISABLED BY ADMIN
if($group_info[allow_comments] != "1") { exit(); }
if(isset($_POST['task'])) { $task = $_POST['task']; } else { $task = "main"; }
if($task == "dosave") {
$show_comments = $_POST['show_comments'];
$who_comments = $_POST['who_comments'];
$default_comments = $_POST['default_comments'];
$notify_comments = $_POST['notify_comments'];
$logip_comments = $_POST['logip_comments'];
$manage_comments = $_POST['manage_comments'];
mysql_query("UPDATE bhost_users SET show_comments='$show_comments', who_comments='$who_comments', default_comments='$default_comments', notify_comments='$notify_comments', logip_comments='$logip_comments', manage_comments='$manage_comments' WHERE u_id='$user_info[u_id]'");
$user_info = mysql_fetch_assoc(mysql_query("SELECT * FROM bhost_users WHERE u_id='$user_info[u_id]'"));
echo $head;
echo "
$comments1
$comments2
";
echo $foot;
exit();
}
if($task == "main") {
echo $head;
echo "
$comments1
$comments4
$comments5
$comments6
$comments7
"; if($group_info[allow_members] == "1") { echo " $comments8"; } echo "
$comments9
$comments10
$comments11
$comments12
"; if($group_info[allow_members] == "1") { echo " $comments13"; } echo "
$comments14
$comments15
$comments16
$comments17
$comments18
$comments19
$comments20
$comments21
$comments22
$comments23
$comments24
$comments25
$comments26
$comments27
$comments28
";
echo $foot;
}
?>