Show sourcecode

The following files exists in this folder. Click to view.

Foogler_blog/pages/login

PLogin.php
PLoginProcess.php
PLogoutProcess.php

PLogin.php

35 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
<?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();