remove necrose code
This commit is contained in:
parent
9b51435ec9
commit
f526edf2d1
1 changed files with 0 additions and 58 deletions
|
@ -183,8 +183,6 @@ $blogPost = load_blog($conn, $blogId);
|
|||
// If blogpost could not be retieved, display warning and die.
|
||||
if(!$blogPost) {
|
||||
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Foud", true, 404);
|
||||
//include_once($_SERVER["DOCUMENT_ROOT"]."/errors/404.php");
|
||||
//include_once($COMMONS."/footer.php");
|
||||
die();
|
||||
}
|
||||
|
||||
|
@ -235,60 +233,4 @@ include_once(\"%s\");
|
|||
$blogPost->address,
|
||||
addslashes($blogPost->display_comments()),
|
||||
$COMMONS."/footer.php");
|
||||
|
||||
/*
|
||||
// Display the header with title being the blog name
|
||||
display_header($blogPost->title);
|
||||
|
||||
// Display the blog
|
||||
$blogPost->display_article();
|
||||
printf("<hr style=\"border-style: solid;\">");
|
||||
|
||||
// Display post comment form.
|
||||
if(is_null($blogPost->address))
|
||||
{
|
||||
printf("
|
||||
<article>
|
||||
<h2> Comments: </h2>
|
||||
<form method=\"post\" action=\"%s\">
|
||||
<input type=\"hidden\" name=\"blogpost_id\" value=\"%s\">
|
||||
<label for=\"comment_entry\">Write a comment (%s):</label>
|
||||
<div class=\"centered-container\">
|
||||
<textarea name=\"comment_entry\" class=\"comment-box\"
|
||||
tabindex=\"1\"></textarea>
|
||||
</div>
|
||||
<input name=\"submit\" type=\"submit\" tabindex=\"2\"
|
||||
value=\"Send\">
|
||||
</form>
|
||||
</article>
|
||||
",
|
||||
htmlspecialchars($_SERVER["PHP_SELF"]), $blogId,
|
||||
isset($_SESSION["current_user"]) ?
|
||||
$_SESSION["current_user"]->user_name : "Guest");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("
|
||||
<article>
|
||||
<h2> Comments: </h2>
|
||||
<form method=\"post\" action=\"%s\">
|
||||
<input type=\"hidden\" name=\"blogpost_id\" value=\"%s\">
|
||||
<input type=\"hidden\" name=\"address\" value=\"%s\">
|
||||
<label for=\"comment_entry\">Write a comment (%s):</label>
|
||||
<div class=\"centered-container\">
|
||||
<textarea name=\"comment_entry\" class=\"comment-box\"
|
||||
tabindex=\"1\"></textarea>
|
||||
</div>
|
||||
<input name=\"submit\" type=\"submit\" tabindex=\"2\"
|
||||
value=\"Send\">
|
||||
</form>
|
||||
</article>
|
||||
",
|
||||
htmlspecialchars($_SERVER["PHP_SELF"]), $blogId, $blogPost->address,
|
||||
isset($_SESSION["current_user"]) ?
|
||||
$_SESSION["current_user"]->user_name : "Guest");
|
||||
}
|
||||
// Display the blog comments
|
||||
$blogPost->display_comments();
|
||||
*/
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue