The following files exists in this folder. Click to view.
Foogler_blog/pages/login
PLogin.php
PLoginProcess.php
PLogoutProcess.php
<?php
//--------------------------
// PLogin.php
//
// Shows login page
//--------------------------
//Gets the chosen page for redirect
$redirect = isset($_GET['p']) ? $_GET['p'] : '';
//--------------------------
//Login form
$html = <<<END
<p>You can log in to see what the admin pages look like with <i>guest</i> as both username and password, however you can't add/delete/edit posts.</p>
<form action="?p=loginp" method="POST">
<label>Username:</label><label style="margin-left:167px;">Password:</label>
<input type="text" name="username" class="textbox" />
<input type="password" name="password" class="textbox" />
<input type="hidden" name="redirect" value="{$redirect}" />
<input type="submit" value="Login" class="button" />
</form>
END;
//-----------------
//Prints HTML
require_once(TP_SOURCEPATH . 'CHTMLPage.php');
$page = new CHTMLPage();
$page->printHTMLHeader();
$page->printPageHeader();
$page->printPageBody($html);
$page->printTagList();
$page->printRightColumn();