1:
<HTML>
2:
<HEAD>
3:
<TITLE>Murethand - Invicta</TITLE>
4:
5:
if (!$user->data['is_registered'])
6:
{
7:
if ($user->data['is_bot'])
8:
{
9:
// the user is a bot, send them back to home plate...
10:
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
11:
}
12:
// the user is not logged in, give them a chance to login here...
13:
login_box('', 'LOGIN');
14:
}
15:
16:
<BODY style="MARGIN: 15px 10px;BACKGROUND: #222222" text=#000000></BODY>
17:
18:
19:
20:
<?php
21:
//phpbb3 login, user session management
22:
$phpbb_root_path = '/forum/';
23:
$returnAddress ='/forum/index.php';
24:
//including phpBB3 stuff
25:
define('IN_PHPBB', true);
26:
$phpEx = substr(strrchr(__FILE__, '.'), 1);
27:
include($phpbb_root_path . 'common.' . $phpEx);
28:
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
29:
30:
// Start phpbb3 session management
31:
$user->session_begin();
32:
$auth->acl($user->data);
33:
$user->setup('viewforum');
34:
?>
35:
36:
37:
<?php
38:
39:
40:
if (!$user->data['is_registered']) {
41:
echo '<div id="login">';
42:
echo '<form method="post" action="/forum/ucp.php?mode=login" class="headerspace">';
43:
44:
echo ' <ul>';
45:
echo ' <li><label for="username">Username:</label> <input type="text" name="username" id="username" size="5" class="inputbox" title="Username" /> </li>';
46:
echo ' <li><label for="password">Password:</label> <input type="password" name="password" id="password" size="5" class="inputbox" title="Password" /></li>';
47:
echo ' <li><label for="autologin">Log me on automatically each visit <input type="checkbox" name="autologin" id="autologin" class="checkbox" /></label> <input type="submit" name="login" value="Login" class="button2" /></li>';
48:
echo ' </ul>';
49:
echo ' <input type="hidden" name="redirect" value="http://www.murethand.com">';
50:
echo ' </fieldset>';
51:
echo ' </form>';
52:
echo ' </div>';
53:
54:
}
55:
56:
if ($user->data['is_registered']) {
57:
echo '<a href="/forum/ucp.php?mode=logout'.$SID.'">Logout</a>';
58:
59:
}
60:
61:
?>
62:
63:
64:
</HEAD>