From f526edf2d16974909f91b440d09fb3776a3c0e73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zden=C4=9Bk=20Borovec?= Date: Wed, 31 Jul 2024 06:32:37 +0200 Subject: [PATCH] remove necrose code --- docs/www/blog/generatearticle.php | 58 ------------------------------- 1 file changed, 58 deletions(-) diff --git a/docs/www/blog/generatearticle.php b/docs/www/blog/generatearticle.php index 294aaaf..e1f30cc 100644 --- a/docs/www/blog/generatearticle.php +++ b/docs/www/blog/generatearticle.php @@ -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("
"); - -// Display post comment form. -if(is_null($blogPost->address)) -{ - printf(" -
-

Comments:

-
- - -
- -
- -
-
- ", - htmlspecialchars($_SERVER["PHP_SELF"]), $blogId, - isset($_SESSION["current_user"]) ? - $_SESSION["current_user"]->user_name : "Guest"); -} -else -{ - printf(" -
-

Comments:

-
- - - -
- -
- -
-
- ", - htmlspecialchars($_SERVER["PHP_SELF"]), $blogId, $blogPost->address, - isset($_SESSION["current_user"]) ? - $_SESSION["current_user"]->user_name : "Guest"); -} -// Display the blog comments -$blogPost->display_comments(); -*/ ?>