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

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

functions.fwdhost.inc.php on main
Author Date Commit Line Code
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
2
function fwdhost($_action, $_data = null) {
Open commit View diff
2 function fwdhost($_action, $_data = null) {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
3
  require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/spf.inc.php';
Open commit View diff
3 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/spf.inc.php';
andryyy almost 5 years ago 2cd0b56

[Web] Various PHP 8 fixes, partly fixes #4219

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
4
  global $redis;
Open commit View diff
4 global $redis;
same change 2cd0b56

[Web] Various PHP 8 fixes, partly fixes #4219

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
5
  global $lang;
Open commit View diff
5 global $lang;
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
6
  $_data_log = $_data;
Open commit View diff
6 $_data_log = $_data;
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
7
  switch ($_action) {
Open commit View diff
7 switch ($_action) {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
8
    case 'add':
Open commit View diff
8 case 'add':
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
9
      global $lang;
Open commit View diff
9 global $lang;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
10
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
10 if ($_SESSION['mailcow_cc_role'] != "admin") {
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
11
        $_SESSION['return'][] = array(
Open commit View diff
11 $_SESSION['return'][] = array(
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
12
          'type' => 'danger',
Open commit View diff
12 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
13
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
13 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
14
          'msg' => 'access_denied'
Open commit View diff
14 'msg' => 'access_denied'
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
15
        );
Open commit View diff
15 );
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
16
        return false;
Open commit View diff
16 return false;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
17
      }
Open commit View diff
17 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
18
      $source = $_data['hostname'];
Open commit View diff
18 $source = $_data['hostname'];
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
19
      $host = trim($_data['hostname']);
Open commit View diff
19 $host = trim($_data['hostname']);
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
20
      $filter_spam = (isset($_data['filter_spam']) && $_data['filter_spam'] == 1) ? 1 : 0;
Open commit View diff
20 $filter_spam = (isset($_data['filter_spam']) && $_data['filter_spam'] == 1) ? 1 : 0;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
21
      if (preg_match('/^[0-9a-fA-F:\/]+$/', $host)) { // IPv6 address
Open commit View diff
21 if (preg_match('/^[0-9a-fA-F:\/]+$/', $host)) { // IPv6 address
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
22
        $hosts = array($host);
Open commit View diff
22 $hosts = array($host);
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
23
      }
Open commit View diff
23 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
24
      elseif (preg_match('/^[0-9\.\/]+$/', $host)) { // IPv4 address
Open commit View diff
24 elseif (preg_match('/^[0-9\.\/]+$/', $host)) { // IPv4 address
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
25
        $hosts = array($host);
Open commit View diff
25 $hosts = array($host);
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
26
      }
Open commit View diff
26 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
27
      else {
Open commit View diff
27 else {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
28
        $hosts = get_outgoing_hosts_best_guess($host);
Open commit View diff
28 $hosts = get_outgoing_hosts_best_guess($host);
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
29
      }
Open commit View diff
29 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
30
      if (empty($hosts)) {
Open commit View diff
30 if (empty($hosts)) {
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
31
        $_SESSION['return'][] = array(
Open commit View diff
31 $_SESSION['return'][] = array(
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
32
          'type' => 'danger',
Open commit View diff
32 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
33
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
33 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
34
          'msg' => array('invalid_host', htmlspecialchars($host))
Open commit View diff
34 'msg' => array('invalid_host', htmlspecialchars($host))
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
35
        );
Open commit View diff
35 );
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
36
        return false;
Open commit View diff
36 return false;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
37
      }
Open commit View diff
37 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
38
      foreach ($hosts as $host) {
Open commit View diff
38 foreach ($hosts as $host) {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
39
        try {
Open commit View diff
39 try {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
40
          $redis->hSet('WHITELISTED_FWD_HOST', $host, $source);
Open commit View diff
40 $redis->hSet('WHITELISTED_FWD_HOST', $host, $source);
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
41
          if ($filter_spam == 0) {
Open commit View diff
41 if ($filter_spam == 0) {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
42
            $redis->hSet('KEEP_SPAM', $host, 1);
Open commit View diff
42 $redis->hSet('KEEP_SPAM', $host, 1);
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
43
          }
Open commit View diff
43 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
44
          elseif ($redis->hGet('KEEP_SPAM', $host)) {
Open commit View diff
44 elseif ($redis->hGet('KEEP_SPAM', $host)) {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
45
            $redis->hDel('KEEP_SPAM', $host);
Open commit View diff
45 $redis->hDel('KEEP_SPAM', $host);
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
46
          }
Open commit View diff
46 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
47
        }
Open commit View diff
47 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
48
        catch (RedisException $e) {
Open commit View diff
48 catch (RedisException $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
49
          $_SESSION['return'][] = array(
Open commit View diff
49 $_SESSION['return'][] = array(
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
50
            'type' => 'danger',
Open commit View diff
50 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
51
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
51 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
52
            'msg' => array('redis_error', $e)
Open commit View diff
52 'msg' => array('redis_error', $e)
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
53
          );
Open commit View diff
53 );
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
54
          return false;
Open commit View diff
54 return false;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
55
        }
Open commit View diff
55 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
56
      }
Open commit View diff
56 }
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
57
      $_SESSION['return'][] = array(
Open commit View diff
57 $_SESSION['return'][] = array(
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
58
        'type' => 'success',
Open commit View diff
58 'type' => 'success',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
59
        'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
59 'log' => array(__FUNCTION__, $_action, $_data_log),
andryyy almost 5 years ago 2cd0b56

[Web] Various PHP 8 fixes, partly fixes #4219

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
60
        'msg' => array('forwarding_host_added', htmlspecialchars(implode(', ', (array)$hosts)))
Open commit View diff
60 'msg' => array('forwarding_host_added', htmlspecialchars(implode(', ', (array)$hosts)))
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
61
      );
Open commit View diff
61 );
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
62
    break;
Open commit View diff
62 break;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
63
    case 'edit':
Open commit View diff
63 case 'edit':
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
64
      global $lang;
Open commit View diff
64 global $lang;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
65
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
65 if ($_SESSION['mailcow_cc_role'] != "admin") {
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
66
        $_SESSION['return'][] = array(
Open commit View diff
66 $_SESSION['return'][] = array(
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
67
          'type' => 'danger',
Open commit View diff
67 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
68
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
68 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
69
          'msg' => 'access_denied'
Open commit View diff
69 'msg' => 'access_denied'
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
70
        );
Open commit View diff
70 );
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
71
        return false;
Open commit View diff
71 return false;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
72
      }
Open commit View diff
72 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
73
      $fwdhosts = (array)$_data['fwdhost'];
Open commit View diff
73 $fwdhosts = (array)$_data['fwdhost'];
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
74
      foreach ($fwdhosts as $fwdhost) {
Open commit View diff
74 foreach ($fwdhosts as $fwdhost) {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
75
        $is_now = fwdhost('details', $fwdhost);
Open commit View diff
75 $is_now = fwdhost('details', $fwdhost);
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
76
        if (!empty($is_now)) {
Open commit View diff
76 if (!empty($is_now)) {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
77
          $keep_spam = (isset($_data['keep_spam'])) ? $_data['keep_spam'] : $is_now['keep_spam'];
Open commit View diff
77 $keep_spam = (isset($_data['keep_spam'])) ? $_data['keep_spam'] : $is_now['keep_spam'];
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
78
        }
Open commit View diff
78 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
79
        else {
Open commit View diff
79 else {
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
80
          $_SESSION['return'][] = array(
Open commit View diff
80 $_SESSION['return'][] = array(
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
81
            'type' => 'danger',
Open commit View diff
81 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
82
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
82 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
83
            'msg' => 'access_denied'
Open commit View diff
83 'msg' => 'access_denied'
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
84
          );
Open commit View diff
84 );
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
85
          continue;
Open commit View diff
85 continue;
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
86
        }
Open commit View diff
86 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
87
        try {
Open commit View diff
87 try {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
88
          if ($keep_spam == 1) {
Open commit View diff
88 if ($keep_spam == 1) {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
89
            $redis->hSet('KEEP_SPAM', $fwdhost, 1);
Open commit View diff
89 $redis->hSet('KEEP_SPAM', $fwdhost, 1);
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
90
          }
Open commit View diff
90 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
91
          else {
Open commit View diff
91 else {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
92
            $redis->hDel('KEEP_SPAM', $fwdhost);
Open commit View diff
92 $redis->hDel('KEEP_SPAM', $fwdhost);
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
93
          }
Open commit View diff
93 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
94
        }
Open commit View diff
94 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
95
        catch (RedisException $e) {
Open commit View diff
95 catch (RedisException $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
96
          $_SESSION['return'][] = array(
Open commit View diff
96 $_SESSION['return'][] = array(
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
97
            'type' => 'danger',
Open commit View diff
97 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
98
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
98 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
99
            'msg' => array('redis_error', $e)
Open commit View diff
99 'msg' => array('redis_error', $e)
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
100
          );
Open commit View diff
100 );
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
101
          continue;
Open commit View diff
101 continue;
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
102
        }
Open commit View diff
102 }
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
103
        $_SESSION['return'][] = array(
Open commit View diff
103 $_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
104
          'type' => 'success',
Open commit View diff
104 'type' => 'success',
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
105
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
105 'log' => array(__FUNCTION__, $_action, $_data_log),
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
106
          'msg' => array('object_modified', htmlspecialchars($fwdhost))
Open commit View diff
106 'msg' => array('object_modified', htmlspecialchars($fwdhost))
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
107
        );
Open commit View diff
107 );
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
108
      }
Open commit View diff
108 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
109
    break;
Open commit View diff
109 break;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
110
    case 'delete':
Open commit View diff
110 case 'delete':
FreddleSpl0it 4 months ago 8a65b9d

add missing access control

Full commit hash
8a65b9d1c6549cd451a3d145461ee465bf87c1e8
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
111
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
111 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change 8a65b9d

add missing access control

Full commit hash
8a65b9d1c6549cd451a3d145461ee465bf87c1e8
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
112
        $_SESSION['return'][] = array(
Open commit View diff
112 $_SESSION['return'][] = array(
same change 8a65b9d

add missing access control

Full commit hash
8a65b9d1c6549cd451a3d145461ee465bf87c1e8
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
113
          'type' => 'danger',
Open commit View diff
113 'type' => 'danger',
same change 8a65b9d

add missing access control

Full commit hash
8a65b9d1c6549cd451a3d145461ee465bf87c1e8
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
114
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
114 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 8a65b9d

add missing access control

Full commit hash
8a65b9d1c6549cd451a3d145461ee465bf87c1e8
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
115
          'msg' => 'access_denied'
Open commit View diff
115 'msg' => 'access_denied'
same change 8a65b9d

add missing access control

Full commit hash
8a65b9d1c6549cd451a3d145461ee465bf87c1e8
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
116
        );
Open commit View diff
116 );
same change 8a65b9d

add missing access control

Full commit hash
8a65b9d1c6549cd451a3d145461ee465bf87c1e8
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
117
        return false;
Open commit View diff
117 return false;
same change 8a65b9d

add missing access control

Full commit hash
8a65b9d1c6549cd451a3d145461ee465bf87c1e8
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
118
      }
Open commit View diff
118 }
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
119
      $hosts = (array)$_data['forwardinghost'];
Open commit View diff
119 $hosts = (array)$_data['forwardinghost'];
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
120
      foreach ($hosts as $host) {
Open commit View diff
120 foreach ($hosts as $host) {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
121
        try {
Open commit View diff
121 try {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
122
          $redis->hDel('WHITELISTED_FWD_HOST', $host);
Open commit View diff
122 $redis->hDel('WHITELISTED_FWD_HOST', $host);
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
123
          $redis->hDel('KEEP_SPAM', $host);
Open commit View diff
123 $redis->hDel('KEEP_SPAM', $host);
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
124
        }
Open commit View diff
124 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
125
        catch (RedisException $e) {
Open commit View diff
125 catch (RedisException $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
126
          $_SESSION['return'][] = array(
Open commit View diff
126 $_SESSION['return'][] = array(
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
127
            'type' => 'danger',
Open commit View diff
127 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
128
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
128 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
129
            'msg' => array('redis_error', $e)
Open commit View diff
129 'msg' => array('redis_error', $e)
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
130
          );
Open commit View diff
130 );
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
131
          continue;
Open commit View diff
131 continue;
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
132
        }
Open commit View diff
132 }
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
133
        $_SESSION['return'][] = array(
Open commit View diff
133 $_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
134
          'type' => 'success',
Open commit View diff
134 'type' => 'success',
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
135
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
135 'log' => array(__FUNCTION__, $_action, $_data_log),
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
136
          'msg' => array('forwarding_host_removed', htmlspecialchars($host))
Open commit View diff
136 'msg' => array('forwarding_host_removed', htmlspecialchars($host))
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
137
        );
Open commit View diff
137 );
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
138
      }
Open commit View diff
138 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
139
    break;
Open commit View diff
139 break;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
140
    case 'get':
Open commit View diff
140 case 'get':
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
141
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
141 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
142
        return false;
Open commit View diff
142 return false;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
143
      }
Open commit View diff
143 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
144
      $fwdhostsdata = array();
Open commit View diff
144 $fwdhostsdata = array();
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
145
      try {
Open commit View diff
145 try {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
146
        $fwd_hosts = $redis->hGetAll('WHITELISTED_FWD_HOST');
Open commit View diff
146 $fwd_hosts = $redis->hGetAll('WHITELISTED_FWD_HOST');
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
147
        if (!empty($fwd_hosts)) {
Open commit View diff
147 if (!empty($fwd_hosts)) {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
148
        foreach ($fwd_hosts as $fwd_host => $source) {
Open commit View diff
148 foreach ($fwd_hosts as $fwd_host => $source) {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
149
          $keep_spam = ($redis->hGet('KEEP_SPAM', $fwd_host)) ? "yes" : "no";
Open commit View diff
149 $keep_spam = ($redis->hGet('KEEP_SPAM', $fwd_host)) ? "yes" : "no";
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
150
          $fwdhostsdata[] = array(
Open commit View diff
150 $fwdhostsdata[] = array(
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
151
            'host' => $fwd_host,
Open commit View diff
151 'host' => $fwd_host,
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
152
            'source' => $source,
Open commit View diff
152 'source' => $source,
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
153
            'keep_spam' => $keep_spam
Open commit View diff
153 'keep_spam' => $keep_spam
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
154
          );
Open commit View diff
154 );
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
155
        }
Open commit View diff
155 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
156
        }
Open commit View diff
156 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
157
      }
Open commit View diff
157 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
158
      catch (RedisException $e) {
Open commit View diff
158 catch (RedisException $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
159
        $_SESSION['return'][] = array(
Open commit View diff
159 $_SESSION['return'][] = array(
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
160
          'type' => 'danger',
Open commit View diff
160 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
161
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
161 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
162
          'msg' => array('redis_error', $e)
Open commit View diff
162 'msg' => array('redis_error', $e)
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
163
        );
Open commit View diff
163 );
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
164
        return false;
Open commit View diff
164 return false;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
165
      }
Open commit View diff
165 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
166
      return $fwdhostsdata;
Open commit View diff
166 return $fwdhostsdata;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
167
    break;
Open commit View diff
167 break;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
168
    case 'details':
Open commit View diff
168 case 'details':
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
169
      $fwdhostdetails = array();
Open commit View diff
169 $fwdhostdetails = array();
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
170
      if (!isset($_data) || empty($_data)) {
Open commit View diff
170 if (!isset($_data) || empty($_data)) {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
171
        return false;
Open commit View diff
171 return false;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
172
      }
Open commit View diff
172 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
173
      try {
Open commit View diff
173 try {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
174
        if ($source = $redis->hGet('WHITELISTED_FWD_HOST', $_data)) {
Open commit View diff
174 if ($source = $redis->hGet('WHITELISTED_FWD_HOST', $_data)) {
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
175
          $fwdhostdetails['host'] = $_data;
Open commit View diff
175 $fwdhostdetails['host'] = $_data;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
176
          $fwdhostdetails['source'] = $source;
Open commit View diff
176 $fwdhostdetails['source'] = $source;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
177
          $fwdhostdetails['keep_spam'] = ($redis->hGet('KEEP_SPAM', $_data)) ? "yes" : "no";
Open commit View diff
177 $fwdhostdetails['keep_spam'] = ($redis->hGet('KEEP_SPAM', $_data)) ? "yes" : "no";
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
178
        }
Open commit View diff
178 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
179
      }
Open commit View diff
179 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
180
      catch (RedisException $e) {
Open commit View diff
180 catch (RedisException $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
181
        $_SESSION['return'][] = array(
Open commit View diff
181 $_SESSION['return'][] = array(
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
182
          'type' => 'danger',
Open commit View diff
182 'type' => 'danger',
André almost 8 years ago 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
183
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
183 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 7f86a80

[Web] Fix log line handling

Full commit hash
7f86a8067039b63e6afa7bb1724eadad9493d112
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
184
          'msg' => array('redis_error', $e)
Open commit View diff
184 'msg' => array('redis_error', $e)
andryyy about 9 years ago ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
185
        );
Open commit View diff
185 );
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
186
        return false;
Open commit View diff
186 return false;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
187
      }
Open commit View diff
187 }
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
188
      return $fwdhostdetails;
Open commit View diff
188 return $fwdhostdetails;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
189
    break;
Open commit View diff
189 break;
same change ce6bf18

Web UI improvements

Full commit hash
ce6bf18c2f5351897eae091e55c3583805a15ad8
Author
andryyy <[email protected]>
Date
about 9 years ago
Selected line
190
  }
Open commit View diff
190 }
andryyy almost 5 years ago 2cd0b56

[Web] Various PHP 8 fixes, partly fixes #4219

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
191
}
Open commit View diff
191 }