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.transports.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.transports.inc.php on main
Author Date Commit Line Code
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

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

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
2
function relayhost($_action, $_data = null) {
Open commit View diff
2 function relayhost($_action, $_data = null) {
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
3
  global $pdo;
Open commit View diff
3 global $pdo;
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
4
  global $lang;
Open commit View diff
4 global $lang;
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
5
  $_data_log = $_data;
Open commit View diff
5 $_data_log = $_data;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
6
  switch ($_action) {
Open commit View diff
6 switch ($_action) {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
7
    case 'add':
Open commit View diff
7 case 'add':
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
8
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
8 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
9
        $_SESSION['return'][] = array(
Open commit View diff
9 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
10
          'type' => 'danger',
Open commit View diff
10 'type' => 'danger',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
11
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
11 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
12
          'msg' => 'access_denied'
Open commit View diff
12 'msg' => 'access_denied'
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
13
        );
Open commit View diff
13 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
14
        return false;
Open commit View diff
14 return false;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
15
      }
Open commit View diff
15 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
16
      $hostname = trim($_data['hostname']);
Open commit View diff
16 $hostname = trim($_data['hostname']);
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
17
      $username = str_replace(':', '\:', trim($_data['username']));
Open commit View diff
17 $username = str_replace(':', '\:', trim($_data['username']));
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
18
      $password = str_replace(':', '\:', trim($_data['password']));
Open commit View diff
18 $password = str_replace(':', '\:', trim($_data['password']));
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
19
      if (empty($hostname)) {
Open commit View diff
19 if (empty($hostname)) {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
20
        $_SESSION['return'][] = array(
Open commit View diff
20 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
21
          'type' => 'danger',
Open commit View diff
21 'type' => 'danger',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
22
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
22 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
23
          'msg' => array('invalid_host', htmlspecialchars($host))
Open commit View diff
23 'msg' => array('invalid_host', htmlspecialchars($host))
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
24
        );
Open commit View diff
24 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
25
        return false;
Open commit View diff
25 return false;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
26
      }
Open commit View diff
26 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
27
      try {
Open commit View diff
27 try {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
28
        $stmt = $pdo->prepare("INSERT INTO `relayhosts` (`hostname`, `username` ,`password`, `active`)
Open commit View diff
28 $stmt = $pdo->prepare("INSERT INTO `relayhosts` (`hostname`, `username` ,`password`, `active`)
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
29
          VALUES (:hostname, :username, :password, :active)");
Open commit View diff
29 VALUES (:hostname, :username, :password, :active)");
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
30
        $stmt->execute(array(
Open commit View diff
30 $stmt->execute(array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
31
          ':hostname' => $hostname,
Open commit View diff
31 ':hostname' => $hostname,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
32
          ':username' => $username,
Open commit View diff
32 ':username' => $username,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
33
          ':password' => str_replace(':', '\:', $password),
Open commit View diff
33 ':password' => str_replace(':', '\:', $password),
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
34
          ':active' => '1'
Open commit View diff
34 ':active' => '1'
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
35
        ));
Open commit View diff
35 ));
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
36
      }
Open commit View diff
36 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
37
      catch (PDOException $e) {
Open commit View diff
37 catch (PDOException $e) {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
38
        $_SESSION['return'][] = array(
Open commit View diff
38 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
39
          'type' => 'danger',
Open commit View diff
39 'type' => 'danger',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
40
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
40 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
41
          'msg' => array('mysql_error', $e)
Open commit View diff
41 'msg' => array('mysql_error', $e)
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
42
        );
Open commit View diff
42 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
43
        return false;
Open commit View diff
43 return false;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
44
      }
Open commit View diff
44 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
45
      $_SESSION['return'][] = array(
Open commit View diff
45 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
46
        'type' => 'success',
Open commit View diff
46 'type' => 'success',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
47
        'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
47 '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
48
        'msg' => array('relayhost_added', htmlspecialchars(implode(', ', (array)$hosts)))
Open commit View diff
48 'msg' => array('relayhost_added', htmlspecialchars(implode(', ', (array)$hosts)))
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
49
      );
Open commit View diff
49 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
50
    break;
Open commit View diff
50 break;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
51
    case 'edit':
Open commit View diff
51 case 'edit':
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
52
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
52 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
53
        $_SESSION['return'][] = array(
Open commit View diff
53 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
54
          'type' => 'danger',
Open commit View diff
54 'type' => 'danger',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
55
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
55 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
56
          'msg' => 'access_denied'
Open commit View diff
56 'msg' => 'access_denied'
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
57
        );
Open commit View diff
57 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
58
        return false;
Open commit View diff
58 return false;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
59
      }
Open commit View diff
59 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
60
      $ids = (array)$_data['id'];
Open commit View diff
60 $ids = (array)$_data['id'];
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
61
      foreach ($ids as $id) {
Open commit View diff
61 foreach ($ids as $id) {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
62
        $is_now = relayhost('details', $id);
Open commit View diff
62 $is_now = relayhost('details', $id);
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
63
        if (!empty($is_now)) {
Open commit View diff
63 if (!empty($is_now)) {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
64
          $hostname = (!empty($_data['hostname'])) ? trim($_data['hostname']) : $is_now['hostname'];
Open commit View diff
64 $hostname = (!empty($_data['hostname'])) ? trim($_data['hostname']) : $is_now['hostname'];
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
65
          $username = (isset($_data['username'])) ? trim($_data['username']) : $is_now['username'];
Open commit View diff
65 $username = (isset($_data['username'])) ? trim($_data['username']) : $is_now['username'];
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
66
          $password = (isset($_data['password'])) ? trim($_data['password']) : $is_now['password'];
Open commit View diff
66 $password = (isset($_data['password'])) ? trim($_data['password']) : $is_now['password'];
andryyy almost 6 years ago d9b91fc

[Web] Important: Removed unnecessary *_int attributes from GET elements, _only_ returning int values now (same for all attributes which were provided as html char and int)

Full commit hash
d9b91fc04f286eaba4266ca60254a02dc5e91867
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
67
          $active   = (isset($_data['active'])) ? intval($_data['active']) : $is_now['active'];
Open commit View diff
67 $active = (isset($_data['active'])) ? intval($_data['active']) : $is_now['active'];
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
68
        }
Open commit View diff
68 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
69
        else {
Open commit View diff
69 else {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
70
          $_SESSION['return'][] = array(
Open commit View diff
70 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
71
            'type' => 'danger',
Open commit View diff
71 'type' => 'danger',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
72
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
72 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
73
            'msg' => array('relayhost_invalid', $id)
Open commit View diff
73 'msg' => array('relayhost_invalid', $id)
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
74
          );
Open commit View diff
74 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
75
          continue;
Open commit View diff
75 continue;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
76
        }
Open commit View diff
76 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
77
        try {
Open commit View diff
77 try {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
78
          $stmt = $pdo->prepare("UPDATE `relayhosts` SET
Open commit View diff
78 $stmt = $pdo->prepare("UPDATE `relayhosts` SET
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
79
            `hostname` = :hostname,
Open commit View diff
79 `hostname` = :hostname,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
80
            `username` = :username,
Open commit View diff
80 `username` = :username,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
81
            `password` = :password,
Open commit View diff
81 `password` = :password,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
82
            `active` = :active
Open commit View diff
82 `active` = :active
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
83
              WHERE `id` = :id");
Open commit View diff
83 WHERE `id` = :id");
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
84
          $stmt->execute(array(
Open commit View diff
84 $stmt->execute(array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
85
            ':id' => $id,
Open commit View diff
85 ':id' => $id,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
86
            ':hostname' => $hostname,
Open commit View diff
86 ':hostname' => $hostname,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
87
            ':username' => $username,
Open commit View diff
87 ':username' => $username,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
88
            ':password' => $password,
Open commit View diff
88 ':password' => $password,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
89
            ':active' => $active
Open commit View diff
89 ':active' => $active
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
90
          ));
Open commit View diff
90 ));
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
91
        }
Open commit View diff
91 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
92
        catch (PDOException $e) {
Open commit View diff
92 catch (PDOException $e) {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
93
          $_SESSION['return'][] = array(
Open commit View diff
93 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
94
            'type' => 'danger',
Open commit View diff
94 'type' => 'danger',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
95
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
95 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
96
            'msg' => array('mysql_error', $e)
Open commit View diff
96 'msg' => array('mysql_error', $e)
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
97
          );
Open commit View diff
97 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
98
          continue;
Open commit View diff
98 continue;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

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

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
100
        $_SESSION['return'][] = array(
Open commit View diff
100 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
101
          'type' => 'success',
Open commit View diff
101 'type' => 'success',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
102
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
102 '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
103
          'msg' => array('object_modified', htmlspecialchars(implode(', ', (array)$hostnames)))
Open commit View diff
103 'msg' => array('object_modified', htmlspecialchars(implode(', ', (array)$hostnames)))
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
104
        );
Open commit View diff
104 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
105
      }
Open commit View diff
105 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
106
    break;
Open commit View diff
106 break;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
107
    case 'delete':
Open commit View diff
107 case 'delete':
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
108
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
108 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
109
        $_SESSION['return'][] = array(
Open commit View diff
109 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
110
          'type' => 'danger',
Open commit View diff
110 'type' => 'danger',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
111
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
111 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
112
          'msg' => 'access_denied'
Open commit View diff
112 'msg' => 'access_denied'
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
113
        );
Open commit View diff
113 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
114
        return false;
Open commit View diff
114 return false;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
115
      }
Open commit View diff
115 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
116
      $ids = (array)$_data['id'];
Open commit View diff
116 $ids = (array)$_data['id'];
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
117
      foreach ($ids as $id) {
Open commit View diff
117 foreach ($ids as $id) {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
118
        try {
Open commit View diff
118 try {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
119
          $stmt = $pdo->prepare("DELETE FROM `relayhosts` WHERE `id`= :id");
Open commit View diff
119 $stmt = $pdo->prepare("DELETE FROM `relayhosts` WHERE `id`= :id");
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
120
          $stmt->execute(array(':id' => $id));
Open commit View diff
120 $stmt->execute(array(':id' => $id));
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
121
          $stmt = $pdo->prepare("UPDATE `domain` SET `relayhost` = '0' WHERE `relayhost`= :id");
Open commit View diff
121 $stmt = $pdo->prepare("UPDATE `domain` SET `relayhost` = '0' WHERE `relayhost`= :id");
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
122
          $stmt->execute(array(':id' => $id));
Open commit View diff
122 $stmt->execute(array(':id' => $id));
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
123
        }
Open commit View diff
123 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
124
        catch (PDOException $e) {
Open commit View diff
124 catch (PDOException $e) {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
125
          $_SESSION['return'][] = array(
Open commit View diff
125 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
126
            'type' => 'danger',
Open commit View diff
126 'type' => 'danger',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
127
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
127 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
128
            'msg' => array('mysql_error', $e)
Open commit View diff
128 'msg' => array('mysql_error', $e)
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
129
          );
Open commit View diff
129 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
130
          continue;
Open commit View diff
130 continue;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

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

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
132
        $_SESSION['return'][] = array(
Open commit View diff
132 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
133
          'type' => 'success',
Open commit View diff
133 'type' => 'success',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
134
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
134 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
135
          'msg' => array('relayhost_removed', htmlspecialchars($id))
Open commit View diff
135 'msg' => array('relayhost_removed', htmlspecialchars($id))
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
136
        );
Open commit View diff
136 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
137
      }
Open commit View diff
137 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
138
    break;
Open commit View diff
138 break;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
139
    case 'get':
Open commit View diff
139 case 'get':
andryyy about 5 years ago 5065667

[Postfix] Allow to set and override a relayhost per mailbox

Full commit hash
5065667ae467261d6a2336ec01faf9d26998044c
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
140
      if ($_SESSION['mailcow_cc_role'] != "admin" && $_SESSION['mailcow_cc_role'] != "domainadmin") {
Open commit View diff
140 if ($_SESSION['mailcow_cc_role'] != "admin" && $_SESSION['mailcow_cc_role'] != "domainadmin") {
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
141
        return false;
Open commit View diff
141 return false;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
142
      }
Open commit View diff
142 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
143
      $relayhosts = array();
Open commit View diff
143 $relayhosts = array();
andryyy about 5 years ago 5065667

[Postfix] Allow to set and override a relayhost per mailbox

Full commit hash
5065667ae467261d6a2336ec01faf9d26998044c
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
144
      $stmt = $pdo->query("SELECT `id`, `hostname`, `username`, `active` FROM `relayhosts`");
Open commit View diff
144 $stmt = $pdo->query("SELECT `id`, `hostname`, `username`, `active` FROM `relayhosts`");
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
145
      $relayhosts = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
145 $relayhosts = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
146
      return $relayhosts;
Open commit View diff
146 return $relayhosts;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
147
    break;
Open commit View diff
147 break;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
148
    case 'details':
Open commit View diff
148 case 'details':
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
149
      if ($_SESSION['mailcow_cc_role'] != "admin" || !isset($_data)) {
Open commit View diff
149 if ($_SESSION['mailcow_cc_role'] != "admin" || !isset($_data)) {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
150
        return false;
Open commit View diff
150 return false;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
151
      }
Open commit View diff
151 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
152
      $relayhostdata = array();
Open commit View diff
152 $relayhostdata = array();
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
153
      $stmt = $pdo->prepare("SELECT `id`,
Open commit View diff
153 $stmt = $pdo->prepare("SELECT `id`,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
154
        `hostname`,
Open commit View diff
154 `hostname`,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
155
        `username`,
Open commit View diff
155 `username`,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
156
        `password`,
Open commit View diff
156 `password`,
andryyy almost 6 years ago d9b91fc

[Web] Important: Removed unnecessary *_int attributes from GET elements, _only_ returning int values now (same for all attributes which were provided as html char and int)

Full commit hash
d9b91fc04f286eaba4266ca60254a02dc5e91867
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
157
        `active`,
Open commit View diff
157 `active`,
same change d9b91fc

[Web] Important: Removed unnecessary *_int attributes from GET elements, _only_ returning int values now (same for all attributes which were provided as html char and int)

Full commit hash
d9b91fc04f286eaba4266ca60254a02dc5e91867
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
158
        CONCAT(LEFT(`password`, 3), '...') AS `password_short`
Open commit View diff
158 CONCAT(LEFT(`password`, 3), '...') AS `password_short`
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
159
          FROM `relayhosts`
Open commit View diff
159 FROM `relayhosts`
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
160
            WHERE `id` = :id");
Open commit View diff
160 WHERE `id` = :id");
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
161
      $stmt->execute(array(':id' => $_data));
Open commit View diff
161 $stmt->execute(array(':id' => $_data));
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
162
      $relayhostdata = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
162 $relayhostdata = $stmt->fetch(PDO::FETCH_ASSOC);
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
163
      if (!empty($relayhostdata)) {
Open commit View diff
163 if (!empty($relayhostdata)) {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
164
        $stmt = $pdo->prepare("SELECT GROUP_CONCAT(`domain` SEPARATOR ', ') AS `used_by_domains` FROM `domain` WHERE `relayhost` = :id");
Open commit View diff
164 $stmt = $pdo->prepare("SELECT GROUP_CONCAT(`domain` SEPARATOR ', ') AS `used_by_domains` FROM `domain` WHERE `relayhost` = :id");
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
165
        $stmt->execute(array(':id' => $_data));
Open commit View diff
165 $stmt->execute(array(':id' => $_data));
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
166
        $used_by_domains = $stmt->fetch(PDO::FETCH_ASSOC)['used_by_domains'];
Open commit View diff
166 $used_by_domains = $stmt->fetch(PDO::FETCH_ASSOC)['used_by_domains'];
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
167
        $used_by_domains = (empty($used_by_domains)) ? '' : $used_by_domains;
Open commit View diff
167 $used_by_domains = (empty($used_by_domains)) ? '' : $used_by_domains;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
168
        $relayhostdata['used_by_domains'] = $used_by_domains;
Open commit View diff
168 $relayhostdata['used_by_domains'] = $used_by_domains;
andryyy about 5 years ago 5065667

[Postfix] Allow to set and override a relayhost per mailbox

Full commit hash
5065667ae467261d6a2336ec01faf9d26998044c
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
169
        $stmt = $pdo->prepare("SELECT GROUP_CONCAT(`username` SEPARATOR ', ') AS `used_by_mailboxes` FROM `mailbox` WHERE JSON_VALUE(`attributes`, '$.relayhost') = :id");
Open commit View diff
169 $stmt = $pdo->prepare("SELECT GROUP_CONCAT(`username` SEPARATOR ', ') AS `used_by_mailboxes` FROM `mailbox` WHERE JSON_VALUE(`attributes`, '$.relayhost') = :id");
same change 5065667

[Postfix] Allow to set and override a relayhost per mailbox

Full commit hash
5065667ae467261d6a2336ec01faf9d26998044c
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
170
        $stmt->execute(array(':id' => $_data));
Open commit View diff
170 $stmt->execute(array(':id' => $_data));
same change 5065667

[Postfix] Allow to set and override a relayhost per mailbox

Full commit hash
5065667ae467261d6a2336ec01faf9d26998044c
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
171
        $used_by_mailboxes = $stmt->fetch(PDO::FETCH_ASSOC)['used_by_mailboxes'];
Open commit View diff
171 $used_by_mailboxes = $stmt->fetch(PDO::FETCH_ASSOC)['used_by_mailboxes'];
same change 5065667

[Postfix] Allow to set and override a relayhost per mailbox

Full commit hash
5065667ae467261d6a2336ec01faf9d26998044c
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
172
        $used_by_mailboxes = (empty($used_by_mailboxes)) ? '' : $used_by_mailboxes;
Open commit View diff
172 $used_by_mailboxes = (empty($used_by_mailboxes)) ? '' : $used_by_mailboxes;
same change 5065667

[Postfix] Allow to set and override a relayhost per mailbox

Full commit hash
5065667ae467261d6a2336ec01faf9d26998044c
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
173
        $relayhostdata['used_by_mailboxes'] = $used_by_mailboxes;
Open commit View diff
173 $relayhostdata['used_by_mailboxes'] = $used_by_mailboxes;
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
174
      }
Open commit View diff
174 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
175
      return $relayhostdata;
Open commit View diff
175 return $relayhostdata;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
176
    break;
Open commit View diff
176 break;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
177
  }
Open commit View diff
177 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
178
}
Open commit View diff
178 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
179
function transport($_action, $_data = null) {
Open commit View diff
179 function transport($_action, $_data = null) {
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
180
  global $pdo;
Open commit View diff
180 global $pdo;
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
181
  global $lang;
Open commit View diff
181 global $lang;
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
182
  $_data_log = $_data;
Open commit View diff
182 $_data_log = $_data;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
183
  switch ($_action) {
Open commit View diff
183 switch ($_action) {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
184
    case 'add':
Open commit View diff
184 case 'add':
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
185
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
185 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
186
        $_SESSION['return'][] = array(
Open commit View diff
186 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
187
          'type' => 'danger',
Open commit View diff
187 'type' => 'danger',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
188
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
188 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
189
          'msg' => 'access_denied'
Open commit View diff
189 'msg' => 'access_denied'
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
190
        );
Open commit View diff
190 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
191
        return false;
Open commit View diff
191 return false;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
192
      }
Open commit View diff
192 }
andryyy almost 7 years ago ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
193
      $destinations  = array_map('trim', preg_split( "/( |,|;|\n)/", $_data['destination']));
Open commit View diff
193 $destinations = array_map('trim', preg_split( "/( |,|;|\n)/", $_data['destination']));
andryyy almost 7 years ago 0d8a92a

[Web] Show ratelimit inheritance

Full commit hash
0d8a92a36525ea141bd0c50a03162cc251c0223f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
194
      $active = intval($_data['active']);
Open commit View diff
194 $active = intval($_data['active']);
andryyy about 5 years ago 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
195
      $is_mx_based = intval($_data['is_mx_based']);
Open commit View diff
195 $is_mx_based = intval($_data['is_mx_based']);
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
196
      $nexthop = trim($_data['nexthop']);
Open commit View diff
196 $nexthop = trim($_data['nexthop']);
andryyy over 6 years ago 79ab962

[Web] Fix some transport verifications

Full commit hash
79ab962d507b5ae6a5304ba276151bbb90d7f12f
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
197
      if (filter_var($nexthop, FILTER_VALIDATE_IP)) {
Open commit View diff
197 if (filter_var($nexthop, FILTER_VALIDATE_IP)) {
same change 79ab962

[Web] Fix some transport verifications

Full commit hash
79ab962d507b5ae6a5304ba276151bbb90d7f12f
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
198
        $nexthop = '[' . $nexthop . ']';
Open commit View diff
198 $nexthop = '[' . $nexthop . ']';
same change 79ab962

[Web] Fix some transport verifications

Full commit hash
79ab962d507b5ae6a5304ba276151bbb90d7f12f
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
199
      }
Open commit View diff
199 }
andryyy over 7 years ago 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
200
      preg_match('/\[(.+)\].*/', $nexthop, $next_hop_matches);
Open commit View diff
200 preg_match('/\[(.+)\].*/', $nexthop, $next_hop_matches);
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
201
      $next_hop_clean = (isset($next_hop_matches[1])) ? $next_hop_matches[1] : $nexthop;
Open commit View diff
201 $next_hop_clean = (isset($next_hop_matches[1])) ? $next_hop_matches[1] : $nexthop;
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
202
      $username = str_replace(':', '\:', trim($_data['username']));
Open commit View diff
202 $username = str_replace(':', '\:', trim($_data['username']));
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
203
      $password = str_replace(':', '\:', trim($_data['password']));
Open commit View diff
203 $password = str_replace(':', '\:', trim($_data['password']));
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
204
      if (empty($nexthop)) {
Open commit View diff
204 if (empty($nexthop)) {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
205
        $_SESSION['return'][] = array(
Open commit View diff
205 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
206
          'type' => 'danger',
Open commit View diff
206 'type' => 'danger',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
207
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
207 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
208
          'msg' => array('invalid_nexthop')
Open commit View diff
208 'msg' => array('invalid_nexthop')
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
209
        );
Open commit View diff
209 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
210
        return false;
Open commit View diff
210 return false;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
211
      }
Open commit View diff
211 }
andryyy over 7 years ago 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
212
      $transports = transport('get');
Open commit View diff
212 $transports = transport('get');
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
213
      if (!empty($transports)) {
Open commit View diff
213 if (!empty($transports)) {
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
214
        foreach ($transports as $transport) {
Open commit View diff
214 foreach ($transports as $transport) {
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
215
          $transport_data = transport('details', $transport['id']);
Open commit View diff
215 $transport_data = transport('details', $transport['id']);
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
216
          $existing_nh[] = $transport_data['nexthop'];
Open commit View diff
216 $existing_nh[] = $transport_data['nexthop'];
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
217
          preg_match('/\[(.+)\].*/', $transport_data['nexthop'], $existing_clean_nh[]);
Open commit View diff
217 preg_match('/\[(.+)\].*/', $transport_data['nexthop'], $existing_clean_nh[]);
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
218
          if (($transport_data['nexthop'] == $nexthop || $transport_data['nexthop'] == $next_hop_clean) && $transport_data['username'] != $username) {
Open commit View diff
218 if (($transport_data['nexthop'] == $nexthop || $transport_data['nexthop'] == $next_hop_clean) && $transport_data['username'] != $username) {
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
219
            $_SESSION['return'][] = array(
Open commit View diff
219 $_SESSION['return'][] = array(
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
220
              'type' => 'danger',
Open commit View diff
220 'type' => 'danger',
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
221
              'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
221 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
222
              'msg' => 'invalid_nexthop_authenticated'
Open commit View diff
222 'msg' => 'invalid_nexthop_authenticated'
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
223
            );
Open commit View diff
223 );
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
224
            return false;
Open commit View diff
224 return false;
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
225
          }
Open commit View diff
225 }
andryyy almost 7 years ago ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
226
          foreach ($destinations as $d_ix => &$dest) {
Open commit View diff
226 foreach ($destinations as $d_ix => &$dest) {
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
227
            if (empty($dest)) {
Open commit View diff
227 if (empty($dest)) {
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
228
              unset($destinations[$d_ix]);
Open commit View diff
228 unset($destinations[$d_ix]);
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
229
              continue;
Open commit View diff
229 continue;
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

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

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
231
            if ($transport_data['destination'] == $dest) {
Open commit View diff
231 if ($transport_data['destination'] == $dest) {
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
232
              $_SESSION['return'][] = array(
Open commit View diff
232 $_SESSION['return'][] = array(
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
233
                'type' => 'danger',
Open commit View diff
233 'type' => 'danger',
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
234
                'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
234 'log' => array(__FUNCTION__, $_action, $_data_log),
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
235
                'msg' => array('transport_dest_exists', $dest)
Open commit View diff
235 'msg' => array('transport_dest_exists', $dest)
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

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

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
237
              unset($destinations[$d_ix]);
Open commit View diff
237 unset($destinations[$d_ix]);
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
238
              continue;
Open commit View diff
238 continue;
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

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

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
240
            // ".domain" is a valid destination, "..domain" is not
Open commit View diff
240 // ".domain" is a valid destination, "..domain" is not
andryyy about 5 years ago 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
241
            if ($is_mx_based == 0 && (empty($dest) || (is_valid_domain_name(preg_replace('/^' . preg_quote('.', '/') . '/', '', $dest)) === false && $dest != '*' && filter_var($dest, FILTER_VALIDATE_EMAIL) === false))) {
Open commit View diff
241 if ($is_mx_based == 0 && (empty($dest) || (is_valid_domain_name(preg_replace('/^' . preg_quote('.', '/') . '/', '', $dest)) === false && $dest != '*' && filter_var($dest, FILTER_VALIDATE_EMAIL) === false))) {
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
242
              $_SESSION['return'][] = array(
Open commit View diff
242 $_SESSION['return'][] = array(
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
243
                'type' => 'danger',
Open commit View diff
243 'type' => 'danger',
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
244
                'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
244 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
245
                'msg' => array('invalid_destination', $dest)
Open commit View diff
245 'msg' => array('invalid_destination', $dest)
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
246
              );
Open commit View diff
246 );
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
247
              unset($destinations[$d_ix]);
Open commit View diff
247 unset($destinations[$d_ix]);
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
248
              continue;
Open commit View diff
248 continue;
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
249
            }
Open commit View diff
249 }
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
250
            if ($is_mx_based == 1 && (empty($dest) || @preg_match('/' . $dest . '/', null) === false)) {
Open commit View diff
250 if ($is_mx_based == 1 && (empty($dest) || @preg_match('/' . $dest . '/', null) === false)) {
andryyy almost 7 years ago ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
251
              $_SESSION['return'][] = array(
Open commit View diff
251 $_SESSION['return'][] = array(
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
252
                'type' => 'danger',
Open commit View diff
252 'type' => 'danger',
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
253
                'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
253 'log' => array(__FUNCTION__, $_action, $_data_log),
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
254
                'msg' => array('invalid_destination', $dest)
Open commit View diff
254 'msg' => array('invalid_destination', $dest)
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

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

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
256
              unset($destinations[$d_ix]);
Open commit View diff
256 unset($destinations[$d_ix]);
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
257
              continue;
Open commit View diff
257 continue;
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
258
            }
Open commit View diff
258 }
andryyy about 7 years ago 3e3e526

[Dovecot] Update to 2.3.5.2

Full commit hash
3e3e526568d99d8899692ad7230e2593817bdea2
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
259
          }
Open commit View diff
259 }
andryyy over 7 years ago 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
260
        }
Open commit View diff
260 }
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
261
      }
Open commit View diff
261 }
andryyy almost 6 years ago 3a9efc8

[SOGo, Dovecot] Remove unnecessary likes from sql queries

Full commit hash
3a9efc86cf8c8942d51c0d54366d98825cd7670b
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
262
      $destinations = array_filter(array_values(array_unique($destinations)));
Open commit View diff
262 $destinations = array_filter(array_values(array_unique($destinations)));
andryyy almost 7 years ago ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
263
      if (empty($destinations)) { return false; }
Open commit View diff
263 if (empty($destinations)) { return false; }
andryyy over 7 years ago ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
264
      if (isset($next_hop_matches[1])) {
Open commit View diff
264 if (isset($next_hop_matches[1])) {
andryyy almost 5 years ago 913e9cb

[Web] Fix transport validation

Full commit hash
913e9cbb116c7872d7a509efc22713889928361e
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
265
        if ($existing_nh !== null && in_array($next_hop_clean, $existing_nh)) {
Open commit View diff
265 if ($existing_nh !== null && in_array($next_hop_clean, $existing_nh)) {
andryyy over 7 years ago ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
266
          $_SESSION['return'][] = array(
Open commit View diff
266 $_SESSION['return'][] = array(
same change ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
267
            'type' => 'danger',
Open commit View diff
267 'type' => 'danger',
same change ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
268
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
268 'log' => array(__FUNCTION__, $_action, $_data_log),
same change ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
269
            'msg' => array('next_hop_interferes', $next_hop_clean, $nexthop)
Open commit View diff
269 'msg' => array('next_hop_interferes', $next_hop_clean, $nexthop)
same change ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
270
          );
Open commit View diff
270 );
same change ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
271
          return false;
Open commit View diff
271 return false;
same change ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
272
        }
Open commit View diff
272 }
same change ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
273
      }
Open commit View diff
273 }
same change ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
274
      else {
Open commit View diff
274 else {
andryyy over 7 years ago 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
275
        foreach ($existing_clean_nh as $existing_clean_nh_each) {
Open commit View diff
275 foreach ($existing_clean_nh as $existing_clean_nh_each) {
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
276
          if ($existing_clean_nh_each[1] == $nexthop) {
Open commit View diff
276 if ($existing_clean_nh_each[1] == $nexthop) {
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
277
            $_SESSION['return'][] = array(
Open commit View diff
277 $_SESSION['return'][] = array(
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
278
              'type' => 'danger',
Open commit View diff
278 'type' => 'danger',
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
279
              'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
279 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
280
              'msg' => array('next_hop_interferes_any', $nexthop)
Open commit View diff
280 'msg' => array('next_hop_interferes_any', $nexthop)
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
281
            );
Open commit View diff
281 );
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
282
            return false;
Open commit View diff
282 return false;
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
283
          }
Open commit View diff
283 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
284
        }
Open commit View diff
284 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
285
      }
Open commit View diff
285 }
andryyy almost 7 years ago ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
286
      foreach ($destinations as $insert_dest) {
Open commit View diff
286 foreach ($destinations as $insert_dest) {
andryyy about 5 years ago 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
287
        $stmt = $pdo->prepare("INSERT INTO `transports` (`nexthop`, `destination`, `is_mx_based`, `username` , `password`,  `active`)
Open commit View diff
287 $stmt = $pdo->prepare("INSERT INTO `transports` (`nexthop`, `destination`, `is_mx_based`, `username` , `password`, `active`)
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
288
          VALUES (:nexthop, :destination, :is_mx_based, :username, :password, :active)");
Open commit View diff
288 VALUES (:nexthop, :destination, :is_mx_based, :username, :password, :active)");
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
289
        $stmt->execute(array(
Open commit View diff
289 $stmt->execute(array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
290
          ':nexthop' => $nexthop,
Open commit View diff
290 ':nexthop' => $nexthop,
andryyy almost 7 years ago ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
291
          ':destination' => $insert_dest,
Open commit View diff
291 ':destination' => $insert_dest,
andryyy about 5 years ago 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
292
          ':is_mx_based' => $is_mx_based,
Open commit View diff
292 ':is_mx_based' => $is_mx_based,
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
293
          ':username' => $username,
Open commit View diff
293 ':username' => $username,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
294
          ':password' => str_replace(':', '\:', $password),
Open commit View diff
294 ':password' => str_replace(':', '\:', $password),
andryyy almost 7 years ago 0d8a92a

[Web] Show ratelimit inheritance

Full commit hash
0d8a92a36525ea141bd0c50a03162cc251c0223f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
295
          ':active' => $active
Open commit View diff
295 ':active' => $active
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
296
        ));
Open commit View diff
296 ));
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
297
      }
Open commit View diff
297 }
andryyy almost 7 years ago ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
298
      $stmt = $pdo->prepare("UPDATE `transports` SET
Open commit View diff
298 $stmt = $pdo->prepare("UPDATE `transports` SET
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
299
        `username` = :username,
Open commit View diff
299 `username` = :username,
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
300
        `password` = :password
Open commit View diff
300 `password` = :password
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
301
          WHERE `nexthop` = :nexthop");
Open commit View diff
301 WHERE `nexthop` = :nexthop");
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
302
      $stmt->execute(array(
Open commit View diff
302 $stmt->execute(array(
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
303
        ':nexthop' => $nexthop,
Open commit View diff
303 ':nexthop' => $nexthop,
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
304
        ':username' => $username,
Open commit View diff
304 ':username' => $username,
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
305
        ':password' => $password
Open commit View diff
305 ':password' => $password
same change ab42540

[Web] Minor changes or fixes; [Web] Add multiple transport destinations at the same time - comma separated

Full commit hash
ab42540769f82423b4091fbf12248679bacc12f4
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
306
      ));
Open commit View diff
306 ));
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
307
      $_SESSION['return'][] = array(
Open commit View diff
307 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
308
        'type' => 'success',
Open commit View diff
308 'type' => 'success',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
309
        'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
309 '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
310
        'msg' => array('relayhost_added', htmlspecialchars(implode(', ', (array)$hosts)))
Open commit View diff
310 'msg' => array('relayhost_added', htmlspecialchars(implode(', ', (array)$hosts)))
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
311
      );
Open commit View diff
311 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
312
    break;
Open commit View diff
312 break;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
313
    case 'edit':
Open commit View diff
313 case 'edit':
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
314
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
314 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
315
        $_SESSION['return'][] = array(
Open commit View diff
315 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
316
          'type' => 'danger',
Open commit View diff
316 'type' => 'danger',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
317
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
317 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
318
          'msg' => 'access_denied'
Open commit View diff
318 'msg' => 'access_denied'
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
319
        );
Open commit View diff
319 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
320
        return false;
Open commit View diff
320 return false;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
321
      }
Open commit View diff
321 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
322
      $ids = (array)$_data['id'];
Open commit View diff
322 $ids = (array)$_data['id'];
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
323
      foreach ($ids as $id) {
Open commit View diff
323 foreach ($ids as $id) {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
324
        $is_now = transport('details', $id);
Open commit View diff
324 $is_now = transport('details', $id);
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
325
        if (!empty($is_now)) {
Open commit View diff
325 if (!empty($is_now)) {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
326
          $destination = (!empty($_data['destination'])) ? trim($_data['destination']) : $is_now['destination'];
Open commit View diff
326 $destination = (!empty($_data['destination'])) ? trim($_data['destination']) : $is_now['destination'];
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
327
          $nexthop = (!empty($_data['nexthop'])) ? trim($_data['nexthop']) : $is_now['nexthop'];
Open commit View diff
327 $nexthop = (!empty($_data['nexthop'])) ? trim($_data['nexthop']) : $is_now['nexthop'];
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
328
          $username = (isset($_data['username'])) ? trim($_data['username']) : $is_now['username'];
Open commit View diff
328 $username = (isset($_data['username'])) ? trim($_data['username']) : $is_now['username'];
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
329
          $password = (isset($_data['password'])) ? trim($_data['password']) : $is_now['password'];
Open commit View diff
329 $password = (isset($_data['password'])) ? trim($_data['password']) : $is_now['password'];
andryyy about 5 years ago 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
330
          $is_mx_based = (isset($_data['is_mx_based']) && $_data['is_mx_based'] != '') ? intval($_data['is_mx_based']) : $is_now['is_mx_based'];
Open commit View diff
330 $is_mx_based = (isset($_data['is_mx_based']) && $_data['is_mx_based'] != '') ? intval($_data['is_mx_based']) : $is_now['is_mx_based'];
andryyy almost 6 years ago d9b91fc

[Web] Important: Removed unnecessary *_int attributes from GET elements, _only_ returning int values now (same for all attributes which were provided as html char and int)

Full commit hash
d9b91fc04f286eaba4266ca60254a02dc5e91867
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
331
          $active   = (isset($_data['active']) && $_data['active'] != '') ? intval($_data['active']) : $is_now['active'];
Open commit View diff
331 $active = (isset($_data['active']) && $_data['active'] != '') ? intval($_data['active']) : $is_now['active'];
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
332
        }
Open commit View diff
332 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
333
        else {
Open commit View diff
333 else {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
334
          $_SESSION['return'][] = array(
Open commit View diff
334 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
335
            'type' => 'danger',
Open commit View diff
335 'type' => 'danger',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
336
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
336 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
337
            'msg' => array('relayhost_invalid', $id)
Open commit View diff
337 'msg' => array('relayhost_invalid', $id)
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
338
          );
Open commit View diff
338 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
339
          continue;
Open commit View diff
339 continue;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
340
        }
Open commit View diff
340 }
andryyy over 7 years ago 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
341
        preg_match('/\[(.+)\].*/', $nexthop, $next_hop_matches);
Open commit View diff
341 preg_match('/\[(.+)\].*/', $nexthop, $next_hop_matches);
andryyy over 6 years ago 79ab962

[Web] Fix some transport verifications

Full commit hash
79ab962d507b5ae6a5304ba276151bbb90d7f12f
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
342
        if (filter_var($nexthop, FILTER_VALIDATE_IP)) {
Open commit View diff
342 if (filter_var($nexthop, FILTER_VALIDATE_IP)) {
same change 79ab962

[Web] Fix some transport verifications

Full commit hash
79ab962d507b5ae6a5304ba276151bbb90d7f12f
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
343
          $nexthop = '[' . $nexthop . ']';
Open commit View diff
343 $nexthop = '[' . $nexthop . ']';
same change 79ab962

[Web] Fix some transport verifications

Full commit hash
79ab962d507b5ae6a5304ba276151bbb90d7f12f
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
344
        }
Open commit View diff
344 }
andryyy over 7 years ago 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
345
        $next_hop_clean = (isset($next_hop_matches[1])) ? $next_hop_matches[1] : $nexthop;
Open commit View diff
345 $next_hop_clean = (isset($next_hop_matches[1])) ? $next_hop_matches[1] : $nexthop;
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
346
        $transports = transport('get');
Open commit View diff
346 $transports = transport('get');
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
347
        if (!empty($transports)) {
Open commit View diff
347 if (!empty($transports)) {
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
348
          foreach ($transports as $transport) {
Open commit View diff
348 foreach ($transports as $transport) {
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
349
            $transport_data = transport('details', $transport['id']);
Open commit View diff
349 $transport_data = transport('details', $transport['id']);
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
350
            if ($transport['id'] == $id) {
Open commit View diff
350 if ($transport['id'] == $id) {
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
351
              continue;
Open commit View diff
351 continue;
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
352
            }
Open commit View diff
352 }
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
353
            $existing_nh[] = $transport_data['nexthop'];
Open commit View diff
353 $existing_nh[] = $transport_data['nexthop'];
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
354
            preg_match('/\[(.+)\].*/', $transport_data['nexthop'], $existing_clean_nh[]);
Open commit View diff
354 preg_match('/\[(.+)\].*/', $transport_data['nexthop'], $existing_clean_nh[]);
andryyy about 7 years ago 3e3e526

[Dovecot] Update to 2.3.5.2

Full commit hash
3e3e526568d99d8899692ad7230e2593817bdea2
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
355
            if ($transport_data['destination'] == $destination) {
Open commit View diff
355 if ($transport_data['destination'] == $destination) {
same change 3e3e526

[Dovecot] Update to 2.3.5.2

Full commit hash
3e3e526568d99d8899692ad7230e2593817bdea2
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
356
              $_SESSION['return'][] = array(
Open commit View diff
356 $_SESSION['return'][] = array(
same change 3e3e526

[Dovecot] Update to 2.3.5.2

Full commit hash
3e3e526568d99d8899692ad7230e2593817bdea2
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
357
                'type' => 'danger',
Open commit View diff
357 'type' => 'danger',
same change 3e3e526

[Dovecot] Update to 2.3.5.2

Full commit hash
3e3e526568d99d8899692ad7230e2593817bdea2
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
358
                'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
358 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 3e3e526

[Dovecot] Update to 2.3.5.2

Full commit hash
3e3e526568d99d8899692ad7230e2593817bdea2
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
359
                'msg' => 'transport_dest_exists'
Open commit View diff
359 'msg' => 'transport_dest_exists'
same change 3e3e526

[Dovecot] Update to 2.3.5.2

Full commit hash
3e3e526568d99d8899692ad7230e2593817bdea2
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
360
              );
Open commit View diff
360 );
same change 3e3e526

[Dovecot] Update to 2.3.5.2

Full commit hash
3e3e526568d99d8899692ad7230e2593817bdea2
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
361
              return false;
Open commit View diff
361 return false;
same change 3e3e526

[Dovecot] Update to 2.3.5.2

Full commit hash
3e3e526568d99d8899692ad7230e2593817bdea2
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
362
            }
Open commit View diff
362 }
andryyy over 7 years ago 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
363
          }
Open commit View diff
363 }
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
364
        }
Open commit View diff
364 }
andryyy about 5 years ago 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
365
        if ($is_mx_based == 0 && (empty($destination) || (is_valid_domain_name(preg_replace('/^' . preg_quote('.', '/') . '/', '', $destination)) === false && $destination != '*' && filter_var($destination, FILTER_VALIDATE_EMAIL) === false))) {
Open commit View diff
365 if ($is_mx_based == 0 && (empty($destination) || (is_valid_domain_name(preg_replace('/^' . preg_quote('.', '/') . '/', '', $destination)) === false && $destination != '*' && filter_var($destination, FILTER_VALIDATE_EMAIL) === false))) {
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
366
          $_SESSION['return'][] = array(
Open commit View diff
366 $_SESSION['return'][] = array(
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
367
            'type' => 'danger',
Open commit View diff
367 'type' => 'danger',
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
368
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
368 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
369
            'msg' => array('invalid_destination', $destination)
Open commit View diff
369 'msg' => array('invalid_destination', $destination)
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
370
          );
Open commit View diff
370 );
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
371
          return false;
Open commit View diff
371 return false;
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
372
        }
Open commit View diff
372 }
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
373
        if ($is_mx_based == 1 && (empty($destination) || @preg_match('/' . $destination . '/', null) === false)) {
Open commit View diff
373 if ($is_mx_based == 1 && (empty($destination) || @preg_match('/' . $destination . '/', null) === false)) {
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
374
          $_SESSION['return'][] = array(
Open commit View diff
374 $_SESSION['return'][] = array(
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
375
            'type' => 'danger',
Open commit View diff
375 'type' => 'danger',
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
376
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
376 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
377
            'msg' => array('invalid_destination', $destination)
Open commit View diff
377 'msg' => array('invalid_destination', $destination)
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
378
          );
Open commit View diff
378 );
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
379
          return false;
Open commit View diff
379 return false;
same change 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
380
        }
Open commit View diff
380 }
andryyy over 7 years ago ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
381
        if (isset($next_hop_matches[1])) {
Open commit View diff
381 if (isset($next_hop_matches[1])) {
andryyy almost 5 years ago 913e9cb

[Web] Fix transport validation

Full commit hash
913e9cbb116c7872d7a509efc22713889928361e
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
382
          if ($existing_nh !== null && in_array($next_hop_clean, $existing_nh)) {
Open commit View diff
382 if ($existing_nh !== null && in_array($next_hop_clean, $existing_nh)) {
andryyy over 7 years ago ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
383
            $_SESSION['return'][] = array(
Open commit View diff
383 $_SESSION['return'][] = array(
same change ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
384
              'type' => 'danger',
Open commit View diff
384 'type' => 'danger',
same change ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
385
              'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
385 'log' => array(__FUNCTION__, $_action, $_data_log),
same change ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
386
              'msg' => array('next_hop_interferes', $next_hop_clean, $nexthop)
Open commit View diff
386 'msg' => array('next_hop_interferes', $next_hop_clean, $nexthop)
same change ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
387
            );
Open commit View diff
387 );
same change ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
388
            return false;
Open commit View diff
388 return false;
same change ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
389
          }
Open commit View diff
389 }
same change ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
390
        }
Open commit View diff
390 }
same change ebaa441

[Web] Fix for the fix of transport map checks

Full commit hash
ebaa441f0e788a0ff2c3e914e72d96c8c90ed78a
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
391
        else {
Open commit View diff
391 else {
andryyy over 7 years ago 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
392
          foreach ($existing_clean_nh as $existing_clean_nh_each) {
Open commit View diff
392 foreach ($existing_clean_nh as $existing_clean_nh_each) {
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
393
            if ($existing_clean_nh_each[1] == $nexthop) {
Open commit View diff
393 if ($existing_clean_nh_each[1] == $nexthop) {
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
394
              $_SESSION['return'][] = array(
Open commit View diff
394 $_SESSION['return'][] = array(
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
395
                'type' => 'danger',
Open commit View diff
395 'type' => 'danger',
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
396
                'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
396 'log' => array(__FUNCTION__, $_action, $_data_log),
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
397
                'msg' => array('next_hop_interferes_any', $nexthop)
Open commit View diff
397 'msg' => array('next_hop_interferes_any', $nexthop)
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
398
              );
Open commit View diff
398 );
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
399
              return false;
Open commit View diff
399 return false;
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
400
            }
Open commit View diff
400 }
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
401
          }
Open commit View diff
401 }
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
402
        }
Open commit View diff
402 }
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
403
        if (empty($username)) {
Open commit View diff
403 if (empty($username)) {
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
404
          $password = '';
Open commit View diff
404 $password = '';
same change 6dc2a0e

[Web] More checks and fixes for transport maps

Full commit hash
6dc2a0ee1a3172c67bb346534f27b3fd8d1e6c3e
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
405
        }
Open commit View diff
405 }
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
406
        try {
Open commit View diff
406 try {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
407
          $stmt = $pdo->prepare("UPDATE `transports` SET
Open commit View diff
407 $stmt = $pdo->prepare("UPDATE `transports` SET
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
408
            `destination` = :destination,
Open commit View diff
408 `destination` = :destination,
andryyy about 5 years ago 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
409
            `is_mx_based` = :is_mx_based,
Open commit View diff
409 `is_mx_based` = :is_mx_based,
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
410
            `nexthop` = :nexthop,
Open commit View diff
410 `nexthop` = :nexthop,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
411
            `username` = :username,
Open commit View diff
411 `username` = :username,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
412
            `password` = :password,
Open commit View diff
412 `password` = :password,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
413
            `active` = :active
Open commit View diff
413 `active` = :active
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
414
              WHERE `id` = :id");
Open commit View diff
414 WHERE `id` = :id");
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
415
          $stmt->execute(array(
Open commit View diff
415 $stmt->execute(array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
416
            ':id' => $id,
Open commit View diff
416 ':id' => $id,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
417
            ':destination' => $destination,
Open commit View diff
417 ':destination' => $destination,
andryyy about 5 years ago 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
418
            ':is_mx_based' => $is_mx_based,
Open commit View diff
418 ':is_mx_based' => $is_mx_based,
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
419
            ':nexthop' => $nexthop,
Open commit View diff
419 ':nexthop' => $nexthop,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
420
            ':username' => $username,
Open commit View diff
420 ':username' => $username,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
421
            ':password' => $password,
Open commit View diff
421 ':password' => $password,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
422
            ':active' => $active
Open commit View diff
422 ':active' => $active
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
423
          ));
Open commit View diff
423 ));
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
424
          $stmt = $pdo->prepare("UPDATE `transports` SET
Open commit View diff
424 $stmt = $pdo->prepare("UPDATE `transports` SET
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
425
            `username` = :username,
Open commit View diff
425 `username` = :username,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
426
            `password` = :password
Open commit View diff
426 `password` = :password
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
427
              WHERE `nexthop` = :nexthop");
Open commit View diff
427 WHERE `nexthop` = :nexthop");
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
428
          $stmt->execute(array(
Open commit View diff
428 $stmt->execute(array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
429
            ':nexthop' => $nexthop,
Open commit View diff
429 ':nexthop' => $nexthop,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
430
            ':username' => $username,
Open commit View diff
430 ':username' => $username,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
431
            ':password' => $password
Open commit View diff
431 ':password' => $password
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
432
          ));
Open commit View diff
432 ));
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
433
        }
Open commit View diff
433 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
434
        catch (PDOException $e) {
Open commit View diff
434 catch (PDOException $e) {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
435
          $_SESSION['return'][] = array(
Open commit View diff
435 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
436
            'type' => 'danger',
Open commit View diff
436 'type' => 'danger',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
437
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
437 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
438
            'msg' => array('mysql_error', $e)
Open commit View diff
438 'msg' => array('mysql_error', $e)
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
439
          );
Open commit View diff
439 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
440
          continue;
Open commit View diff
440 continue;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
441
        }
Open commit View diff
441 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
442
        $_SESSION['return'][] = array(
Open commit View diff
442 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
443
          'type' => 'success',
Open commit View diff
443 'type' => 'success',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
444
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
444 '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
445
          'msg' => array('object_modified', htmlspecialchars(implode(', ', (array)$hostnames)))
Open commit View diff
445 'msg' => array('object_modified', htmlspecialchars(implode(', ', (array)$hostnames)))
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
446
        );
Open commit View diff
446 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
447
      }
Open commit View diff
447 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
448
    break;
Open commit View diff
448 break;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
449
    case 'delete':
Open commit View diff
449 case 'delete':
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
450
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
450 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
451
        $_SESSION['return'][] = array(
Open commit View diff
451 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
452
          'type' => 'danger',
Open commit View diff
452 'type' => 'danger',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
453
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
453 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
454
          'msg' => 'access_denied'
Open commit View diff
454 'msg' => 'access_denied'
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
455
        );
Open commit View diff
455 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
456
        return false;
Open commit View diff
456 return false;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
457
      }
Open commit View diff
457 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
458
      $ids = (array)$_data['id'];
Open commit View diff
458 $ids = (array)$_data['id'];
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
459
      foreach ($ids as $id) {
Open commit View diff
459 foreach ($ids as $id) {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
460
        try {
Open commit View diff
460 try {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
461
          $stmt = $pdo->prepare("DELETE FROM `transports` WHERE `id`= :id");
Open commit View diff
461 $stmt = $pdo->prepare("DELETE FROM `transports` WHERE `id`= :id");
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
462
          $stmt->execute(array(':id' => $id));
Open commit View diff
462 $stmt->execute(array(':id' => $id));
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
463
        }
Open commit View diff
463 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
464
        catch (PDOException $e) {
Open commit View diff
464 catch (PDOException $e) {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
465
          $_SESSION['return'][] = array(
Open commit View diff
465 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
466
            'type' => 'danger',
Open commit View diff
466 'type' => 'danger',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
467
            'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
467 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
468
            'msg' => array('mysql_error', $e)
Open commit View diff
468 'msg' => array('mysql_error', $e)
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
469
          );
Open commit View diff
469 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
470
          continue;
Open commit View diff
470 continue;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
471
        }
Open commit View diff
471 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
472
        $_SESSION['return'][] = array(
Open commit View diff
472 $_SESSION['return'][] = array(
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
473
          'type' => 'success',
Open commit View diff
473 'type' => 'success',
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
474
          'log' => array(__FUNCTION__, $_action, $_data_log),
Open commit View diff
474 'log' => array(__FUNCTION__, $_action, $_data_log),
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
475
          'msg' => array('relayhost_removed', htmlspecialchars($id))
Open commit View diff
475 'msg' => array('relayhost_removed', htmlspecialchars($id))
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
476
        );
Open commit View diff
476 );
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
477
      }
Open commit View diff
477 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
478
    break;
Open commit View diff
478 break;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
479
    case 'get':
Open commit View diff
479 case 'get':
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
480
      if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
480 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
481
        return false;
Open commit View diff
481 return false;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
482
      }
Open commit View diff
482 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
483
      $transports = array();
Open commit View diff
483 $transports = array();
andryyy about 5 years ago 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
484
      $stmt = $pdo->query("SELECT `id`, `is_mx_based`, `destination`, `nexthop`, `username` FROM `transports`");
Open commit View diff
484 $stmt = $pdo->query("SELECT `id`, `is_mx_based`, `destination`, `nexthop`, `username` FROM `transports`");
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
485
      $transports = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
485 $transports = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
486
      return $transports;
Open commit View diff
486 return $transports;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
487
    break;
Open commit View diff
487 break;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
488
    case 'details':
Open commit View diff
488 case 'details':
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
489
      if ($_SESSION['mailcow_cc_role'] != "admin" || !isset($_data)) {
Open commit View diff
489 if ($_SESSION['mailcow_cc_role'] != "admin" || !isset($_data)) {
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
490
        return false;
Open commit View diff
490 return false;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
491
      }
Open commit View diff
491 }
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
492
      $transportdata = array();
Open commit View diff
492 $transportdata = array();
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
493
      $stmt = $pdo->prepare("SELECT `id`,
Open commit View diff
493 $stmt = $pdo->prepare("SELECT `id`,
andryyy about 5 years ago 8a83587

[Postfix] Finally here: MX based transport map routing; Sorry it took years, Patrik

Full commit hash
8a8358780059abfb2c8ffe395392b220c3f39fdb
Author
andryyy <[email protected]>
Date
about 5 years ago
Selected line
494
        `is_mx_based`,
Open commit View diff
494 `is_mx_based`,
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
495
        `destination`,
Open commit View diff
495 `destination`,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
496
        `nexthop`,
Open commit View diff
496 `nexthop`,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
497
        `username`,
Open commit View diff
497 `username`,
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
498
        `password`,
Open commit View diff
498 `password`,
andryyy almost 6 years ago d9b91fc

[Web] Important: Removed unnecessary *_int attributes from GET elements, _only_ returning int values now (same for all attributes which were provided as html char and int)

Full commit hash
d9b91fc04f286eaba4266ca60254a02dc5e91867
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
499
        `active`,
Open commit View diff
499 `active`,
same change d9b91fc

[Web] Important: Removed unnecessary *_int attributes from GET elements, _only_ returning int values now (same for all attributes which were provided as html char and int)

Full commit hash
d9b91fc04f286eaba4266ca60254a02dc5e91867
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
500
        CONCAT(LEFT(`password`, 3), '...') AS `password_short`
Open commit View diff
500 CONCAT(LEFT(`password`, 3), '...') AS `password_short`
andryyy over 7 years ago b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
501
          FROM `transports`
Open commit View diff
501 FROM `transports`
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
502
            WHERE `id` = :id");
Open commit View diff
502 WHERE `id` = :id");
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
503
      $stmt->execute(array(':id' => $_data));
Open commit View diff
503 $stmt->execute(array(':id' => $_data));
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
504
      $transportdata = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
504 $transportdata = $stmt->fetch(PDO::FETCH_ASSOC);
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
505
      return $transportdata;
Open commit View diff
505 return $transportdata;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
506
    break;
Open commit View diff
506 break;
same change b99820d

[Web] Allow to set transport maps, rename relayhosts to sender-dependent transports

Full commit hash
b99820d0117e364dec337915dde7d697116ee532
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
507
  }
Open commit View diff
507 }
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
508
}
Open commit View diff
508 }