mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-15 03:46:25 +00:00
31 lines
919 B
PHP
31 lines
919 B
PHP
<?
|
|
if(isset($_GET['userid']) && check_perms('users_view_invites')){
|
|
if(!is_number($_GET['userid'])){ error(403); }
|
|
|
|
$UserID=$_GET['userid'];
|
|
$Sneaky = true;
|
|
} else {
|
|
if(!$UserCount = $Cache->get_value('stats_user_count')){
|
|
$DB->query("SELECT COUNT(ID) FROM users_main WHERE Enabled='1'");
|
|
list($UserCount) = $DB->next_record();
|
|
$Cache->cache_value('stats_user_count', $UserCount, 0);
|
|
}
|
|
|
|
$UserID = $LoggedUser['ID'];
|
|
$Sneaky = false;
|
|
}
|
|
|
|
list($UserID, $Username, $PermissionID) = array_values(user_info($UserID));
|
|
|
|
include(SERVER_ROOT.'/classes/class_invite_tree.php');
|
|
$Tree = new INVITE_TREE($UserID);
|
|
|
|
show_header($Username.' > Invites > Tree');
|
|
?>
|
|
<div class="thin">
|
|
<h2><?=format_username($UserID, false, false, false)?> > <a href="user.php?action=invite&userid=<?=$UserID?>">Invites</a> > Tree</h2>
|
|
<div class="box pad">
|
|
<? $Tree->make_tree(); ?>
|
|
</div>
|
|
</div>
|
|
<? show_footer(); ?>
|