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/prerequisites.inc.php

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

prerequisites.inc.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
andryyy over 6 years ago cbe4f4c

[Web] Minor changes

Full commit hash
cbe4f4ce70fe4726a90d0ac7802fe8a888085587
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
2
Open commit View diff
2
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
3
// check for development mode
Open commit View diff
3 // check for development mode
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
4
$DEV_MODE = (getenv('DEV_MODE') == 'y');
Open commit View diff
4 $DEV_MODE = (getenv('DEV_MODE') == 'y');
FreddleSpl0it over 3 years ago ef392ef

add demo_mode for mailcow ui

Full commit hash
ef392ef6ba44c103ac9eb7e77db779f77736f032
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
5
// check for demo mode
Open commit View diff
5 // check for demo mode
same change ef392ef

add demo_mode for mailcow ui

Full commit hash
ef392ef6ba44c103ac9eb7e77db779f77736f032
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
6
$DEMO_MODE = (getenv('DEMO_MODE') == 'y');
Open commit View diff
6 $DEMO_MODE = (getenv('DEMO_MODE') == 'y');
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
7
Open commit View diff
7
andryyy over 6 years ago cbe4f4c

[Web] Minor changes

Full commit hash
cbe4f4ce70fe4726a90d0ac7802fe8a888085587
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
8
// Slave does not serve UI
Open commit View diff
8 // Slave does not serve UI
andryyy over 6 years ago ccd4dda

[Web] Some minor changes

Full commit hash
ccd4dda397f356126be4aedfecf6941d2e2480e5
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
9
/* if (!preg_match('/y|yes/i', getenv('MASTER'))) {
Open commit View diff
9 /* if (!preg_match('/y|yes/i', getenv('MASTER'))) {
andryyy over 6 years ago cbe4f4c

[Web] Minor changes

Full commit hash
cbe4f4ce70fe4726a90d0ac7802fe8a888085587
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
10
  header('Location: /SOGo', true, 307);
Open commit View diff
10 header('Location: /SOGo', true, 307);
andryyy over 6 years ago 7a4560e

[Web] CSS fixes; Add OAUTH2_FORGET_SESSION_AFTER_LOGIN to vars.inc.php (wip); Do not run initdb on non-master cow

Full commit hash
7a4560ee2863bc96ddf9382915eb238fd4c2fcbb
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
11
  exit;
Open commit View diff
11 exit;
andryyy over 6 years ago ccd4dda

[Web] Some minor changes

Full commit hash
ccd4dda397f356126be4aedfecf6941d2e2480e5
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
12
}*/
Open commit View diff
12 }*/
andryyy over 6 years ago cbe4f4c

[Web] Minor changes

Full commit hash
cbe4f4ce70fe4726a90d0ac7802fe8a888085587
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
13
Open commit View diff
13
andryyy almost 9 years ago e07f84d

[Web] Update phpmailer, always use correct path for vars.inc.php

Full commit hash
e07f84d0f0d3fe800b341581322ec619b072e80d
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
14
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/vars.inc.php';
Open commit View diff
14 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/vars.inc.php';
Niklas Meyer over 4 years ago 89fdd19

Jan(moo)uary Update 2022 - Revision A (2022-01a) (#4445)

Full commit hash
89fdd1986d922aa7ae87d589859cd3d483beaa23
Author
Niklas Meyer <[email protected]>
Date
over 4 years ago
Selected line
15
Open commit View diff
15
andryyy almost 9 years ago c6f81fe

[Web] Fix autodiscover merge on user.php

Full commit hash
c6f81fe67bfee66a0b3dca5119cda8cb0b7b11f9
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
16
$default_autodiscover_config = $autodiscover_config;
Open commit View diff
16 $default_autodiscover_config = $autodiscover_config;
vain90 over 7 years ago d7aaa67

Move unset https_port after include of vars local inc

Full commit hash
d7aaa67e2e3ab8406b0825150506789fb401af45
Author
vain90 <[email protected]>
Date
over 7 years ago
Selected line
17
Open commit View diff
17
Dennis Neufeld about 9 years ago 8fb6a4c

Language selection

Full commit hash
8fb6a4c34d687993f3f3490a8bd390be289bc379
Author
Dennis Neufeld <[email protected]>
Date
about 9 years ago
Selected line
18
if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/inc/vars.local.inc.php')) {
Open commit View diff
18 if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/inc/vars.local.inc.php')) {
same change 8fb6a4c

Language selection

Full commit hash
8fb6a4c34d687993f3f3490a8bd390be289bc379
Author
Dennis Neufeld <[email protected]>
Date
about 9 years ago
Selected line
19
  include_once $_SERVER['DOCUMENT_ROOT'] . '/inc/vars.local.inc.php';
Open commit View diff
19 include_once $_SERVER['DOCUMENT_ROOT'] . '/inc/vars.local.inc.php';
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
20
}
Open commit View diff
20 }
Niklas Meyer over 4 years ago 89fdd19

