Revision 188, 0.7 KB
(checked in by exi, 14 years ago)
|
Changed default td width for options to 160px.
Added the appropiate timeframe to the fast contractlisttable.
Events now can also return a reference to a variable containing additional information.
Killlists now return a non formatted isk-value for losses/kills, please report any errors on other pages.
Added a custom user menu, able to be shownon every page.
Added some code for user logins, please ignore it for now.
Added a small battle statistics frame to the battle overview.
To login as admin now just leave user blank and use the admin password.
|
Line | |
---|
1 | <?php |
---|
2 | require_once('class.page.php'); |
---|
3 | require_once('class.user.php'); |
---|
4 | |
---|
5 | $page = new Page('Login'); |
---|
6 | |
---|
7 | if (trim($_POST['usrpass'])) |
---|
8 | { |
---|
9 | if ($_POST['usrlogin'] == '' && $_POST['usrpass'] == ADMIN_PASSWORD) |
---|
10 | { |
---|
11 | $page->session_->create(1); |
---|
12 | |
---|
13 | header('Location: ?a=admin'); |
---|
14 | } |
---|
15 | else |
---|
16 | { |
---|
17 | $result = user::login($_POST['usrlogin'], $_POST['usrpass']); |
---|
18 | if ($result) |
---|
19 | { |
---|
20 | header('Location: ?a=home'); |
---|
21 | } |
---|
22 | else |
---|
23 | { |
---|
24 | $smarty->assign('error', 'Login error, please check your username and password.'); |
---|
25 | } |
---|
26 | } |
---|
27 | } |
---|
28 | |
---|
29 | $page->setContent($smarty->fetch(get_tpl('user_login'))); |
---|
30 | $page->generate(); |
---|
31 | ?> |
---|