Account not found... please click back and try again.

\n"); SQL_close($db_link); include $inc_dir . "footer.php3"; exit; } if (!check_pw($password, $pass)) { print("

Password authentication incorrect. Please click back and enter the password again, or if you are using cookies, please login again.

\n"); SQL_close($db_link); include $inc_dir . "footer.php3"; exit; } if ($moderated) { if (($moderator == $user) || ($admin)) { $mod_stat = 1; } else { $mod_stat = 0; } } else { $mod_stat = 0; } if ($HTTP_VIA != "") { $fields = ", remote_addr, user_agent, proxy_addr, proxy_host, proxy_agent"; $remote_addr = $HTTP_X_FORWARDED_FOR; $user_agent = addslashes($HTTP_USER_AGENT); $proxy_addr = $REMOTE_ADDR; $proxy_host = addslashes($REMOTE_HOST); $proxy_agent = addslashes($HTTP_VIA); $values = ", '$remote_addr', '$user_agent', '$proxy_addr', '$proxy_host', '$proxy_agent'"; } else { $fields = ", remote_addr, remote_host, user_agent"; $user_agent = addslashes($HTTP_USER_AGENT); $remote_addr = $REMOTE_ADDR; $remote_host = addslashes($REMOTE_HOST); $values = ", '$remote_addr', '$remote_host', '$user_agent'"; } if (!isset($thread_id)) { $statement = "INSERT INTO articles (category, username, title, text, posted, approved, touched, status, replies, thread_id$fields)"; $statement .= " VALUES ('$category', '$user', '$post_title', '$text', NOW(), $mod_stat, NOW(), 0, 0, 0$values)"; } else { $statement = "UPDATE articles SET replies=replies+1 WHERE id=$thread_id"; $res = SQL_query($statement, $db_link); $statement = "INSERT INTO articles (category, username, title, text, posted, thread_id, approved, status, replies, touched$fields)"; $statement .= " VALUES ('$category', '$user', '$post_title', '$text', NOW(), $thread_id, $mod_stat, 0, 0, NOW()$values)"; } // output it... helpful for debugging purposes... //print("

SQL Statement: $statement

"); $db_result = SQL_query($statement, $db_link); // find out how many results there were... $aff_rows = SQL_get_aff_rows($db_link, $db_result); //print("
There are currently $aff_rows categories.

\n"); print("
\n"); print("\n"); $title2 = make_clickable($post_title); $title2 = nl2br($title2); $title2 = stripslashes($title2); print("\n"); print("\n"); $text2 = make_clickable($text); $text2 = nl2br($text2); $text2 = stripslashes($text2); print("\n"); if ($thread_id) { $browse_ref = $site_url . "browse_thread" . $ext . "?category=" . urlencode($category) . "&query=$thread_id&thread_name=" . urlencode($post_title); } else { $insert_id = SQL_get_last_id($db_link, $db_result); $browse_ref = $site_url . "browse_thread" . $ext . "?category=" . urlencode($category) . "&query=$insert_id&thread_name=" . urlencode($post_title); } print("
Article Posted
Title: $title2
User: $user
$text2
Click here to return to the topic.
\n"); SQL_close($db_link); // that's all for the moment, folks... include $inc_dir . "footer.php3"; ?>