Jan(moo)uary Update 2022 - Revision A (2022-01a) (#4445)

Full commit hash
89fdd1986d922aa7ae87d589859cd3d483beaa23
Author
Niklas Meyer <[email protected]>
Date
over 4 years ago
Selected line
21
Open commit View diff
21
same change 89fdd19

Jan(moo)uary Update 2022 - Revision A (2022-01a) (#4445)

Full commit hash
89fdd1986d922aa7ae87d589859cd3d483beaa23
Author
Niklas Meyer <[email protected]>
Date
over 4 years ago
Selected line
22
// auto-generated by generate-config.sh and update.sh
Open commit View diff
22 // auto-generated by generate-config.sh and update.sh
same change 89fdd19

Jan(moo)uary Update 2022 - Revision A (2022-01a) (#4445)

Full commit hash
89fdd1986d922aa7ae87d589859cd3d483beaa23
Author
Niklas Meyer <[email protected]>
Date
over 4 years ago
Selected line
23
if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/inc/app_info.inc.php')) {
Open commit View diff
23 if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/inc/app_info.inc.php')) {
same change 89fdd19

Jan(moo)uary Update 2022 - Revision A (2022-01a) (#4445)

Full commit hash
89fdd1986d922aa7ae87d589859cd3d483beaa23
Author
Niklas Meyer <[email protected]>
Date
over 4 years ago
Selected line
24
    require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/app_info.inc.php';
Open commit View diff
24 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/app_info.inc.php';
same change 89fdd19

Jan(moo)uary Update 2022 - Revision A (2022-01a) (#4445)

Full commit hash
89fdd1986d922aa7ae87d589859cd3d483beaa23
Author
Niklas Meyer <[email protected]>
Date
over 4 years ago
Selected line
25
}
Open commit View diff
25 }
vain90 over 7 years ago d7aaa67

Move unset https_port after include of vars local inc

Full commit hash
d7aaa67e2e3ab8406b0825150506789fb401af45
Author
vain90 <[email protected]>
Date
over 7 years ago
Selected line
26
unset($https_port);
Open commit View diff
26 unset($https_port);
andryyy almost 9 years ago c6f81fe

[Web] Fix autodiscover merge on user.php

Full commit hash
c6f81fe67bfee66a0b3dca5119cda8cb0b7b11f9
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
27
$autodiscover_config = array_merge($default_autodiscover_config, $autodiscover_config);
Open commit View diff
27 $autodiscover_config = array_merge($default_autodiscover_config, $autodiscover_config);
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
28
Open commit View diff
28
andryyy about 9 years ago 2db910d

Remove Rmitler \o/

Full commit hash
2db910d6dce768143488ce779717c1f372b7fc71
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
29
header_remove("X-Powered-By");
Open commit View diff
29 header_remove("X-Powered-By");
same change 2db910d

Remove Rmitler \o/

Full commit hash
2db910d6dce768143488ce779717c1f372b7fc71
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
30
Open commit View diff
30
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
31
// Yubi OTP API
Open commit View diff
31 // Yubi OTP API
andryyy about 9 years ago f77c40a

Better log table, some MySQL to Redis migrations, API changes, other minor changes...

Full commit hash
f77c40a179bb89b463318c6dafe4823a5844a43f
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
32
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/lib/Yubico.php';
Open commit View diff
32 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/lib/Yubico.php';
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
33
Open commit View diff
33
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
34
// WebAuthn
Open commit View diff
34 // WebAuthn
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
35
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/lib/WebAuthn/WebAuthn.php';
Open commit View diff
35 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/lib/WebAuthn/WebAuthn.php';
same change c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
36
Open commit View diff
36
andryyy about 9 years ago 3c937f7

Add OWASP CSRF Protector, add more secure session handling

Full commit hash
3c937f75ba5853ada175542d5c4849fb95eb64cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
37
// Autoload composer
Open commit View diff
37 // Autoload composer
andryyy about 9 years ago f77c40a

Better log table, some MySQL to Redis migrations, API changes, other minor changes...

Full commit hash
f77c40a179bb89b463318c6dafe4823a5844a43f
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
38
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/lib/vendor/autoload.php';
Open commit View diff
38 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/lib/vendor/autoload.php';
andryyy about 9 years ago 3c937f7

Add OWASP CSRF Protector, add more secure session handling

Full commit hash
3c937f75ba5853ada175542d5c4849fb95eb64cd
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
39
Open commit View diff
39
André over 8 years ago 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
AndrĂ© <[email protected]>
Date
over 8 years ago
Selected line
40
// Load Sieve
Open commit View diff
40 // Load Sieve
same change 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
AndrĂ© <[email protected]>
Date
over 8 years ago
Selected line
41
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/lib/sieve/SieveParser.php';
Open commit View diff
41 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/lib/sieve/SieveParser.php';
same change 85d1ee2

[Web] Autodiscover returns given password decoded and trimed; Add sieve pre and post filters to UI; Move ajax called files; Rework log system: 100 entries per default, add more per click; Syncjobs: Do not read log to data attribute

Full commit hash
85d1ee2f49ed350529fb3fd829268c4cdf8dfbd3
Author
AndrĂ© <[email protected]>
Date
over 8 years ago
Selected line
42
Open commit View diff
42
tinect almost 7 years ago 3f6a2fc

cache JS-File to reduce response-time

Full commit hash
3f6a2fc7fafbe80ea230a4a5317fd3183273d630
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
43
// minifierExtended
Open commit View diff
43 // minifierExtended
same change 3f6a2fc

cache JS-File to reduce response-time

Full commit hash
3f6a2fc7fafbe80ea230a4a5317fd3183273d630
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
44
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/lib/JSminifierExtended.php';
Open commit View diff
44 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/lib/JSminifierExtended.php';
same change 3f6a2fc

cache JS-File to reduce response-time

Full commit hash
3f6a2fc7fafbe80ea230a4a5317fd3183273d630
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
45
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/lib/CSSminifierExtended.php';
Open commit View diff
45 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/lib/CSSminifierExtended.php';
same change 3f6a2fc

cache JS-File to reduce response-time

Full commit hash
3f6a2fc7fafbe80ea230a4a5317fd3183273d630
Author
tinect <[email protected]>
Date
almost 7 years ago
Selected line
46
Open commit View diff
46
tinect over 6 years ago e7821df

introduce json-files for translations (#3120)

Full commit hash
e7821df933e27c13ab39c1966e5fcba35fd5f11f
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
47
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/lib/array_merge_real.php';
Open commit View diff
47 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/lib/array_merge_real.php';
same change e7821df

introduce json-files for translations (#3120)

Full commit hash
e7821df933e27c13ab39c1966e5fcba35fd5f11f
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
48
Open commit View diff
48
FreddleSpl0it over 3 years ago 67c9c5b

[Web] remove u2f lib from prerequisites

Full commit hash
67c9c5b8ed3280a45df996e89c4b1bd7b0150003
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
49
// T/HOTP API
Open commit View diff
49 // T/HOTP API
FreddleSpl0it 5 months ago 96d4802

[Web] Switch QR code generation from external API to local library and fix composer.json/lock mismatch

Full commit hash
96d4802cb22afdf1cbf3a9d8ddd69d2d7bbb05c5
Author
FreddleSpl0it <[email protected]>
Date
5 months ago
Selected line
50
$qrprovider = new RobThree\Auth\Providers\Qr\BaconQrCodeProvider();
Open commit View diff
50 $qrprovider = new RobThree\Auth\Providers\Qr\BaconQrCodeProvider();
andryyy over 7 years ago 6a13609

[Web] Fix slow UI by switching QR provider and only generating qr image on demand

Full commit hash
6a13609bf0e1bc75c907bdc46a4099b92de69eb3
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
51
$tfa = new RobThree\Auth\TwoFactorAuth($OTP_LABEL, 6, 30, 'sha1', $qrprovider);
Open commit View diff
51 $tfa = new RobThree\Auth\TwoFactorAuth($OTP_LABEL, 6, 30, 'sha1', $qrprovider);
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
52
Open commit View diff
52
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
53
// FIDO2
Open commit View diff
53 // FIDO2
FreddleSpl0it about 4 years ago 753cde0

parse host from url for webauthn library

Full commit hash
753cde0b859336090f98b4ba3daabfc32194c65e
Author
FreddleSpl0it <[email protected]>
Date
about 4 years ago
Selected line
54
$server_name = parse_url('https://' . $_SERVER['HTTP_HOST'], PHP_URL_HOST);
Open commit View diff
54 $server_name = parse_url('https://' . $_SERVER['HTTP_HOST'], PHP_URL_HOST);
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
55
$formats = $GLOBALS['FIDO2_FORMATS'];
Open commit View diff
55 $formats = $GLOBALS['FIDO2_FORMATS'];
FreddleSpl0it about 4 years ago 753cde0

parse host from url for webauthn library

Full commit hash
753cde0b859336090f98b4ba3daabfc32194c65e
Author
FreddleSpl0it <[email protected]>
Date
about 4 years ago
Selected line
56
$WebAuthn = new lbuchs\WebAuthn\WebAuthn('WebAuthn Library', $server_name, $formats);
Open commit View diff
56 $WebAuthn = new lbuchs\WebAuthn\WebAuthn('WebAuthn Library', $server_name, $formats);
FreddleSpl0it over 4 years ago 0f46465

[WebAuthn] disable webauthn rootca by mailcow.conf

Full commit hash
0f464658cc6aef34d27611a09cb743c576fdc848
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
57
// only include root ca's when needed
Open commit View diff
57 // only include root ca's when needed
FreddleSpl0it over 4 years ago af1b90f

[WebAuthn] rename env var

Full commit hash
af1b90fa18c246cb63e8de0518e0acf9dc7fc68e
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
58
if (getenv('WEBAUTHN_ONLY_TRUSTED_VENDORS') == 'y') $WebAuthn->addRootCertificates($_SERVER['DOCUMENT_ROOT'] . '/inc/lib/WebAuthn/rootCertificates');
Open commit View diff
58 if (getenv('WEBAUTHN_ONLY_TRUSTED_VENDORS') == 'y') $WebAuthn->addRootCertificates($_SERVER['DOCUMENT_ROOT'] . '/inc/lib/WebAuthn/rootCertificates');
andryyy over 5 years ago c150ac7

[Web] Feature (beta): Add WebAuthn support for administrators and domain administrators

Full commit hash
c150ac7b375fb8acfe8794155ef61245e3c86f40
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
59
Open commit View diff
59
andryyy about 9 years ago 1501df6

Use Redis for DKIM keys, define any selector, auto-merge old keys to Redis and fallback to files

Full commit hash
1501df6e42968f7331a2246949efa846e2cf7bb4
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
60
// Redis
Open commit View diff
60 // Redis
same change 1501df6

Use Redis for DKIM keys, define any selector, auto-merge old keys to Redis and fallback to files

Full commit hash
1501df6e42968f7331a2246949efa846e2cf7bb4
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
61
$redis = new Redis();
Open commit View diff
61 $redis = new Redis();
andryyy about 7 years ago 8537767

[Web] Show error when connection to redis fails (instead of 5xx)

Full commit hash
853776744365e23fdfb937b090c01aaa6931501d
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
62
try {
Open commit View diff
62 try {
andryyy over 6 years ago 6686152

[Web] Use redis master where necessary, hide UI if not master, create replicate quota2 table

Full commit hash
6686152ce05802a9cb70ce7200d36efda9b15cae
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
63
  if (!empty(getenv('REDIS_SLAVEOF_IP'))) {
Open commit View diff
63 if (!empty(getenv('REDIS_SLAVEOF_IP'))) {
same change 6686152

[Web] Use redis master where necessary, hide UI if not master, create replicate quota2 table

Full commit hash
6686152ce05802a9cb70ce7200d36efda9b15cae
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
64
    $redis->connect(getenv('REDIS_SLAVEOF_IP'), getenv('REDIS_SLAVEOF_PORT'));
Open commit View diff
64 $redis->connect(getenv('REDIS_SLAVEOF_IP'), getenv('REDIS_SLAVEOF_PORT'));
same change 6686152

[Web] Use redis master where necessary, hide UI if not master, create replicate quota2 table

Full commit hash
6686152ce05802a9cb70ce7200d36efda9b15cae
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
65
  }
Open commit View diff
65 }
same change 6686152

[Web] Use redis master where necessary, hide UI if not master, create replicate quota2 table

Full commit hash
6686152ce05802a9cb70ce7200d36efda9b15cae
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
66
  else {
Open commit View diff
66 else {
same change 6686152

[Web] Use redis master where necessary, hide UI if not master, create replicate quota2 table

Full commit hash
6686152ce05802a9cb70ce7200d36efda9b15cae
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
67
    $redis->connect('redis-mailcow', 6379);
Open commit View diff
67 $redis->connect('redis-mailcow', 6379);
same change 6686152

[Web] Use redis master where necessary, hide UI if not master, create replicate quota2 table

Full commit hash
6686152ce05802a9cb70ce7200d36efda9b15cae
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
68
  }
Open commit View diff
68 }
FreddleSpl0it over 1 year ago 89fb132

Enable password protection for Redis

Full commit hash
89fb1322c6f486a9883e6435a73537b13fbf3582
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
69
  $redis->auth(getenv("REDISPASS"));
Open commit View diff
69 $redis->auth(getenv("REDISPASS"));
andryyy about 7 years ago 8537767

[Web] Show error when connection to redis fails (instead of 5xx)

Full commit hash
853776744365e23fdfb937b090c01aaa6931501d
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
70
}
Open commit View diff
70 }
same change 8537767

[Web] Show error when connection to redis fails (instead of 5xx)

Full commit hash
853776744365e23fdfb937b090c01aaa6931501d
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
71
catch (Exception $e) {
Open commit View diff
71 catch (Exception $e) {
FreddleSpl0it about 3 years ago db2759b

[Web] fix wrong content type + add more http 500 responses

Full commit hash
db2759b7d184e68713bf0441f84df9f624ce3c6d
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
72
// Stop when redis is not available
Open commit View diff
72 // Stop when redis is not available
FreddleSpl0it about 3 years ago 987cfd5

[Web] f2b banlist - add http status codes

Full commit hash
987cfd5dae4014b35c183ce4be0e1f8856950116
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
73
http_response_code(500);
Open commit View diff
73 http_response_code(500);
andryyy about 7 years ago 8537767

[Web] Show error when connection to redis fails (instead of 5xx)

Full commit hash
853776744365e23fdfb937b090c01aaa6931501d
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
74
?>
Open commit View diff
74 ?>
same change 8537767

[Web] Show error when connection to redis fails (instead of 5xx)

Full commit hash
853776744365e23fdfb937b090c01aaa6931501d
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
75
<center style='font-family:sans-serif;'>Connection to Redis failed.<br /><br />The following error was reported:<br/><?=$e->getMessage();?></center>
Open commit View diff
75 <center style='font-family:sans-serif;'>Connection to Redis failed.<br /><br />The following error was reported:<br/><?=$e->getMessage();?></center>
same change 8537767

[Web] Show error when connection to redis fails (instead of 5xx)

Full commit hash
853776744365e23fdfb937b090c01aaa6931501d
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
76
<?php
Open commit View diff
76 <?php
same change 8537767

[Web] Show error when connection to redis fails (instead of 5xx)

Full commit hash
853776744365e23fdfb937b090c01aaa6931501d
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
77
exit;
Open commit View diff
77 exit;
same change 8537767

[Web] Show error when connection to redis fails (instead of 5xx)

Full commit hash
853776744365e23fdfb937b090c01aaa6931501d
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
78
}
Open commit View diff
78 }
andryyy about 9 years ago 1501df6

Use Redis for DKIM keys, define any selector, auto-merge old keys to Redis and fallback to files

Full commit hash
1501df6e42968f7331a2246949efa846e2cf7bb4
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
79
Open commit View diff
79
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
80
// PDO
Open commit View diff
80 // PDO
andryyy over 9 years ago 790c922

New db init system

Full commit hash
790c92237524ba99efb359fa5bc4b48082ca256b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
81
// Calculate offset
Open commit View diff
81 // Calculate offset
andryyy over 7 years ago d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
82
// $now = new DateTime();
Open commit View diff
82 // $now = new DateTime();
same change d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
83
// $mins = $now->getOffset() / 60;
Open commit View diff
83 // $mins = $now->getOffset() / 60;
same change d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
84
// $sgn = ($mins < 0 ? -1 : 1);
Open commit View diff
84 // $sgn = ($mins < 0 ? -1 : 1);
same change d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
85
// $mins = abs($mins);
Open commit View diff
85 // $mins = abs($mins);
same change d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
86
// $hrs = floor($mins / 60);
Open commit View diff
86 // $hrs = floor($mins / 60);
same change d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
87
// $mins -= $hrs * 60;
Open commit View diff
87 // $mins -= $hrs * 60;
same change d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
88
// $offset = sprintf('%+d:%02d', $hrs*$sgn, $mins);
Open commit View diff
88 // $offset = sprintf('%+d:%02d', $hrs*$sgn, $mins);
andryyy over 9 years ago 790c922

New db init system

Full commit hash
790c92237524ba99efb359fa5bc4b48082ca256b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
89
Open commit View diff
89
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
90
$dsn = $database_type . ":unix_socket=" . $database_sock . ";dbname=" . $database_name;
Open commit View diff
90 $dsn = $database_type . ":unix_socket=" . $database_sock . ";dbname=" . $database_name;
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
91
$opt = [
Open commit View diff
91 $opt = [
Dennis Neufeld about 9 years ago 8fb6a4c

Language selection

Full commit hash
8fb6a4c34d687993f3f3490a8bd390be289bc379
Author
Dennis Neufeld <[email protected]>
Date
about 9 years ago
Selected line
92
  PDO::ATTR_ERRMODE            => PDO::ERRMODE_EXCEPTION,
Open commit View diff
92 PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
same change 8fb6a4c

Language selection

Full commit hash
8fb6a4c34d687993f3f3490a8bd390be289bc379
Author
Dennis Neufeld <[email protected]>
Date
about 9 years ago
Selected line
93
  PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
Open commit View diff
93 PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
same change 8fb6a4c

Language selection

Full commit hash
8fb6a4c34d687993f3f3490a8bd390be289bc379
Author
Dennis Neufeld <[email protected]>
Date
about 9 years ago
Selected line
94
  PDO::ATTR_EMULATE_PREPARES   => false,
Open commit View diff
94 PDO::ATTR_EMULATE_PREPARES => false,
andryyy over 7 years ago d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
95
  //PDO::MYSQL_ATTR_INIT_COMMAND => "SET time_zone = '" . $offset . "', group_concat_max_len = 3423543543;",
Open commit View diff
95 //PDO::MYSQL_ATTR_INIT_COMMAND => "SET time_zone = '" . $offset . "', group_concat_max_len = 3423543543;",
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
96
];
Open commit View diff
96 ];
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
97
try {
Open commit View diff
97 try {
Dennis Neufeld about 9 years ago 8fb6a4c

Language selection

Full commit hash
8fb6a4c34d687993f3f3490a8bd390be289bc379
Author
Dennis Neufeld <[email protected]>
Date
about 9 years ago
Selected line
98
  $pdo = new PDO($dsn, $database_user, $database_pass, $opt);
Open commit View diff
98 $pdo = new PDO($dsn, $database_user, $database_pass, $opt);
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
99
}
Open commit View diff
99 }
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
100
catch (PDOException $e) {
Open commit View diff
100 catch (PDOException $e) {
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
101
// Stop when SQL connection fails
Open commit View diff
101 // Stop when SQL connection fails
FreddleSpl0it about 3 years ago db2759b

[Web] fix wrong content type + add more http 500 responses

Full commit hash
db2759b7d184e68713bf0441f84df9f624ce3c6d
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
102
http_response_code(500);
Open commit View diff
102 http_response_code(500);
andryyy over 9 years ago d891bc8

Docs

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

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
104
<center style='font-family:sans-serif;'>Connection to database failed.<br /><br />The following error was reported:<br/>  <?=$e->getMessage();?></center>
Open commit View diff
104 <center style='font-family:sans-serif;'>Connection to database failed.<br /><br />The following error was reported:<br/> <?=$e->getMessage();?></center>
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
105
<?php
Open commit View diff
105 <?php
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
106
exit;
Open commit View diff
106 exit;
same change d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
107
}
Open commit View diff
107 }
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
108
// Stop when dockerapi is not available
Open commit View diff
108 // Stop when dockerapi is not available
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
109
if (fsockopen("tcp://dockerapi", 443, $errno, $errstr) === false) {
Open commit View diff
109 if (fsockopen("tcp://dockerapi", 443, $errno, $errstr) === false) {
FreddleSpl0it about 3 years ago db2759b

[Web] fix wrong content type + add more http 500 responses

Full commit hash
db2759b7d184e68713bf0441f84df9f624ce3c6d
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
110
  http_response_code(500);
Open commit View diff
110 http_response_code(500);
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
111
?>
Open commit View diff
111 ?>
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
112
<center style='font-family:sans-serif;'>Connection to dockerapi container failed.<br /><br />The following error was reported:<br/><?=$errno;?> - <?=$errstr;?></center>
Open commit View diff
112 <center style='font-family:sans-serif;'>Connection to dockerapi container failed.<br /><br />The following error was reported:<br/><?=$errno;?> - <?=$errstr;?></center>
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
113
<?php
Open commit View diff
113 <?php
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
114
exit;
Open commit View diff
114 exit;
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
115
}
Open commit View diff
115 }
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
116
Open commit View diff
116
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
117
// OAuth2
Open commit View diff
117 // OAuth2
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
118
class mailcowPdo extends OAuth2\Storage\Pdo {
Open commit View diff
118 class mailcowPdo extends OAuth2\Storage\Pdo {
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
119
  public function __construct($connection, $config = array()) {
Open commit View diff
119 public function __construct($connection, $config = array()) {
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
120
    parent::__construct($connection, $config);
Open commit View diff
120 parent::__construct($connection, $config);
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
121
    $this->config['user_table'] = 'mailbox';
Open commit View diff
121 $this->config['user_table'] = 'mailbox';
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
122
  }
Open commit View diff
122 }
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
123
  public function checkUserCredentials($username, $password) {
Open commit View diff
123 public function checkUserCredentials($username, $password) {
FreddleSpl0it 6 months ago 56ea430

[Web] Allow admins to limit EAS and DAV access for mailbox users

Full commit hash
56ea4302ed13ac9aa344dc840689c4dd6ac76b68
Author
FreddleSpl0it <[email protected]>
Date
6 months ago
Selected line
124
    if (check_login($username, $password, array("role" => "user", "service" => "NONE")) == 'user') {
Open commit View diff
124 if (check_login($username, $password, array("role" => "user", "service" => "NONE")) == 'user') {
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
125
      return true;
Open commit View diff
125 return true;
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
126
    }
Open commit View diff
126 }
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
127
    return false;
Open commit View diff
127 return false;
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
128
  }
Open commit View diff
128 }
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
129
  public function getUserDetails($username) {
Open commit View diff
129 public function getUserDetails($username) {
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
130
    return $this->getUser($username);
Open commit View diff
130 return $this->getUser($username);
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
131
  }
Open commit View diff
131 }
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
132
}
Open commit View diff
132 }
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
133
$oauth2_scope_storage = new OAuth2\Storage\Memory(array('default_scope' => 'profile', 'supported_scopes' => array('profile')));
Open commit View diff
133 $oauth2_scope_storage = new OAuth2\Storage\Memory(array('default_scope' => 'profile', 'supported_scopes' => array('profile')));
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
134
$oauth2_storage = new mailcowPdo(array('dsn' => $dsn, 'username' => $database_user, 'password' => $database_pass));
Open commit View diff
134 $oauth2_storage = new mailcowPdo(array('dsn' => $dsn, 'username' => $database_user, 'password' => $database_pass));
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
135
$oauth2_server = new OAuth2\Server($oauth2_storage, array(
Open commit View diff
135 $oauth2_server = new OAuth2\Server($oauth2_storage, array(
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
136
    'refresh_token_lifetime'         => $REFRESH_TOKEN_LIFETIME,
Open commit View diff
136 'refresh_token_lifetime' => $REFRESH_TOKEN_LIFETIME,
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
137
    'access_lifetime'                => $ACCESS_TOKEN_LIFETIME,
Open commit View diff
137 'access_lifetime' => $ACCESS_TOKEN_LIFETIME,
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
138
));
Open commit View diff
138 ));
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
139
$oauth2_server->setScopeUtil(new OAuth2\Scope($oauth2_scope_storage));
Open commit View diff
139 $oauth2_server->setScopeUtil(new OAuth2\Scope($oauth2_scope_storage));
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
140
$oauth2_server->addGrantType(new OAuth2\GrantType\AuthorizationCode($oauth2_storage));
Open commit View diff
140 $oauth2_server->addGrantType(new OAuth2\GrantType\AuthorizationCode($oauth2_storage));
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
141
$oauth2_server->addGrantType(new OAuth2\GrantType\UserCredentials($oauth2_storage));
Open commit View diff
141 $oauth2_server->addGrantType(new OAuth2\GrantType\UserCredentials($oauth2_storage));
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
142
$oauth2_server->addGrantType(new OAuth2\GrantType\RefreshToken($oauth2_storage, array(
Open commit View diff
142 $oauth2_server->addGrantType(new OAuth2\GrantType\RefreshToken($oauth2_storage, array(
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
143
    'always_issue_new_refresh_token' => true
Open commit View diff
143 'always_issue_new_refresh_token' => true
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
144
)));
Open commit View diff
144 )));
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
145
Open commit View diff
145
andryyy over 7 years ago d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
146
function exception_handler($e) {
Open commit View diff
146 function exception_handler($e) {
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
147
    if ($e instanceof PDOException) {
Open commit View diff
147 if ($e instanceof PDOException) {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
148
      $_SESSION['return'][] = array(
Open commit View diff
148 $_SESSION['return'][] = array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
149
        'type' => 'danger',
Open commit View diff
149 'type' => 'danger',
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
150
        'log' => array(__FUNCTION__),
Open commit View diff
150 'log' => array(__FUNCTION__),
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
151
        'msg' => array('mysql_error', $e)
Open commit View diff
151 'msg' => array('mysql_error', $e)
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
152
      );
Open commit View diff
152 );
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
153
      return false;
Open commit View diff
153 return false;
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
154
    }
Open commit View diff
154 }
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
155
    else {
Open commit View diff
155 else {
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
156
      $_SESSION['return'][] = array(
Open commit View diff
156 $_SESSION['return'][] = array(
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
157
        'type' => 'danger',
Open commit View diff
157 'type' => 'danger',
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
158
        'log' => array(__FUNCTION__),
Open commit View diff
158 'log' => array(__FUNCTION__),
andryyy over 7 years ago d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
159
        'msg' => 'An unknown error occured: ' . print_r($e, true)
Open commit View diff
159 'msg' => 'An unknown error occured: ' . print_r($e, true)
André almost 8 years ago a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
160
      );
Open commit View diff
160 );
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
161
      return false;
Open commit View diff
161 return false;
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
162
    }
Open commit View diff
162 }
same change a11cce6

[Web] Fixes for BCC map input fields

Full commit hash
a11cce67654e7cd8a268b58592a25801e710861d
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
163
}
Open commit View diff
163 }
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
164
if(!$DEV_MODE) {
Open commit View diff
164 if(!$DEV_MODE) {
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
165
  set_exception_handler('exception_handler');
Open commit View diff
165 set_exception_handler('exception_handler');
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
166
}
Open commit View diff
166 }
andryyy over 9 years ago d891bc8

Docs

Full commit hash
d891bc88945e2be5b2af4a3db6f9ec5457705b7b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
167
Open commit View diff
167
André Peters almost 5 years ago 639e751

Revert "[Web] Fix broken autoconfig ports, fixes #4221 (#4223)" (#4226)

Full commit hash
639e751678a34e57af38eb354367b1a40ba5a895
Author
AndrĂ© Peters <[email protected]>
Date
almost 5 years ago
Selected line
168
// TODO: Move function
Open commit View diff
168 // TODO: Move function
same change 639e751

Revert "[Web] Fix broken autoconfig ports, fixes #4221 (#4223)" (#4226)

Full commit hash
639e751678a34e57af38eb354367b1a40ba5a895
Author
AndrĂ© Peters <[email protected]>
Date
almost 5 years ago
Selected line
169
function get_remote_ip() {
Open commit View diff
169 function get_remote_ip() {
same change 639e751

Revert "[Web] Fix broken autoconfig ports, fixes #4221 (#4223)" (#4226)

Full commit hash
639e751678a34e57af38eb354367b1a40ba5a895
Author
AndrĂ© Peters <[email protected]>
Date
almost 5 years ago
Selected line
170
  $remote = $_SERVER['REMOTE_ADDR'];
Open commit View diff
170 $remote = $_SERVER['REMOTE_ADDR'];
same change 639e751

Revert "[Web] Fix broken autoconfig ports, fixes #4221 (#4223)" (#4226)

Full commit hash
639e751678a34e57af38eb354367b1a40ba5a895
Author
AndrĂ© Peters <[email protected]>
Date
almost 5 years ago
Selected line
171
  if (filter_var($remote, FILTER_VALIDATE_IP) === false) {
Open commit View diff
171 if (filter_var($remote, FILTER_VALIDATE_IP) === false) {
same change 639e751

Revert "[Web] Fix broken autoconfig ports, fixes #4221 (#4223)" (#4226)

Full commit hash
639e751678a34e57af38eb354367b1a40ba5a895
Author
AndrĂ© Peters <[email protected]>
Date
almost 5 years ago
Selected line
172
    return '0.0.0.0';
Open commit View diff
172 return '0.0.0.0';
same change 639e751

Revert "[Web] Fix broken autoconfig ports, fixes #4221 (#4223)" (#4226)

Full commit hash
639e751678a34e57af38eb354367b1a40ba5a895
Author
AndrĂ© Peters <[email protected]>
Date
almost 5 years ago
Selected line
173
  }
Open commit View diff
173 }
same change 639e751

Revert "[Web] Fix broken autoconfig ports, fixes #4221 (#4223)" (#4226)

Full commit hash
639e751678a34e57af38eb354367b1a40ba5a895
Author
AndrĂ© Peters <[email protected]>
Date
almost 5 years ago
Selected line
174
  return $remote;
Open commit View diff
174 return $remote;
same change 639e751

Revert "[Web] Fix broken autoconfig ports, fixes #4221 (#4223)" (#4226)

Full commit hash
639e751678a34e57af38eb354367b1a40ba5a895
Author
AndrĂ© Peters <[email protected]>
Date
almost 5 years ago
Selected line
175
}
Open commit View diff
175 }
same change 639e751

Revert "[Web] Fix broken autoconfig ports, fixes #4221 (#4223)" (#4226)

Full commit hash
639e751678a34e57af38eb354367b1a40ba5a895
Author
AndrĂ© Peters <[email protected]>
Date
almost 5 years ago
Selected line
176
Open commit View diff
176
same change 639e751

Revert "[Web] Fix broken autoconfig ports, fixes #4221 (#4223)" (#4226)

Full commit hash
639e751678a34e57af38eb354367b1a40ba5a895
Author
AndrĂ© Peters <[email protected]>
Date
almost 5 years ago
Selected line
177
// Load core functions first
Open commit View diff
177 // Load core functions first
same change 639e751

Revert "[Web] Fix broken autoconfig ports, fixes #4221 (#4223)" (#4226)

Full commit hash
639e751678a34e57af38eb354367b1a40ba5a895
Author
AndrĂ© Peters <[email protected]>
Date
almost 5 years ago
Selected line
178
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.inc.php';
Open commit View diff
178 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.inc.php';
FreddleSpl0it over 3 years ago 6adad79

[Web] organize auth functions+api auth w/ dovecot

Full commit hash
6adad79e5cd50ae11bfc975ebb1ee7486e37a1a7
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
179
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.auth.inc.php';
Open commit View diff
179 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.auth.inc.php';
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
180
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/sessions.inc.php';
Open commit View diff
180 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/sessions.inc.php';
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
181
Open commit View diff
181
FreddleSpl0it about 3 years ago 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
182
// Init Identity Provider
Open commit View diff
182 // Init Identity Provider
same change 593e581

[Web] move iam sso functions

Full commit hash
593e581cf3775e4add21ffa8b126ffa5f55e33af
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
183
$iam_provider = identity_provider('init');
Open commit View diff
183 $iam_provider = identity_provider('init');
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
184
$iam_settings = identity_provider('get');
Open commit View diff
184 $iam_settings = identity_provider('get');
FreddleSpl0it over 3 years ago f6869da

[Web] manage keycloak identity provider

Full commit hash
f6869da3a02b937d8f498476be1d7e95ab418e33
Author
FreddleSpl0it <[email protected]>
Date
over 3 years ago
Selected line
185
Open commit View diff
185
andryyy over 7 years ago d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
186
// IMAP lib
Open commit View diff
186 // IMAP lib
same change d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
187
// use Ddeboer\Imap\Server;
Open commit View diff
187 // use Ddeboer\Imap\Server;
same change d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
188
// $imap_server = new Server('dovecot', 143, '/imap/tls/novalidate-cert');
Open commit View diff
188 // $imap_server = new Server('dovecot', 143, '/imap/tls/novalidate-cert');
same change d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
189
Open commit View diff
189
Dennis Neufeld about 9 years ago 8fb6a4c

Language selection

Full commit hash
8fb6a4c34d687993f3f3490a8bd390be289bc379
Author
Dennis Neufeld <[email protected]>
Date
about 9 years ago
Selected line
190
// Set language
Open commit View diff
190 // Set language
Kristian over 8 years ago b579304

Remember selected lang in cookie

Full commit hash
b5793048dfd6a7bcc2e940fd3bc716f767c7a43a
Author
Kristian <[email protected]>
Date
over 8 years ago
Selected line
191
if (!isset($_SESSION['mailcow_locale']) && !isset($_COOKIE['mailcow_locale'])) {
Open commit View diff
191 if (!isset($_SESSION['mailcow_locale']) && !isset($_COOKIE['mailcow_locale'])) {
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
192
  if ($DETECT_LANGUAGE && isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
Open commit View diff
192 if ($DETECT_LANGUAGE && isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
DerLinkman almost 4 years ago a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
193
    // regex inspired from @GabrielAnderson on http://stackoverflow.com/questions/6038236/http-accept-language
Open commit View diff
193 // regex inspired from @GabrielAnderson on http://stackoverflow.com/questions/6038236/http-accept-language
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
194
    preg_match_all('/([a-z]{1,8}(-[a-z]{1,8})*)\s*(;\s*q\s*=\s*(1|0\.[0-9]+))?/i', $_SERVER['HTTP_ACCEPT_LANGUAGE'], $lang_parse);
Open commit View diff
194 preg_match_all('/([a-z]{1,8}(-[a-z]{1,8})*)\s*(;\s*q\s*=\s*(1|0\.[0-9]+))?/i', $_SERVER['HTTP_ACCEPT_LANGUAGE'], $lang_parse);
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
195
Open commit View diff
195
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
196
    $langs = $lang_parse[1];
Open commit View diff
196 $langs = $lang_parse[1];
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
197
    $ranks = $lang_parse[4];
Open commit View diff
197 $ranks = $lang_parse[4];
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
198
Open commit View diff
198
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
199
    // (create an associative array 'language' => 'preference')
Open commit View diff
199 // (create an associative array 'language' => 'preference')
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
200
    $lang2pref = array();
Open commit View diff
200 $lang2pref = array();
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
201
    for ($i=0; $i<count($langs); $i++) {
Open commit View diff
201 for ($i=0; $i<count($langs); $i++) {
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
202
      $lang2pref[strtolower($langs[$i])] = (float) (!empty($ranks[$i]) ? $ranks[$i] : 1);
Open commit View diff
202 $lang2pref[strtolower($langs[$i])] = (float) (!empty($ranks[$i]) ? $ranks[$i] : 1);
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
203
    }
Open commit View diff
203 }
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
204
Open commit View diff
204
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
205
    // (comparison function for uksort)
Open commit View diff
205 // (comparison function for uksort)
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
206
    $cmpLangs = function ($a, $b) use ($lang2pref) {
Open commit View diff
206 $cmpLangs = function ($a, $b) use ($lang2pref) {
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
207
      if ($lang2pref[$a] > $lang2pref[$b])
Open commit View diff
207 if ($lang2pref[$a] > $lang2pref[$b])
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
208
        return -1;
Open commit View diff
208 return -1;
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
209
      elseif ($lang2pref[$a] < $lang2pref[$b])
Open commit View diff
209 elseif ($lang2pref[$a] < $lang2pref[$b])
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
210
        return 1;
Open commit View diff
210 return 1;
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
211
      elseif (strlen($a) > strlen($b))
Open commit View diff
211 elseif (strlen($a) > strlen($b))
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
212
        return -1;
Open commit View diff
212 return -1;
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
213
      elseif (strlen($a) < strlen($b))
Open commit View diff
213 elseif (strlen($a) < strlen($b))
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
214
        return 1;
Open commit View diff
214 return 1;
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
215
      else
Open commit View diff
215 else
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
216
        return 0;
Open commit View diff
216 return 0;
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
217
    };
Open commit View diff
217 };
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
218
Open commit View diff
218
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
219
    // sort the languages by prefered language and by the most specific region
Open commit View diff
219 // sort the languages by prefered language and by the most specific region
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
220
    uksort($lang2pref, $cmpLangs);
Open commit View diff
220 uksort($lang2pref, $cmpLangs);
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
221
Open commit View diff
221
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
222
    // generate language array without the region part
Open commit View diff
222 // generate language array without the region part
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
223
    $AVAILABLE_BASE_LANGUAGES=array();
Open commit View diff
223 $AVAILABLE_BASE_LANGUAGES=array();
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
224
    foreach ($AVAILABLE_LANGUAGES as $code => $lang) {
Open commit View diff
224 foreach ($AVAILABLE_LANGUAGES as $code => $lang) {
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
225
      $base_code = substr($code, 0, 2);
Open commit View diff
225 $base_code = substr($code, 0, 2);
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
226
      if (!array_key_exists($base_code, $AVAILABLE_BASE_LANGUAGES)) {
Open commit View diff
226 if (!array_key_exists($base_code, $AVAILABLE_BASE_LANGUAGES)) {
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
227
        $AVAILABLE_BASE_LANGUAGES[$base_code] = $code;
Open commit View diff
227 $AVAILABLE_BASE_LANGUAGES[$base_code] = $code;
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
228
      }
Open commit View diff
228 }
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
229
    }
Open commit View diff
229 }
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
230
Open commit View diff
230
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
231
    // Find a perfect match or partial match
Open commit View diff
231 // Find a perfect match or partial match
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
232
    // Match en-gb or en
Open commit View diff
232 // Match en-gb or en
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
233
    foreach ($lang2pref as $lang => $q) {
Open commit View diff
233 foreach ($lang2pref as $lang => $q) {
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
234
      if (array_key_exists($lang, $AVAILABLE_LANGUAGES)) {
Open commit View diff
234 if (array_key_exists($lang, $AVAILABLE_LANGUAGES)) {
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
235
        $_SESSION['mailcow_locale'] = $lang;
Open commit View diff
235 $_SESSION['mailcow_locale'] = $lang;
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
236
        break;
Open commit View diff
236 break;
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
237
      } elseif (array_key_exists($lang, $AVAILABLE_BASE_LANGUAGES)) {
Open commit View diff
237 } elseif (array_key_exists($lang, $AVAILABLE_BASE_LANGUAGES)) {
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
238
        $_SESSION['mailcow_locale'] = $AVAILABLE_BASE_LANGUAGES[$lang];
Open commit View diff
238 $_SESSION['mailcow_locale'] = $AVAILABLE_BASE_LANGUAGES[$lang];
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
239
        break;
Open commit View diff
239 break;
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
240
      }
Open commit View diff
240 }
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
241
    }
Open commit View diff
241 }
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
242
Open commit View diff
242
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
243
    // Try suggest match
Open commit View diff
243 // Try suggest match
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
244
    // e.g. suggest en-gb when only en-us is provided
Open commit View diff
244 // e.g. suggest en-gb when only en-us is provided
Tomy Hsieh over 3 years ago 13bdd4a

đŸ›  fix: Locale decision algorithm

Full commit hash
13bdd4ad0bd6c1f417386192683d5fc36e06ec69
Author
Tomy Hsieh <[email protected]>
Date
over 3 years ago
Selected line
245
    if (!isset($_SESSION['mailcow_locale'])) {
Open commit View diff
245 if (!isset($_SESSION['mailcow_locale'])) {
DerLinkman almost 4 years ago a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
246
      foreach ($lang2pref as $lang => $q) {
Open commit View diff
246 foreach ($lang2pref as $lang => $q) {
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
247
        if (array_key_exists(substr($lang, 0, 2), $AVAILABLE_BASE_LANGUAGES)) {
Open commit View diff
247 if (array_key_exists(substr($lang, 0, 2), $AVAILABLE_BASE_LANGUAGES)) {
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
248
          $_SESSION['mailcow_locale'] = $AVAILABLE_BASE_LANGUAGES[substr($lang, 0, 2)];
Open commit View diff
248 $_SESSION['mailcow_locale'] = $AVAILABLE_BASE_LANGUAGES[substr($lang, 0, 2)];
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
249
          break;
Open commit View diff
249 break;
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
250
        }
Open commit View diff
250 }
same change a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
251
      }
Open commit View diff
251 }
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
252
    }
Open commit View diff
252 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
253
  }
Open commit View diff
253 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
254
  else {
Open commit View diff
254 else {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
255
    $_SESSION['mailcow_locale'] = strtolower(trim($DEFAULT_LANG));
Open commit View diff
255 $_SESSION['mailcow_locale'] = strtolower(trim($DEFAULT_LANG));
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
256
  }
Open commit View diff
256 }
andryyy about 9 years ago fd5a590

More structural changes

Full commit hash
fd5a59086b5f179af4a25376af0a06ecb3296288
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
257
}
Open commit View diff
257 }
Kristian over 8 years ago b579304

Remember selected lang in cookie

Full commit hash
b5793048dfd6a7bcc2e940fd3bc716f767c7a43a
Author
Kristian <[email protected]>
Date
over 8 years ago
Selected line
258
if (isset($_COOKIE['mailcow_locale'])) {
Open commit View diff
258 if (isset($_COOKIE['mailcow_locale'])) {
André almost 8 years ago 7490a85

[Web] Check cookie content, fixes #1917

Full commit hash
7490a85a480575851effa93970e8567ac8f9996a
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
259
  (preg_match('/^[a-z]{2}$/', $_COOKIE['mailcow_locale'])) ? $_SESSION['mailcow_locale'] = $_COOKIE['mailcow_locale'] : setcookie("mailcow_locale", "", time() - 300);
Open commit View diff
259 (preg_match('/^[a-z]{2}$/', $_COOKIE['mailcow_locale'])) ? $_SESSION['mailcow_locale'] = $_COOKIE['mailcow_locale'] : setcookie("mailcow_locale", "", time() - 300);
Kristian over 8 years ago b579304

Remember selected lang in cookie

Full commit hash
b5793048dfd6a7bcc2e940fd3bc716f767c7a43a
Author
Kristian <[email protected]>
Date
over 8 years ago
Selected line
260
}
Open commit View diff
260 }
andryyy about 5 years ago da20d5d

[Web] Replace country flags, improve flags for last logins, add info about last password change of a user

Full commit hash
da20d5dc38ef79ca87179080323491a50e9eb222
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
261
if (isset($_GET['lang']) && array_key_exists($_GET['lang'], $AVAILABLE_LANGUAGES)) {
Open commit View diff
261 if (isset($_GET['lang']) && array_key_exists($_GET['lang'], $AVAILABLE_LANGUAGES)) {
Dennis Neufeld about 9 years ago 8fb6a4c

Language selection

Full commit hash
8fb6a4c34d687993f3f3490a8bd390be289bc379
Author
Dennis Neufeld <[email protected]>
Date
about 9 years ago
Selected line
262
  $_SESSION['mailcow_locale'] = $_GET['lang'];
Open commit View diff
262 $_SESSION['mailcow_locale'] = $_GET['lang'];
Kristian over 8 years ago b579304

Remember selected lang in cookie

Full commit hash
b5793048dfd6a7bcc2e940fd3bc716f767c7a43a
Author
Kristian <[email protected]>
Date
over 8 years ago
Selected line
263
  setcookie("mailcow_locale", $_GET['lang'], time()+30758400); // one year
Open commit View diff
263 setcookie("mailcow_locale", $_GET['lang'], time()+30758400); // one year
Dennis Neufeld about 9 years ago 8fb6a4c

Language selection

Full commit hash
8fb6a4c34d687993f3f3490a8bd390be289bc379
Author
Dennis Neufeld <[email protected]>
Date
about 9 years ago
Selected line
264
}
Open commit View diff
264 }
same change 8fb6a4c

Language selection

Full commit hash
8fb6a4c34d687993f3f3490a8bd390be289bc379
Author
Dennis Neufeld <[email protected]>
Date
about 9 years ago
Selected line
265
Open commit View diff
265
tinect over 6 years ago e7821df

introduce json-files for translations (#3120)

Full commit hash
e7821df933e27c13ab39c1966e5fcba35fd5f11f
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
266
/*
Open commit View diff
266 /*
same change e7821df

introduce json-files for translations (#3120)

Full commit hash
e7821df933e27c13ab39c1966e5fcba35fd5f11f
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
267
 * load language
Open commit View diff
267 * load language
same change e7821df

introduce json-files for translations (#3120)

Full commit hash
e7821df933e27c13ab39c1966e5fcba35fd5f11f
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
268
 */
Open commit View diff
268 */
DerLinkman almost 4 years ago a334f33

Merge PR 4657 into language-change

Full commit hash
a334f33b35531885d115256dcadb47c5a76971af
Author
DerLinkman <[email protected]>
Date
almost 4 years ago
Selected line
269
$lang = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/lang/lang.en-gb.json'), true);
Open commit View diff
269 $lang = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/lang/lang.en-gb.json'), true);
tinect over 6 years ago e7821df

introduce json-files for translations (#3120)

Full commit hash
e7821df933e27c13ab39c1966e5fcba35fd5f11f
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
270
Open commit View diff
270
same change e7821df

introduce json-files for translations (#3120)

Full commit hash
e7821df933e27c13ab39c1966e5fcba35fd5f11f
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
271
$langFile = $_SERVER['DOCUMENT_ROOT'] . '/lang/lang.'.$_SESSION['mailcow_locale'].'.json';
Open commit View diff
271 $langFile = $_SERVER['DOCUMENT_ROOT'] . '/lang/lang.'.$_SESSION['mailcow_locale'].'.json';
same change e7821df

introduce json-files for translations (#3120)

Full commit hash
e7821df933e27c13ab39c1966e5fcba35fd5f11f
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
272
if(file_exists($langFile)) {
Open commit View diff
272 if(file_exists($langFile)) {
same change e7821df

introduce json-files for translations (#3120)

Full commit hash
e7821df933e27c13ab39c1966e5fcba35fd5f11f
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
273
  $lang = array_merge_real($lang, json_decode(file_get_contents($langFile), true));
Open commit View diff
273 $lang = array_merge_real($lang, json_decode(file_get_contents($langFile), true));
same change e7821df

introduce json-files for translations (#3120)

Full commit hash
e7821df933e27c13ab39c1966e5fcba35fd5f11f
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
274
}
Open commit View diff
274 }
same change e7821df

introduce json-files for translations (#3120)

Full commit hash
e7821df933e27c13ab39c1966e5fcba35fd5f11f
Author
tinect <[email protected]>
Date
over 6 years ago
Selected line
275
Open commit View diff
275
FreddleSpl0it over 4 years ago c1792df

[BS5] include dependencies

Full commit hash
c1792df819adbd9b0c67ed78d3bd74bcb2669d44
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
276
Open commit View diff
276
André almost 8 years ago c9554ca

[Compose] Update watchdog image

Full commit hash
c9554ca02291e64e56a786217de8d4b34b25544d
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
277
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.acl.inc.php';
Open commit View diff
277 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.acl.inc.php';
Michael Kuron over 8 years ago e86565e

Expose Postfix's recipient_canonical_maps through web UI

Full commit hash
e86565e2836b13be96d62790818849570c3bc6a1
Author
Michael Kuron <[email protected]>
Date
over 8 years ago
Selected line
278
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.address_rewriting.inc.php';
Open commit View diff
278 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.address_rewriting.inc.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
279
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.admin.inc.php';
Open commit View diff
279 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.admin.inc.php';
andryyy over 5 years ago 06c89ba

[Web] Implement XMPP

Full commit hash
06c89bac7deec007fbc5703bb8973f4da2176846
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
280
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.app_passwd.inc.php';
Open commit View diff
280 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.app_passwd.inc.php';
same change 06c89ba

[Web] Implement XMPP

Full commit hash
06c89bac7deec007fbc5703bb8973f4da2176846
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
281
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.customize.inc.php';
Open commit View diff
281 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.customize.inc.php';
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
282
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.dkim.inc.php';
Open commit View diff
282 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.dkim.inc.php';
andryyy over 5 years ago 06c89ba

[Web] Implement XMPP

Full commit hash
06c89bac7deec007fbc5703bb8973f4da2176846
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
283
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.docker.inc.php';
Open commit View diff
283 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.docker.inc.php';
same change 06c89ba

[Web] Implement XMPP

Full commit hash
06c89bac7deec007fbc5703bb8973f4da2176846
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
284
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.domain_admin.inc.php';
Open commit View diff
284 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.domain_admin.inc.php';
same change 06c89ba

[Web] Implement XMPP

Full commit hash
06c89bac7deec007fbc5703bb8973f4da2176846
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
285
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.fail2ban.inc.php';
Open commit View diff
285 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.fail2ban.inc.php';
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
286
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.fwdhost.inc.php';
Open commit View diff
286 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.fwdhost.inc.php';
andryyy over 5 years ago 06c89ba

[Web] Implement XMPP

Full commit hash
06c89bac7deec007fbc5703bb8973f4da2176846
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
287
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.mailbox.inc.php';
Open commit View diff
287 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.mailbox.inc.php';
André over 7 years ago e30dfd6

[Web] Queue manager for Postfix

Full commit hash
e30dfd6751d27f4edece2c58866a486b338cb7d2
Author
AndrĂ© <[email protected]>
Date
over 7 years ago
Selected line
288
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.mailq.inc.php';
Open commit View diff
288 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.mailq.inc.php';
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
289
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.oauth2.inc.php';
Open commit View diff
289 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.oauth2.inc.php';
andryyy over 5 years ago 06c89ba

[Web] Implement XMPP

Full commit hash
06c89bac7deec007fbc5703bb8973f4da2176846
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
290
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.policy.inc.php';
Open commit View diff
290 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.policy.inc.php';
same change 06c89ba

[Web] Implement XMPP

Full commit hash
06c89bac7deec007fbc5703bb8973f4da2176846
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
291
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.presets.inc.php';
Open commit View diff
291 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.presets.inc.php';
andryyy over 6 years ago 8f4540d

[Web] r/o API keys, Pushover integration (can be limited by ACL), other minor changes

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
292
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.pushover.inc.php';
Open commit View diff
292 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.pushover.inc.php';
andryyy over 5 years ago 06c89ba

[Web] Implement XMPP

Full commit hash
06c89bac7deec007fbc5703bb8973f4da2176846
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
293
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.quarantine.inc.php';
Open commit View diff
293 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.quarantine.inc.php';
same change 06c89ba

[Web] Implement XMPP

Full commit hash
06c89bac7deec007fbc5703bb8973f4da2176846
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
294
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.quota_notification.inc.php';
Open commit View diff
294 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.quota_notification.inc.php';
André almost 8 years ago d64a894

[Web] Add multiple DKIM at once (+ button to auto-fill missing keys)

Full commit hash
d64a89473ea53fb49ad9dfd13af8ffd89cc417f5
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
295
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.ratelimit.inc.php';
Open commit View diff
295 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.ratelimit.inc.php';
andryyy over 6 years ago b52ee0a

[Rspamd] Fix map permissions for www

Full commit hash
b52ee0a706f1b4d0fb7989c8805623d2c842ea47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
296
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.rspamd.inc.php';
Open commit View diff
296 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.rspamd.inc.php';
André almost 8 years ago f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
297
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.tls_policy_maps.inc.php';
Open commit View diff
297 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.tls_policy_maps.inc.php';
andryyy over 5 years ago 06c89ba

[Web] Implement XMPP

Full commit hash
06c89bac7deec007fbc5703bb8973f4da2176846
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
298
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.transports.inc.php';
Open commit View diff
298 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.transports.inc.php';
andryyy about 9 years ago f77c40a

Better log table, some MySQL to Redis migrations, API changes, other minor changes...

Full commit hash
f77c40a179bb89b463318c6dafe4823a5844a43f
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
299
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/init_db.inc.php';
Open commit View diff
299 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/init_db.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
300
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/triggers.global.inc.php';
Open commit View diff
300 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/triggers.global.inc.php';
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
301
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/twig.inc.php';
Open commit View diff
301 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/twig.inc.php';
andryyy over 9 years ago 790c922

New db init system

Full commit hash
790c92237524ba99efb359fa5bc4b48082ca256b
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
302
init_db_schema();
Open commit View diff
302 init_db_schema();
andryyy almost 9 years ago 66ae588

[Web] Started work on ACL, fix notifications

Full commit hash
66ae588445af7db7d7cd274b7c82d38a935e9fa4
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
303
if (isset($_SESSION['mailcow_cc_role'])) {
Open commit View diff
303 if (isset($_SESSION['mailcow_cc_role'])) {
andryyy over 7 years ago d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
304
  // if ($_SESSION['mailcow_cc_role'] == 'user') {
Open commit View diff
304 // if ($_SESSION['mailcow_cc_role'] == 'user') {
same change d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
305
    // list($master_user, $master_passwd) = explode(':', file_get_contents('/etc/sogo/sieve.creds'));
Open commit View diff
305 // list($master_user, $master_passwd) = explode(':', file_get_contents('/etc/sogo/sieve.creds'));
same change d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
306
    // $imap_connection = $imap_server->authenticate($_SESSION['mailcow_cc_username'] . '*' . trim($master_user), trim($master_passwd));
Open commit View diff
306 // $imap_connection = $imap_server->authenticate($_SESSION['mailcow_cc_username'] . '*' . trim($master_user), trim($master_passwd));
same change d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
307
    // $master_user = $master_passwd = null;
Open commit View diff
307 // $master_user = $master_passwd = null;
same change d82c2bf

[Web] Adjust mailbox format

Full commit hash
d82c2bfdb7a8432ee72b7a2407ce152057b15572
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
308
  // }
Open commit View diff
308 // }
André almost 8 years ago c9554ca

[Compose] Update watchdog image

Full commit hash
c9554ca02291e64e56a786217de8d4b34b25544d
Author
AndrĂ© <[email protected]>
Date
almost 8 years ago
Selected line
309
  acl('to_session');
Open commit View diff
309 acl('to_session');
andryyy almost 9 years ago 7cb3c41

Merge fix for prereq path

Full commit hash
7cb3c416cbe6c6cebeb7ea20e0d1b16043ae275f
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
310
}
Open commit View diff
310 }
FreddleSpl0it over 4 years ago 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
311
Open commit View diff
311
same change 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
312
// init frontend
Open commit View diff
312 // init frontend
same change 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
313
// Minify JS
Open commit View diff
313 // Minify JS
same change 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
314
use MatthiasMullie\Minify;
Open commit View diff
314 use MatthiasMullie\Minify;
same change 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
315
$js_minifier = new JSminifierExtended();
Open commit View diff
315 $js_minifier = new JSminifierExtended();
same change 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
316
$js_dir = array_diff(scandir('/web/js/build'), array('..', '.'));
Open commit View diff
316 $js_dir = array_diff(scandir('/web/js/build'), array('..', '.'));
same change 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
317
// Minify CSS
Open commit View diff
317 // Minify CSS
same change 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
318
$css_minifier = new CSSminifierExtended();
Open commit View diff
318 $css_minifier = new CSSminifierExtended();
same change 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
319
$css_dir = array_diff(scandir('/web/css/build'), array('..', '.'));
Open commit View diff
319 $css_dir = array_diff(scandir('/web/css/build'), array('..', '.'));
same change 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
320
// get customized ui data
Open commit View diff
320 // get customized ui data
same change 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
321
$UI_TEXTS = customize('get', 'ui_texts');
Open commit View diff
321 $UI_TEXTS = customize('get', 'ui_texts');
FreddleSpl0it about 4 years ago 052959f

[BS5] remove ui theme selector - add darkmode toggler

Full commit hash
052959f435fd0219dd21c3912cda8ae406d081e4
Author
FreddleSpl0it <[email protected]>
Date
about 4 years ago
Selected line
322
Open commit View diff
322
same change 052959f

[BS5] remove ui theme selector - add darkmode toggler

Full commit hash
052959f435fd0219dd21c3912cda8ae406d081e4
Author
FreddleSpl0it <[email protected]>
Date
about 4 years ago
Selected line
323
Open commit View diff
323
FreddleSpl0it over 4 years ago 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
324
// minify bootstrap theme
Open commit View diff
324 // minify bootstrap theme
FreddleSpl0it about 4 years ago 7384aab

[BS5] fix minor issues

Full commit hash
7384aab2f45f9e1d2fd111cbbe51cd46e5614fde
Author
FreddleSpl0it <[email protected]>
Date
about 4 years ago
Selected line
325
if (file_exists('/web/css/themes/'.$UI_THEME.'-bootstrap.css'))
Open commit View diff
325 if (file_exists('/web/css/themes/'.$UI_THEME.'-bootstrap.css'))
FreddleSpl0it over 4 years ago 051d08b

[BS5] bug fixes

Full commit hash
051d08b499acdf7d767dc5dcc9062326416f2bba
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
326
  $css_minifier->add('/web/css/themes/'.$UI_THEME.'-bootstrap.css');
Open commit View diff
326 $css_minifier->add('/web/css/themes/'.$UI_THEME.'-bootstrap.css');
FreddleSpl0it over 4 years ago 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
327
else
Open commit View diff
327 else
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
328
  $css_minifier->add('/web/css/themes/lumen-bootstrap.css');
Open commit View diff
328 $css_minifier->add('/web/css/themes/lumen-bootstrap.css');
FreddleSpl0it over 4 years ago 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
329
// minify css build files
Open commit View diff
329 // minify css build files
same change 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
330
foreach ($css_dir as $css_file) {
Open commit View diff
330 foreach ($css_dir as $css_file) {
same change 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
331
  $css_minifier->add('/web/css/build/' . $css_file);
Open commit View diff
331 $css_minifier->add('/web/css/build/' . $css_file);
same change 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
332
}
Open commit View diff
332 }
same change 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
333
// minify js build files
Open commit View diff
333 // minify js build files
same change 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
334
foreach ($js_dir as $js_file) {
Open commit View diff
334 foreach ($js_dir as $js_file) {
same change 635fa79

[BS5] move init frontend block

Full commit hash
635fa795d21585195a8f894f0988b6a8cb0ece72
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
335
  $js_minifier->add('/web/js/build/' . $js_file);
Open commit View diff
335 $js_minifier->add('/web/js/build/' . $js_file);
FreddleSpl0it over 4 years ago 1d8da11

[BS5] change bootstrap navbar

Full commit hash
1d8da117d6d168a8a67849611e08cdef2adc6726
Author
FreddleSpl0it <[email protected]>
Date
over 4 years ago
Selected line
336
}
Open commit View diff
336 }