forked from Jceggbert5/ABXD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuserpanel.php
33 lines (25 loc) · 1014 Bytes
/
userpanel.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
<?php
$userMenu = new PipeMenu();
if($loguserid)
{
$userMenu->add(new PipeMenuHtmlEntry(userLink($loguser)));
if(isAllowed("editProfile"))
$userMenu->add(new PipeMenuLinkEntry(__("Edit profile"), "editprofile", "", "", "pencil"));
if(isAllowed("viewPM"))
$userMenu->add(new PipeMenuLinkEntry(__("Private messages"), "private", "", "", "envelope"));
if(isAllowed("editMoods"))
$userMenu->add(new PipeMenuLinkEntry(__("Mood avatars"), "editavatars", "", "", "picture"));
$bucket = "bottomMenu"; include("./lib/pluginloader.php");
if(!isset($_POST['id']) && isset($_GET['id']))
$_POST['id'] = (int)$_GET['id'];
if (isset($user_panel))
echo $user_panel;
$userMenu->add(new PipeMenuLinkEntry(__("Log out"), "", "", "", "signout", "document.forms[0].submit(); return false;"));
}
else
{
$userMenu->add(new PipeMenuLinkEntry(__("Register"), "register", "", "", "user"));
$userMenu->add(new PipeMenuLinkEntry(__("Log in"), "login", "", "", "signin"));
}
$layout_userpanel = $userMenu;
?>