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/index.php

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

index.php on main
Author Date Commit Line Code
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
André almost 8 years ago 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
Open commit View diff
2 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
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
3
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/triggers.user.inc.php';
Open commit View diff
3 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/triggers.user.inc.php';
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
4
Open commit View diff
4
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
5
if (isset($_SESSION['mailcow_cc_role']) && isset($_SESSION['oauth2_request'])) {
Open commit View diff
5 if (isset($_SESSION['mailcow_cc_role']) && isset($_SESSION['oauth2_request'])) {
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
6
  $oauth2_request = $_SESSION['oauth2_request'];
Open commit View diff
6 $oauth2_request = $_SESSION['oauth2_request'];
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
7
  unset($_SESSION['oauth2_request']);
Open commit View diff
7 unset($_SESSION['oauth2_request']);
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
8
  header('Location: ' . $oauth2_request);
Open commit View diff
8 header('Location: ' . $oauth2_request);
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
9
  exit();
Open commit View diff
9 exit();
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
10
}
Open commit View diff
10 }
FreddleSpl0it over 1 year ago 05e4bd7

[Web] use global vars for iam_provider and iam_settings

Full commit hash
05e4bd7602e2d7fecdab638e8e3a8aa2562c5f53
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
11
elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'user') {
Open commit View diff
11 elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'user') {
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
12
  if (empty($_SESSION['pending_tfa_setup']) && empty($_SESSION['pending_pw_update'])) {
Open commit View diff
12 if (empty($_SESSION['pending_tfa_setup']) && empty($_SESSION['pending_pw_update'])) {
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
13
    $user_details = mailbox("get", "mailbox_details", $_SESSION['mailcow_cc_username']);
Open commit View diff
13 $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
14
    $is_dual = (!empty($_SESSION["dual-login"]["username"])) ? true : false;
Open commit View diff
14 $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
15
    if (intval($user_details['attributes']['sogo_access']) == 1 && !$is_dual && getenv('SKIP_SOGO') != "y") {
Open commit View diff
15 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
16
      header("Location: /SOGo/so/");
Open commit View diff
16 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
17
    } else {
Open commit View diff
17 } 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
18
      header("Location: /user");
Open commit View diff
18 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
19
    }
Open commit View diff
19 }
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
20
    exit();
Open commit View diff
20 exit();
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
21
  }
Open commit View diff
21 }
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
22
}
Open commit View diff
22 }
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
23
elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'admin') {
Open commit View diff
23 elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'admin') {
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
24
  if (empty($_SESSION['pending_tfa_setup']) && empty($_SESSION['pending_pw_update'])) {
Open commit View diff
24 if (empty($_SESSION['pending_tfa_setup']) && empty($_SESSION['pending_pw_update'])) {
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
25
    header('Location: /admin/dashboard');
Open commit View diff
25 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
26
    exit();
Open commit View diff
26 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
27
  }
Open commit View diff
27 }
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
28
}
Open commit View diff
28 }
same change aca01c8

[Web] Separate Login pages

Full commit hash
aca01c8aa2607777205226a86be29df338eb51d9
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
29
elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'domainadmin') {
Open commit View diff
29 elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'domainadmin') {
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
30
  if (empty($_SESSION['pending_tfa_setup']) && empty($_SESSION['pending_pw_update'])) {
Open commit View diff
30 if (empty($_SESSION['pending_tfa_setup']) && empty($_SESSION['pending_pw_update'])) {
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
31
    header('Location: /domainadmin/mailbox');
Open commit View diff
31 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
32
    exit();
Open commit View diff
32 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
33
  }
Open commit View diff
33 }
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
34
}
Open commit View diff
34 }
André almost 8 years ago 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
35
Open commit View diff
35
Markku Post 9 months ago 95e0608

[Web] Disable login on autodiscover/autoconfig domains

Full commit hash
95e06087494cb28e4a40c68147bcf148b825d231
Author
Markku Post <[email protected]>
Date
9 months ago
Selected line
36
$host = strtolower($_SERVER['HTTP_HOST'] ?? '');
Open commit View diff
36 $host = strtolower($_SERVER['HTTP_HOST'] ?? '');
same change 95e0608

[Web] Disable login on autodiscover/autoconfig domains

Full commit hash
95e06087494cb28e4a40c68147bcf148b825d231
Author
Markku Post <[email protected]>
Date
9 months ago
Selected line
37
if (str_starts_with($host, 'autodiscover.') || str_starts_with($host, 'autoconfig.')) {
Open commit View diff
37 if (str_starts_with($host, 'autodiscover.') || str_starts_with($host, 'autoconfig.')) {
same change 95e0608

[Web] Disable login on autodiscover/autoconfig domains

Full commit hash
95e06087494cb28e4a40c68147bcf148b825d231
Author
Markku Post <[email protected]>
Date
9 months ago
Selected line
38
  http_response_code(404);
Open commit View diff
38 http_response_code(404);
same change 95e0608

[Web] Disable login on autodiscover/autoconfig domains

Full commit hash
95e06087494cb28e4a40c68147bcf148b825d231
Author
Markku Post <[email protected]>
Date
9 months ago
Selected line
39
  exit();
Open commit View diff
39 exit();
same change 95e0608

[Web] Disable login on autodiscover/autoconfig domains

Full commit hash
95e06087494cb28e4a40c68147bcf148b825d231
Author
Markku Post <[email protected]>
Date
9 months ago
Selected line
40
}
Open commit View diff
40 }
same change 95e0608

