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.tls_policy_maps.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.tls_policy_maps.inc.php on main
Author Date Commit Line Code
André almost 8 years ago f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2
function tls_policy_maps($_action, $_data = null, $attr = null) {
Open commit View diff
2 function tls_policy_maps($_action, $_data = null, $attr = null) {
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3
	global $pdo;
Open commit View diff
3 global $pdo;
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
4
	global $lang;
Open commit View diff
4 global $lang;
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
5
  if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
5 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
6
    return false;
Open commit View diff
6 return false;
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
7
  }
Open commit View diff
7 }
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
8
  switch ($_action) {
Open commit View diff
8 switch ($_action) {
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
9
    case 'add':
Open commit View diff
9 case 'add':
andryyy over 7 years ago 1e76400

[Web] Use INTL_IDNA_VARIANT_UTS46 in idn_to_ascii (thanks to @Knight1 !)

Full commit hash
1e764009bf2c71f6a18f8ef4e303f7a63cb5a653
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
10
      $dest = idn_to_ascii(trim($_data['dest']), 0, INTL_IDNA_VARIANT_UTS46);
Open commit View diff
10 $dest = idn_to_ascii(trim($_data['dest']), 0, INTL_IDNA_VARIANT_UTS46);
André almost 8 years ago f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
11
      $policy = strtolower(trim($_data['policy']));
Open commit View diff
11 $policy = strtolower(trim($_data['policy']));
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
12
      $parameters = (isset($_data['parameters']) && !empty($_data['parameters'])) ? $_data['parameters'] : '';
Open commit View diff
12 $parameters = (isset($_data['parameters']) && !empty($_data['parameters'])) ? $_data['parameters'] : '';
andryyy over 6 years ago e91ddef

[Web] Check smtp_tls_policy_map destination (more checks should be added)

Full commit hash
e91ddef717add242ab926a4e4f25fa35a62b9831
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
13
      if (empty($dest) || in_array($dest, array('.', '*', '@'))) {
Open commit View diff
13 if (empty($dest) || in_array($dest, array('.', '*', '@'))) {
same change e91ddef

[Web] Check smtp_tls_policy_map destination (more checks should be added)

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

[Web] Check smtp_tls_policy_map destination (more checks should be added)

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

[Web] Check smtp_tls_policy_map destination (more checks should be added)

Full commit hash
e91ddef717add242ab926a4e4f25fa35a62b9831
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
16
          'log' => array(__FUNCTION__, $_action, $_data, $_attr),
Open commit View diff
16 'log' => array(__FUNCTION__, $_action, $_data, $_attr),
same change e91ddef

[Web] Check smtp_tls_policy_map destination (more checks should be added)

Full commit hash
e91ddef717add242ab926a4e4f25fa35a62b9831
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
17
          'msg' => 'tls_policy_map_dest_invalid'
Open commit View diff
17 'msg' => 'tls_policy_map_dest_invalid'
same change e91ddef

[Web] Check smtp_tls_policy_map destination (more checks should be added)

Full commit hash
e91ddef717add242ab926a4e4f25fa35a62b9831
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
18
        );
Open commit View diff
18 );
same change e91ddef

[Web] Check smtp_tls_policy_map destination (more checks should be added)

Full commit hash
e91ddef717add242ab926a4e4f25fa35a62b9831
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
19
        return false;
Open commit View diff
19 return false;
same change e91ddef

[Web] Check smtp_tls_policy_map destination (more checks should be added)

Full commit hash
e91ddef717add242ab926a4e4f25fa35a62b9831
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
20
      }
Open commit View diff
20 }
André almost 8 years ago f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
21
      if (!empty($parameters)) {
Open commit View diff
21 if (!empty($parameters)) {
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
22
        foreach (explode(' ', $parameters) as $parameter) {
Open commit View diff
22 foreach (explode(' ', $parameters) as $parameter) {
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
23
          if (!preg_match('/(.+)\=(.+)/i', $parameter)) {
Open commit View diff
23 if (!preg_match('/(.+)\=(.+)/i', $parameter)) {
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
24
            $_SESSION['return'][] = array(
Open commit View diff
24 $_SESSION['return'][] = array(
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
25
              'type' => 'danger',
Open commit View diff
25 'type' => 'danger',
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
26
              'log' => array(__FUNCTION__, $_action, $_data, $_attr),
Open commit View diff
26 'log' => array(__FUNCTION__, $_action, $_data, $_attr),
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
27
              'msg' => 'tls_policy_map_parameter_invalid'
Open commit View diff
27 'msg' => 'tls_policy_map_parameter_invalid'
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
28
            );
Open commit View diff
28 );
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
29
            return false;
Open commit View diff
29 return false;
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
30
          }
Open commit View diff
30 }
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
31
        }
Open commit View diff
31 }
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
32
      }
Open commit View diff
32 }
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
33
      $active = intval($_data['active']);
