public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Trace
data/web/domainadmin/user.php
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
<?php
2
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
3
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/triggers.domainadmin.inc.php';
5
/*
6
/ DOMAIN ADMIN
7
*/
9
protect_route(['domainadmin']);
11
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php';
12
$_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
13
$tfa_data = get_tfa();
14
$fido2_data = fido2(array("action" => "get_friendly_names"));
15
$username = $_SESSION['mailcow_cc_username'];
17
$template = 'domainadmin.twig';
18
$template_data = [
19
'acl' => $_SESSION['acl'],
20
'acl_json' => json_encode($_SESSION['acl']),
21
'user_spam_score' => mailbox('get', 'spam_score', $username),
22
'tfa_data' => $tfa_data,
23
'fido2_data' => $fido2_data,
24
'lang_user' => json_encode($lang['user']),
25
'lang_datatables' => json_encode($lang['datatables']),
26
];
28
$js_minifier->add('/web/js/site/user.js');
29
$js_minifier->add('/web/js/site/pwgen.js');
31
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php';