Revision 188, 0.6 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 | |
---|
3 | class Session |
---|
4 | { |
---|
5 | function Session() |
---|
6 | { |
---|
7 | if (isset($_REQUEST[session_name()])) |
---|
8 | { |
---|
9 | session_start(); |
---|
10 | if (isset($_SESSION['user'])) |
---|
11 | { |
---|
12 | user::loggedin(true); |
---|
13 | } |
---|
14 | } |
---|
15 | } |
---|
16 | |
---|
17 | function isAdmin() |
---|
18 | { |
---|
19 | return isset($_SESSION['admin']); |
---|
20 | } |
---|
21 | |
---|
22 | function isSuperAdmin() |
---|
23 | { |
---|
24 | return isset($_SESSION['admin_super']); |
---|
25 | } |
---|
26 | |
---|
27 | function create($admin = false) |
---|
28 | { |
---|
29 | session_start(); |
---|
30 | $_SESSION['admin'] = $admin; |
---|
31 | } |
---|
32 | |
---|
33 | function destroy() |
---|
34 | { |
---|
35 | session_destroy(); |
---|
36 | } |
---|
37 | } |
---|
38 | ?> |
---|