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/

PInstall.php

32 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
<?php
//--------------------------
// PInstall.php
//
// Page for resetting database
//--------------------------

$db DB_DATABASE;
$prefix DB_PREFIX;

//HTML
$html = <<<END
  If you click the link below the database will be deleted and new tables will be created.<p />
  You have chosen the database <b>
{$db}</b> with the prefix <b>{$prefix}</b>. 
  <p />
  &nbsp;
  <p />
  <a href="?p=installp">Empty the database and create new content</a>
END;

//------------------------
//Shows HTML
require_once(TP_SOURCEPATH 'CHTMLPage.php');

$page = new CHTMLPage();

$page->printHTMLHeader();
$page->printPageHeader();
$page->printPageBody($html);
//$page->printTagList();
$page->printRightColumn();