-
Notifications
You must be signed in to change notification settings - Fork 1
/
userlist.php
30 lines (27 loc) · 1012 Bytes
/
userlist.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
<?php
require_once('runtime.php');
require_once('lib/core/user_old.class.php');
$smarty->assign('message', Message::getMessage());
if(empty($_GET['section'])) {
if (Permission::checkPermission(PERM_USER)) {
$smarty->assign('userlist', User_old::getUserList());
$smarty->display("header.tpl.html");
$smarty->display("userlist.tpl.html");
$smarty->display("footer.tpl.html");
} else {
$message[] = array("Nur eingeloggte Benutzer dürfen die Benutzerliste einsehen!", 2);
Message::setMessage($message);
header('Location: ./login.php');
}
} elseif($_GET['section']=="export_vcard30") {
if (Permission::checkPermission(PERM_USER)) {
header("Content-Type: text/plain");
header("Content-Disposition: attachment; filename=netmon_userlist.vcf");
echo User_old::exportUserListAsvCard30();
} else {
$message[] = array("Nur eingeloggte Benutzer dürfen die Beutzerliste exportieren!", 2);
Message::setMessage($message);
header('Location: ./login.php');
}
}
?>