Open commit View diff
33 $active = intval($_data['active']);
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
34
      $tls_policy_maps = tls_policy_maps('get');
Open commit View diff
34 $tls_policy_maps = tls_policy_maps('get');
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
35
      foreach ($tls_policy_maps as $tls_policy_map) {
Open commit View diff
35 foreach ($tls_policy_maps as $tls_policy_map) {
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
36
        if (tls_policy_maps('details', $tls_policy_map)['dest'] == $dest) {
Open commit View diff
36 if (tls_policy_maps('details', $tls_policy_map)['dest'] == $dest) {
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
37
          $_SESSION['return'][] = array(
Open commit View diff
37 $_SESSION['return'][] = array(
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
38
            'type' => 'danger',
Open commit View diff
38 'type' => 'danger',
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
39
            'log' => array(__FUNCTION__, $_action, $_data, $_attr),
Open commit View diff
39 'log' => array(__FUNCTION__, $_action, $_data, $_attr),
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
40
            'msg' => array('tls_policy_map_entry_exists', htmlspecialchars($dest))
Open commit View diff
40 'msg' => array('tls_policy_map_entry_exists', htmlspecialchars($dest))
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
41
          );
Open commit View diff
41 );
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
42
          return false;
Open commit View diff
42 return false;
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
43
        }
Open commit View diff
43 }
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
44
      }
Open commit View diff
44 }
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
45
      $stmt = $pdo->prepare("INSERT INTO `tls_policy_override` (`dest`, `policy`, `parameters`, `active`) VALUES
Open commit View diff
45 $stmt = $pdo->prepare("INSERT INTO `tls_policy_override` (`dest`, `policy`, `parameters`, `active`) VALUES
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
46
        (:dest, :policy, :parameters, :active)");
Open commit View diff
46 (:dest, :policy, :parameters, :active)");
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
47
      $stmt->execute(array(
Open commit View diff
47 $stmt->execute(array(
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
48
        ':dest' => $dest,
Open commit View diff
48 ':dest' => $dest,
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
49
        ':policy' => $policy,
Open commit View diff
49 ':policy' => $policy,
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
50
        ':parameters' => $parameters,
Open commit View diff
50 ':parameters' => $parameters,
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
51
        ':active' => $active
Open commit View diff
51 ':active' => $active
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
52
      ));
Open commit View diff
52 ));
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
53
      $_SESSION['return'][] = array(
Open commit View diff
53 $_SESSION['return'][] = array(
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
54
        'type' => 'success',
Open commit View diff
54 'type' => 'success',
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
55
        'log' => array(__FUNCTION__, $_action, $_data, $_attr),
Open commit View diff
55 'log' => array(__FUNCTION__, $_action, $_data, $_attr),
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
56
        'msg' => array('tls_policy_map_entry_saved', htmlspecialchars($dest))
Open commit View diff
56 'msg' => array('tls_policy_map_entry_saved', htmlspecialchars($dest))
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
57
      );
Open commit View diff
57 );
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
58
    break;
Open commit View diff
58 break;
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
59
    case 'edit':
Open commit View diff
59 case 'edit':
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
60
      $ids = (array)$_data['id'];
Open commit View diff
60 $ids = (array)$_data['id'];
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
61
      foreach ($ids as $id) {
Open commit View diff
61 foreach ($ids as $id) {
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
62
        $is_now = tls_policy_maps('details', $id);
Open commit View diff
62 $is_now = tls_policy_maps('details', $id);
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
63
        if (!empty($is_now)) {
Open commit View diff
63 if (!empty($is_now)) {
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
64
          $active = (isset($_data['active'])) ? intval($_data['active']) : $is_now['active'];
Open commit View diff
64 $active = (isset($_data['active'])) ? intval($_data['active']) : $is_now['active'];
André almost 8 years ago f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
65
          $dest = (!empty($_data['dest'])) ? $_data['dest'] : $is_now['dest'];
Open commit View diff
65 $dest = (!empty($_data['dest'])) ? $_data['dest'] : $is_now['dest'];
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
66
          $policy = (!empty($_data['policy'])) ? $_data['policy'] : $is_now['policy'];
Open commit View diff
66 $policy = (!empty($_data['policy'])) ? $_data['policy'] : $is_now['policy'];
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
67
          $parameters = (isset($_data['parameters'])) ? $_data['parameters'] : $is_now['parameters'];
Open commit View diff
67 $parameters = (isset($_data['parameters'])) ? $_data['parameters'] : $is_now['parameters'];
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
68
        }
Open commit View diff
68 }
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
69
        else {
Open commit View diff
69 else {
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
70
          $_SESSION['return'][] = array(
Open commit View diff
70 $_SESSION['return'][] = array(
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
71
            'type' => 'danger',
Open commit View diff
71 'type' => 'danger',
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
72
            'log' => array(__FUNCTION__, $_action, $_data, $_attr),
Open commit View diff
72 'log' => array(__FUNCTION__, $_action, $_data, $_attr),
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
73
            'msg' => 'access_denied'
Open commit View diff
73 'msg' => 'access_denied'
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
74
          );
Open commit View diff
74 );
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
75
          continue;
Open commit View diff
75 continue;
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
76
        }
Open commit View diff
76 }
andryyy over 6 years ago e91ddef

[Web] Check smtp_tls_policy_map destination (more checks should be added)

Full commit hash
e91ddef717add242ab926a4e4f25fa35a62b9831
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
77
        if (empty($dest) || in_array($dest, array('.', '*', '@'))) {
Open commit View diff
77 if (empty($dest) || in_array($dest, array('.', '*', '@'))) {
same change e91ddef

[Web] Check smtp_tls_policy_map destination (more checks should be added)

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

[Web] Check smtp_tls_policy_map destination (more checks should be added)

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

[Web] Check smtp_tls_policy_map destination (more checks should be added)

Full commit hash
e91ddef717add242ab926a4e4f25fa35a62b9831
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
80
            'log' => array(__FUNCTION__, $_action, $_data, $_attr),
Open commit View diff
80 'log' => array(__FUNCTION__, $_action, $_data, $_attr),
same change e91ddef

[Web] Check smtp_tls_policy_map destination (more checks should be added)

Full commit hash
e91ddef717add242ab926a4e4f25fa35a62b9831
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
81
            'msg' => 'tls_policy_map_dest_invalid'
Open commit View diff
81 'msg' => 'tls_policy_map_dest_invalid'
same change e91ddef

[Web] Check smtp_tls_policy_map destination (more checks should be added)

Full commit hash
e91ddef717add242ab926a4e4f25fa35a62b9831
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
82
          );
Open commit View diff
82 );
same change e91ddef

[Web] Check smtp_tls_policy_map destination (more checks should be added)

Full commit hash
e91ddef717add242ab926a4e4f25fa35a62b9831
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
83
          return false;
Open commit View diff
83 return false;
same change e91ddef

[Web] Check smtp_tls_policy_map destination (more checks should be added)

Full commit hash
e91ddef717add242ab926a4e4f25fa35a62b9831
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
84
        }
Open commit View diff
84 }
André almost 8 years ago f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
85
        if (!empty($parameters)) {
Open commit View diff
85 if (!empty($parameters)) {
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
86
          foreach (explode(' ', $parameters) as $parameter) {
Open commit View diff
86 foreach (explode(' ', $parameters) as $parameter) {
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
87
            if (!preg_match('/(.+)\=(.+)/i', $parameter)) {
Open commit View diff
87 if (!preg_match('/(.+)\=(.+)/i', $parameter)) {
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
88
              $_SESSION['return'][] = array(
Open commit View diff
88 $_SESSION['return'][] = array(
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
89
                'type' => 'danger',
Open commit View diff
89 'type' => 'danger',
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
90
                'log' => array(__FUNCTION__, $_action, $_data, $_attr),
Open commit View diff
90 'log' => array(__FUNCTION__, $_action, $_data, $_attr),
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
91
                'msg' => 'tls_policy_map_parameter_invalid'
Open commit View diff
91 'msg' => 'tls_policy_map_parameter_invalid'
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
92
              );
Open commit View diff
92 );
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
93
              return false;
Open commit View diff
93 return false;
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
94
            }
Open commit View diff
94 }
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
95
          }
Open commit View diff
95 }
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
96
        }
Open commit View diff
96 }
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
97
        $tls_policy_maps = tls_policy_maps('get');
Open commit View diff
97 $tls_policy_maps = tls_policy_maps('get');
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
98
        foreach ($tls_policy_maps as $tls_policy_map) {
Open commit View diff
98 foreach ($tls_policy_maps as $tls_policy_map) {
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
99
          if ($tls_policy_map == $id) { continue; }
Open commit View diff
99 if ($tls_policy_map == $id) { continue; }
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
100
          if (tls_policy_maps('details', $tls_policy_map)['dest'] == $dest) {
Open commit View diff
100 if (tls_policy_maps('details', $tls_policy_map)['dest'] == $dest) {
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
101
            $_SESSION['return'][] = array(
Open commit View diff
101 $_SESSION['return'][] = array(
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
102
              'type' => 'danger',
Open commit View diff
102 'type' => 'danger',
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
103
              'log' => array(__FUNCTION__, $_action, $_data, $_attr),
Open commit View diff
103 'log' => array(__FUNCTION__, $_action, $_data, $_attr),
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
104
              'msg' => array('recipient_map_entry_exists', htmlspecialchars($dest))
Open commit View diff
104 'msg' => array('recipient_map_entry_exists', htmlspecialchars($dest))
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
105
            );
Open commit View diff
105 );
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
106
            return false;
Open commit View diff
106 return false;
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
107
          }
Open commit View diff
107 }
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
108
        }
Open commit View diff
108 }
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
109
        $stmt = $pdo->prepare("UPDATE `tls_policy_override` SET
Open commit View diff
109 $stmt = $pdo->prepare("UPDATE `tls_policy_override` SET
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
110
          `dest` = :dest,
Open commit View diff
110 `dest` = :dest,
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
111
          `policy` = :policy,
Open commit View diff
111 `policy` = :policy,
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
112
          `parameters` = :parameters,
Open commit View diff
112 `parameters` = :parameters,
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
113
          `active` = :active
Open commit View diff
113 `active` = :active
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
114
            WHERE `id`= :id");
Open commit View diff
114 WHERE `id`= :id");
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
115
        $stmt->execute(array(
Open commit View diff
115 $stmt->execute(array(
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
116
          ':dest' => $dest,
Open commit View diff
116 ':dest' => $dest,
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
117
          ':policy' => $policy,
Open commit View diff
117 ':policy' => $policy,
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
118
          ':parameters' => $parameters,
Open commit View diff
118 ':parameters' => $parameters,
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
119
          ':active' => $active,
Open commit View diff
119 ':active' => $active,
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
120
          ':id' => $id
Open commit View diff
120 ':id' => $id
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
121
        ));
Open commit View diff
121 ));
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
122
        $_SESSION['return'][] = array(
Open commit View diff
122 $_SESSION['return'][] = array(
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
123
          'type' => 'success',
Open commit View diff
123 'type' => 'success',
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
124
          'log' => array(__FUNCTION__, $_action, $_data, $_attr),
Open commit View diff
124 'log' => array(__FUNCTION__, $_action, $_data, $_attr),
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
125
          'msg' => array('tls_policy_map_entry_saved', htmlspecialchars($dest))
Open commit View diff
125 'msg' => array('tls_policy_map_entry_saved', htmlspecialchars($dest))
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
126
        );
Open commit View diff
126 );
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
127
      }
Open commit View diff
127 }
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
128
    break;
Open commit View diff
128 break;
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
129
    case 'details':
Open commit View diff
129 case 'details':
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
130
      $mapdata = array();
Open commit View diff
130 $mapdata = array();
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
131
      $id = intval($_data);
Open commit View diff
131 $id = intval($_data);
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
132
      $stmt = $pdo->prepare("SELECT `id`,
Open commit View diff
132 $stmt = $pdo->prepare("SELECT `id`,
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
133
        `dest`,
Open commit View diff
133 `dest`,
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
134
        `policy`,
Open commit View diff
134 `policy`,
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
135
        `parameters`,
Open commit View diff
135 `parameters`,
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
136
        `active` AS `active`,
Open commit View diff
136 `active` AS `active`,
André almost 8 years ago f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
137
        `created`,
Open commit View diff
137 `created`,
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
138
        `modified` FROM `tls_policy_override`
Open commit View diff
138 `modified` FROM `tls_policy_override`
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
139
          WHERE `id` = :id");
Open commit View diff
139 WHERE `id` = :id");
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
140
      $stmt->execute(array(':id' => $id));
Open commit View diff
140 $stmt->execute(array(':id' => $id));
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
141
      $mapdata = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
141 $mapdata = $stmt->fetch(PDO::FETCH_ASSOC);
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
142
      return $mapdata;
Open commit View diff
142 return $mapdata;
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
143
    break;
Open commit View diff
143 break;
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
144
    case 'get':
Open commit View diff
144 case 'get':
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
145
      $mapdata = array();
Open commit View diff
145 $mapdata = array();
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
146
      $all_items = array();
Open commit View diff
146 $all_items = array();
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
147
      $id = intval($_data);
Open commit View diff
147 $id = intval($_data);
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
148
      $stmt = $pdo->query("SELECT `id` FROM `tls_policy_override`");
Open commit View diff
148 $stmt = $pdo->query("SELECT `id` FROM `tls_policy_override`");
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
149
      $all_items = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
149 $all_items = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
150
      foreach ($all_items as $i) {
Open commit View diff
150 foreach ($all_items as $i) {
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
151
        $mapdata[] = $i['id'];
Open commit View diff
151 $mapdata[] = $i['id'];
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
152
      }
Open commit View diff
152 }
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
153
      $all_items = null;
Open commit View diff
153 $all_items = null;
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
154
      return $mapdata;
Open commit View diff
154 return $mapdata;
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
155
    break;
Open commit View diff
155 break;
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
156
    case 'delete':
Open commit View diff
156 case 'delete':
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
157
      $ids = (array)$_data['id'];
Open commit View diff
157 $ids = (array)$_data['id'];
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
158
      foreach ($ids as $id) {
Open commit View diff
158 foreach ($ids as $id) {
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
159
        if (!is_numeric($id)) {
Open commit View diff
159 if (!is_numeric($id)) {
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
160
          return false;
Open commit View diff
160 return false;
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
161
        }
Open commit View diff
161 }
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
162
        $stmt = $pdo->prepare("DELETE FROM `tls_policy_override` WHERE `id`= :id");
Open commit View diff
162 $stmt = $pdo->prepare("DELETE FROM `tls_policy_override` WHERE `id`= :id");
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
163
        $stmt->execute(array(':id' => $id));
Open commit View diff
163 $stmt->execute(array(':id' => $id));
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
164
        $_SESSION['return'][] = array(
Open commit View diff
164 $_SESSION['return'][] = array(
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
165
          'type' => 'success',
Open commit View diff
165 'type' => 'success',
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
166
          'log' => array(__FUNCTION__, $_action, $_data, $_attr),
Open commit View diff
166 'log' => array(__FUNCTION__, $_action, $_data, $_attr),
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
167
          'msg' => array('tls_policy_map_entry_deleted', htmlspecialchars($id))
Open commit View diff
167 'msg' => array('tls_policy_map_entry_deleted', htmlspecialchars($id))
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
168
        );
Open commit View diff
168 );
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
169
      }
Open commit View diff
169 }
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
170
    break;
Open commit View diff
170 break;
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
171
  }
Open commit View diff
171 }
same change f5799fa

[Web] Feature: TLS policy maps

Full commit hash
f5799faf6d283b8479484ac3b789117e68816360
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
172
}
Open commit View diff
172 }