[Web] Disable login on autodiscover/autoconfig domains

Full commit hash
95e06087494cb28e4a40c68147bcf148b825d231
Author
Markku Post <[email protected]>
Date
9 months ago
Selected line
41
Open commit View diff
41
André almost 8 years ago 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
42
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php';
Open commit View diff
42 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php';
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
43
$_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
Open commit View diff
43 $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
andryyy over 6 years ago 61f7761

[Web] Better mobileconfig handling

Full commit hash
61f776173f00c064f2aa3c3cbdf35c1e32357cbe
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
44
$_SESSION['index_query_string'] = $_SERVER['QUERY_STRING'];
Open commit View diff
44 $_SESSION['index_query_string'] = $_SERVER['QUERY_STRING'];
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
45
Open commit View diff
45
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
46
$has_iam_sso = false;
Open commit View diff
46 $has_iam_sso = false;
same change a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
47
if ($iam_provider){
Open commit View diff
47 if ($iam_provider){
FreddleSpl0it about 1 year ago ea0944d

[Web] Add quick links to other login pages and option to disable mailcow login form

Full commit hash
ea0944d743c0f261cea57693dd1da9970206e99c
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
48
  $iam_redirect_url = identity_provider("get-redirect");
Open commit View diff
48 $iam_redirect_url = identity_provider("get-redirect");
same change ea0944d

[Web] Add quick links to other login pages and option to disable mailcow login form

Full commit hash
ea0944d743c0f261cea57693dd1da9970206e99c
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
49
  $has_iam_sso = $iam_redirect_url ? true : false;
Open commit View diff
49 $has_iam_sso = $iam_redirect_url ? true : false;
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
50
}
Open commit View diff
50 }
FreddleSpl0it about 1 year ago ea0944d

[Web] Add quick links to other login pages and option to disable mailcow login form

Full commit hash
ea0944d743c0f261cea57693dd1da9970206e99c
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
51
$custom_login = customize('get', 'custom_login');
Open commit View diff
51 $custom_login = customize('get', 'custom_login');
FreddleSpl0it over 2 years ago a06c783

[Web] add ldap idp

Full commit hash
a06c78362a29eba6c5ecf1e4a2a6a65362301e1f
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
52
Open commit View diff
52
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
53
$template = 'user_index.twig';
Open commit View diff
53 $template = 'user_index.twig';
Kristian Feldsam almost 5 years ago 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
54
$template_data = [
Open commit View diff
54 $template_data = [
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
55
  'oauth2_request' => @$_SESSION['oauth2_request'],
Open commit View diff
55 'oauth2_request' => @$_SESSION['oauth2_request'],
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
56
  'is_mobileconfig' => str_contains($_SESSION['index_query_string'], 'mobileconfig'),
Open commit View diff
56 'is_mobileconfig' => str_contains($_SESSION['index_query_string'], 'mobileconfig'),
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
57
  'login_delay' => @$_SESSION['ldelay'],
Open commit View diff
57 'login_delay' => @$_SESSION['ldelay'],
FreddleSpl0it about 1 year ago ea0944d

[Web] Add quick links to other login pages and option to disable mailcow login form

Full commit hash
ea0944d743c0f261cea57693dd1da9970206e99c
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
58
  'has_iam_sso' => $has_iam_sso,
Open commit View diff
58 'has_iam_sso' => $has_iam_sso,
same change ea0944d

[Web] Add quick links to other login pages and option to disable mailcow login form

Full commit hash
ea0944d743c0f261cea57693dd1da9970206e99c
Author
FreddleSpl0it <[email protected]>
Date
about 1 year ago
Selected line
59
  'custom_login' => $custom_login,
Open commit View diff
59 'custom_login' => $custom_login,
Kristian Feldsam almost 5 years ago 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
60
];
Open commit View diff
60 ];
same change 0b64967

[web] implemented twig templating system (#4264)

Full commit hash
0b64967ec56f14bbdb288e07b02d478c835be513
Author
Kristian Feldsam <[email protected]>
Date
almost 5 years ago
Selected line
61
Open commit View diff
61
andryyy over 7 years ago ea83f72

[Web] Minify more resources, fix missing JS

Full commit hash
ea83f72981086433f0a25c90a1e3b3bfac2495ae
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
62
$js_minifier->add('/web/js/site/index.js');
Open commit View diff
62 $js_minifier->add('/web/js/site/index.js');
André almost 8 years ago 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
63
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php';
Open commit View diff
63 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php';