Click the button below to confirm the deletion.
\n" ."\n"); html_footer(); break; case 'D' : // Delete comment (confirmed) db_query("DELETE FROM comment WHERE id = $id"); header("Location: $PHP_SELF"); break; case 'e' : // Edit comment case 'r' : // New comment if ($LOGIN_USER == "") { header("Location: login.php?PAGE=comment.php?$op$id+p" . urlencode($path)); return; } $havedata = 0; if ($REQUEST_METHOD == "POST") { if ($LOGIN_USER != "" && $LOGIN_LEVEL < AUTH_DEVEL) $create_user = $LOGIN_USER; else if (array_key_exists("AUTHOR", $_POST)) $create_user = trim($_POST["AUTHOR"]); else $create_user = ""; if (array_key_exists("FILE", $_POST)) $file = $_POST["FILE"]; else $file = ""; if (array_key_exists("STATUS", $_POST)) $status = (int)$_POST["STATUS"]; else $status = 2; if (array_key_exists("MESSAGE", $_POST)) $contents = trim($_POST["MESSAGE"]); else $contents = ""; if (strpos($contents, "http:") === FALSE && strpos($contents, "https:") === FALSE && strpos($contents, "ftp:") === FALSE && strpos($contents, "mailto:") === FALSE && $contents != "" && $create_user != "" && $file != "") $havedata = 1; if ($create_user != "" && $id == 0 && !$LOGIN_USER) setcookie("FROM", $create_user, time() + 90 * 86400, "/"); } else { if ($id) { $result = db_query("SELECT * FROM comment WHERE id = $id"); if (db_count($result) > 0) { $row = db_next($result); $create_user = $row['create_user']; $contents = $row['contents']; $status = $row['status']; } else { if ($LOGIN_USER != "") $create_user = $LOGIN_USER; else if (array_key_exists("FROM", $_COOKIE)) $create_user = $_COOKIE["FROM"]; else $create_user = "AnonymousYour comment posting is missing required information. " ."Please fill in all fields marked in " ."red and resubmit your comments.
\n"); $hstart = ""; $hend = ""; } else { $hstart = ""; $hend = ""; } if ($op == "e") print("