NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
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/inc/triggers.global.inc.php

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

triggers.global.inc.php on main
Author Date Commit Line Code
FreddleSpl0it over 1 year ago aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
1
<?php
Open commit View diff
1 <?php
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
2
if (isset($_POST["quick_release"])) {
Open commit View diff
2 if (isset($_POST["quick_release"])) {
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
3
	quarantine('quick_release', $_POST["quick_release"]);
Open commit View diff
3 quarantine('quick_release', $_POST["quick_release"]);
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
4
}
Open commit View diff
4 }
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
5
Open commit View diff
5
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
6
if (isset($_POST["quick_delete"])) {
Open commit View diff
6 if (isset($_POST["quick_delete"])) {
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
7
	quarantine('quick_delete', $_POST["quick_delete"]);
Open commit View diff
7 quarantine('quick_delete', $_POST["quick_delete"]);
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
8
}
Open commit View diff
8 }
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
9
Open commit View diff
9
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
10
if (isset($_SESSION['mailcow_cc_role']) && (isset($_SESSION['acl']['login_as']) && $_SESSION['acl']['login_as'] == "1")) {
Open commit View diff
10 if (isset($_SESSION['mailcow_cc_role']) && (isset($_SESSION['acl']['login_as']) && $_SESSION['acl']['login_as'] == "1")) {
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
11
	if (isset($_GET["duallogin"])) {
Open commit View diff
11 if (isset($_GET["duallogin"])) {
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
12
    $is_dual = (!empty($_SESSION["dual-login"]["username"])) ? true : false;
Open commit View diff
12 $is_dual = (!empty($_SESSION["dual-login"]["username"])) ? true : false;
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
13
    if (!$is_dual) {
Open commit View diff
13 if (!$is_dual) {
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
14
      $duallogin = html_entity_decode(rawurldecode($_GET["duallogin"]));
Open commit View diff
14 $duallogin = html_entity_decode(rawurldecode($_GET["duallogin"]));
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
15
      if (filter_var($duallogin, FILTER_VALIDATE_EMAIL)) {
Open commit View diff
15 if (filter_var($duallogin, FILTER_VALIDATE_EMAIL)) {
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
16
        if (!empty(mailbox('get', 'mailbox_details', $duallogin))) {
Open commit View diff
16 if (!empty(mailbox('get', 'mailbox_details', $duallogin))) {
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
17
          $_SESSION["dual-login"]["username"] = $_SESSION['mailcow_cc_username'];
Open commit View diff
17 $_SESSION["dual-login"]["username"] = $_SESSION['mailcow_cc_username'];
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
18
          $_SESSION["dual-login"]["role"]     = $_SESSION['mailcow_cc_role'];
Open commit View diff
18 $_SESSION["dual-login"]["role"] = $_SESSION['mailcow_cc_role'];
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
19
          $_SESSION['mailcow_cc_username']    = $duallogin;
Open commit View diff
19 $_SESSION['mailcow_cc_username'] = $duallogin;
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
20
          $_SESSION['mailcow_cc_role']        = "user";
Open commit View diff
20 $_SESSION['mailcow_cc_role'] = "user";
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
21
          header("Location: /user");
Open commit View diff
21 header("Location: /user");
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
22
        }
Open commit View diff
22 }
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
23
      }
Open commit View diff
23 }
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
24
      else {
Open commit View diff
24 else {
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
25
        if (!empty(domain_admin('details', $duallogin))) {
Open commit View diff
25 if (!empty(domain_admin('details', $duallogin))) {
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
26
          $_SESSION["dual-login"]["username"] = $_SESSION['mailcow_cc_username'];
Open commit View diff
26 $_SESSION["dual-login"]["username"] = $_SESSION['mailcow_cc_username'];
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
27
          $_SESSION["dual-login"]["role"]     = $_SESSION['mailcow_cc_role'];
Open commit View diff
27 $_SESSION["dual-login"]["role"] = $_SESSION['mailcow_cc_role'];
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
28
          $_SESSION['mailcow_cc_username']    = $duallogin;
Open commit View diff
28 $_SESSION['mailcow_cc_username'] = $duallogin;
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
29
          $_SESSION['mailcow_cc_role']        = "domainadmin";
Open commit View diff
29 $_SESSION['mailcow_cc_role'] = "domainadmin";
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
30
          header("Location: /user");
Open commit View diff
30 header("Location: /user");
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
31
        }
Open commit View diff
31 }
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
32
      }
Open commit View diff
32 }
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
33
    }
Open commit View diff
33 }
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
34
  }
Open commit View diff
34 }
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
35
}
Open commit View diff
35 }
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
36
Open commit View diff
36
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
37
if (isset($_SESSION['mailcow_cc_role'])) {
Open commit View diff
37 if (isset($_SESSION['mailcow_cc_role'])) {
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
38
	if (isset($_POST["set_tfa"])) {
Open commit View diff
38 if (isset($_POST["set_tfa"])) {
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
39
		$had_pending_tfa_setup = !empty($_SESSION['pending_tfa_setup']);
Open commit View diff
39 $had_pending_tfa_setup = !empty($_SESSION['pending_tfa_setup']);
FreddleSpl0it over 1 year ago aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
40
		set_tfa($_POST);
Open commit View diff
40 set_tfa($_POST);
FreddleSpl0it 5 months ago ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
41
		// After TFA setup during forced enrollment
Open commit View diff
41 // After TFA setup during forced enrollment
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
42
		if ($had_pending_tfa_setup && empty($_SESSION['pending_tfa_setup'])) {
Open commit View diff
42 if ($had_pending_tfa_setup && empty($_SESSION['pending_tfa_setup'])) {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
43
			if ($_SESSION['mailcow_cc_role'] === 'admin') {
Open commit View diff
43 if ($_SESSION['mailcow_cc_role'] === 'admin') {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
44
				header("Location: /admin/dashboard");
Open commit View diff
44 header("Location: /admin/dashboard");
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
45
			} elseif ($_SESSION['mailcow_cc_role'] === 'domainadmin') {
Open commit View diff
45 } elseif ($_SESSION['mailcow_cc_role'] === 'domainadmin') {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
46
				header("Location: /domainadmin/mailbox");
Open commit View diff
46 header("Location: /domainadmin/mailbox");
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
47
			} elseif ($_SESSION['mailcow_cc_role'] === 'user') {
Open commit View diff
47 } elseif ($_SESSION['mailcow_cc_role'] === 'user') {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
48
				// Check if user should go to SOGo or /user
Open commit View diff
48 // Check if user should go to SOGo or /user
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
49
				$user_details = mailbox("get", "mailbox_details", $_SESSION['mailcow_cc_username']);
Open commit View diff
49 $user_details = mailbox("get", "mailbox_details", $_SESSION['mailcow_cc_username']);
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
50
				$is_dual = (!empty($_SESSION["dual-login"]["username"])) ? true : false;
Open commit View diff
50 $is_dual = (!empty($_SESSION["dual-login"]["username"])) ? true : false;
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
51
				if (intval($user_details['attributes']['sogo_access']) == 1 && !$is_dual && getenv('SKIP_SOGO') != "y") {
Open commit View diff
51 if (intval($user_details['attributes']['sogo_access']) == 1 && !$is_dual && getenv('SKIP_SOGO') != "y") {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
52
					header("Location: /SOGo/so/");
Open commit View diff
52 header("Location: /SOGo/so/");
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
53
				} else {
Open commit View diff
53 } else {
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
54
					header("Location: /user");
Open commit View diff
54 header("Location: /user");
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
55
				}
Open commit View diff
55 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
56
			}
Open commit View diff
56 }
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
57
			exit();
Open commit View diff
57 exit();
same change ad5b94a

[Web] Add forced 2FA setup and password update enforcement

Full commit hash
ad5b94af5e48297631629c2a118e7f163a044a07
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
58
		}
Open commit View diff
58 }
FreddleSpl0it over 1 year ago aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
59
	}
Open commit View diff
59 }
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
60
	if (isset($_POST["unset_tfa_key"])) {
Open commit View diff
60 if (isset($_POST["unset_tfa_key"])) {
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
61
		unset_tfa_key($_POST);
Open commit View diff
61 unset_tfa_key($_POST);
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
62
	}
Open commit View diff
62 }
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
63
	if (isset($_POST["unset_fido2_key"])) {
Open commit View diff
63 if (isset($_POST["unset_fido2_key"])) {
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
64
		fido2(array("action" => "unset_fido2_key", "post_data" => $_POST));
Open commit View diff
64 fido2(array("action" => "unset_fido2_key", "post_data" => $_POST));
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
65
	}
Open commit View diff
65 }
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
66
}
Open commit View diff
66 }
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
67
?>
Open commit View diff
67 ?>