-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathaccount.php
49 lines (33 loc) · 1.35 KB
/
account.php
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
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
include 'core/Page.php';
if ( !Session::logged_in() ) Page::Redirect('login');
$p= new Page;
if ( !$p->ajax ) $p->HTML('header.html',array("###MENU###"=>Dropdown_menu($p)));
$p->title ="Your Account";
$p->CSS( "main.css" );
$p->Jquery();
$p->JS( 'notifier.js' );
global $auth_database,$auth;
$profiles=new Profile($auth_database);
$p->HTML('<div class="formboundary">');
$p->HTML('<h4>Your Profile</h4>');
$pro=$profiles->Get($auth['ID']);
$link_title="Send mail to ".$pro['first_name'].' '.$pro['last_name'].' or right click to copy URL\'s email address';
$acls=explode(",",$auth['acl']);
$access='';
foreach ( $acls as $ac ) if ( strlen($level=trim($ac))>0 ) $access.='<span class="acl">'.$ac.'</span>';
$html=
$auth['username'].'<BR>'.
'<em>'.$pro['first_name'].' '.$pro['last_name'].'</em><BR>'.
'<a href="mailto:'.$pro['email'].'" title="'.$link_title.'" alt="'.$link_title.'" class="bare">'.$pro['email'].'</a>'.'<BR>'.
'<h4>Access</h4>'.$access.'<BR>'
;
$p->HTML($html);
$p->HTML('</div>');
$p->HTML('<div class="formboundary">');
$p->Fragment("password","password.php");
$p->HTML('<div id="password"><center><img src="i/LOAD.GIF"></center></div>');
$p->HTML('</div>');
$p->HTML('<a href="profiles" class="bare buttonlink">All Users →</a>');
if ( !$p->ajax ) $p->HTML('footer.html');
$p->Render();