Show sourcecode

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/

PDeletePost.php

38 lines ASCII Windows (CRLF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?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 />
  &nbsp;
  <p />
  <a href="?p=deletep&amp;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();