Location: PHPKode > projects > Write2Left > Skin/Login.php
<?php
/*
+------------------------------------------------------
| Write2Left
| (c) timdorr
| http://www.write2left.com
| hide@address.com
| See License.txt for license info
|------------------------------------------------------
| Script: Login.php
| Description:
|   Contains the login-related parts of the skin
| Created Sep-01-2002
+------------------------------------------------------
*/

/* Class: Skin_Login
 * Description:
 *   The login-related items skin class.
 */
class Skin_Login
{
	function display_login(  )
	{
	return <<<EOF
<tr>
<td class="space"></td>

<td class="main">
<big>Welcome to Write2Left!</big>
<br /><br />
Please login to continue:
<br /><br />
<form action="index.php" method="post">
Username:<br />
<input type="text" name="login_user" size="32" maxlength="32" /><br />
<br />
Password:<br />
<input type="password" name="login_pass" size="32" maxlength="32" /><br />
<br />
<input type="submit" name="submit" value="Login!" />
</form>
</td>

<td class="space">&nbsp;</td>

<td class="space">&nbsp;</td>

<td class="right">&nbsp;</td>
</tr>	
EOF;
	}
	
	function display_login_error( $error )
	{
	return <<<EOF
<tr>
<td class="space"></td>

<td class="main">
<big>Welcome to Write2Left!</big>
<br /><br />
Please login to continue:
<br /><br />
<div class="error">$error</div>
<br />
<form action="index.php" method="post">
Username:<br />
<input type="text" name="login_user" size="32" maxlength="32" /><br />
<br />
Password:<br />
<input type="password" name="login_pass" size="32" maxlength="32" /><br />
<br />
<input type="submit" name="submit" value="Login!" />
</form>
</td>

<td class="space">&nbsp;</td>

<td class="space">&nbsp;</td>

<td class="space">&nbsp;</td>
</tr>	
EOF;
	}	
}
Return current item: Write2Left