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

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

_rspamderror.php on main
Author Date Commit Line Code
andryyy almost 7 years ago b02f73e

[Netfilter] Add missing rspamderror php...

Full commit hash
b02f73e68e3724d2188c4cdd82ef2b44abdcd6ec
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
same change b02f73e

[Netfilter] Add missing rspamderror php...

Full commit hash
b02f73e68e3724d2188c4cdd82ef2b44abdcd6ec
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2
$redis = new Redis();
Open commit View diff
2 $redis = new Redis();
same change b02f73e

[Netfilter] Add missing rspamderror php...

Full commit hash
b02f73e68e3724d2188c4cdd82ef2b44abdcd6ec
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
3
try {
Open commit View diff
3 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
4
  if (!empty(getenv('REDIS_SLAVEOF_IP'))) {
Open commit View diff
4 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
5
    $redis->connect(getenv('REDIS_SLAVEOF_IP'), getenv('REDIS_SLAVEOF_PORT'));
Open commit View diff
5 $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
6
  }
Open commit View diff
6 }
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
7
  else {
Open commit View diff
7 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
8
    $redis->connect('redis-mailcow', 6379);
Open commit View diff
8 $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
9
  }
Open commit View diff
9 }
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
10
  $redis->auth(getenv("REDISPASS"));
Open commit View diff
10 $redis->auth(getenv("REDISPASS"));
andryyy almost 7 years ago b02f73e

[Netfilter] Add missing rspamderror php...

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

[Netfilter] Add missing rspamderror php...

Full commit hash
b02f73e68e3724d2188c4cdd82ef2b44abdcd6ec
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
12
catch (Exception $e) {
Open commit View diff
12 catch (Exception $e) {
same change b02f73e

[Netfilter] Add missing rspamderror php...

Full commit hash
b02f73e68e3724d2188c4cdd82ef2b44abdcd6ec
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
13
  exit;
Open commit View diff
13 exit;
same change b02f73e

[Netfilter] Add missing rspamderror php...

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

[Netfilter] Add missing rspamderror php...

Full commit hash
b02f73e68e3724d2188c4cdd82ef2b44abdcd6ec
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
15
header('Content-Type: application/json');
Open commit View diff
15 header('Content-Type: application/json');
same change b02f73e

[Netfilter] Add missing rspamderror php...

Full commit hash
b02f73e68e3724d2188c4cdd82ef2b44abdcd6ec
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
16
echo '{"error":"Unauthorized"}';
Open commit View diff
16 echo '{"error":"Unauthorized"}';
same change b02f73e

[Netfilter] Add missing rspamderror php...

Full commit hash
b02f73e68e3724d2188c4cdd82ef2b44abdcd6ec
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
17
error_log("Rspamd UI: Invalid password by " . $_SERVER['REMOTE_ADDR']);
Open commit View diff
17 error_log("Rspamd UI: Invalid password by " . $_SERVER['REMOTE_ADDR']);
same change b02f73e

[Netfilter] Add missing rspamderror php...

Full commit hash
b02f73e68e3724d2188c4cdd82ef2b44abdcd6ec
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
18
$redis->publish("F2B_CHANNEL", "Rspamd UI: Invalid password by " . $_SERVER['REMOTE_ADDR']);
Open commit View diff
18 $redis->publish("F2B_CHANNEL", "Rspamd UI: Invalid password by " . $_SERVER['REMOTE_ADDR']);