The following files exists in this folder. Click to view.
Foogler_blog/pages
PAuthor.php
PCommentProcess.php
PDeleteCommentProcess.php
PDeletePost.php
PDeletePostProcess.php
PEditPost.php
PEditPostProcess.php
PErDiagramme.php
PIndex.php
PInstall.php
PInstallProcess.php
PNewPost.php
PNewPostProcess.php
PRssFeed.php
PShowPost.php
PStatistics.php
PValidate.php
login/
<?php
//--------------------------
// PDeletePost.php
//
// Shows page to make sure user is certain of deleting post
//--------------------------
//Checks that user is logged in
if(!isset($_SESSION['accountUser'])) {
require_once("login/PLogin.php");
exit;
}
//-----------------------------------
//Handles GET variables
$chosenPost = isset($_GET['id']) ? $_GET['id'] : '';
//HTML
$html = <<<END
If you're sure you want to delete the post, press the link below.
<p />
<p />
<a href="?p=deletep&id={$chosenPost}">Delete the post</a>
END;
//------------------------
//Shows HTML
require_once(TP_SOURCEPATH . 'CHTMLPage.php');
$page = new CHTMLPage();
$page->printHTMLHeader();
$page->printPageHeader();
$page->printPageBody($html);
//$page->printTagList();
$page->printRightColumn();