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.pushover.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.pushover.inc.php on main
Author Date Commit Line Code
andryyy over 6 years ago 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
2
function pushover($_action, $_data = null) {
Open commit View diff
2 function pushover($_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;
andryyy over 6 years ago 8f4540d

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

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

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
5
    case 'edit':
Open commit View diff
5 case 'edit':
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
6
      if (!isset($_SESSION['acl']['pushover']) || $_SESSION['acl']['pushover'] != "1" ) {
Open commit View diff
6 if (!isset($_SESSION['acl']['pushover']) || $_SESSION['acl']['pushover'] != "1" ) {
same change 8f4540d

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

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

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

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

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

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

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
10
          'msg' => 'access_denied'
Open commit View diff
10 'msg' => 'access_denied'
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
11
        );
Open commit View diff
11 );
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
12
        return false;
Open commit View diff
12 return false;
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
13
      }
Open commit View diff
13 }
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
14
      if (!is_array($_data['username'])) {
Open commit View diff
14 if (!is_array($_data['username'])) {
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
15
        $usernames = array();
Open commit View diff
15 $usernames = array();
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
16
        $usernames[] = $_data['username'];
Open commit View diff
16 $usernames[] = $_data['username'];
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
17
      }
Open commit View diff
17 }
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
18
      else {
Open commit View diff
18 else {
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
19
        $usernames = $_data['username'];
Open commit View diff
19 $usernames = $_data['username'];
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
20
      }
Open commit View diff
20 }
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
21
      foreach ($usernames as $username) {
Open commit View diff
21 foreach ($usernames as $username) {
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
22
        if (!hasMailboxObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $username)) {
Open commit View diff
22 if (!hasMailboxObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $username)) {
same change 8f4540d

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

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

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

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

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

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

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
26
            'msg' => 'access_denied'
Open commit View diff
26 'msg' => 'access_denied'
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
27
          );
Open commit View diff
27 );
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
28
          continue;
Open commit View diff
28 continue;
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
29
        }
Open commit View diff
29 }
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
30
        $delete = $_data['delete'];
Open commit View diff
30 $delete = $_data['delete'];
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
31
        if ($delete == "true") {
Open commit View diff
31 if ($delete == "true") {
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
32
          $stmt = $pdo->prepare("DELETE FROM `pushover` WHERE `username` = :username");
Open commit View diff
32 $stmt = $pdo->prepare("DELETE FROM `pushover` WHERE `username` = :username");
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
33
          $stmt->execute(array(
Open commit View diff
33 $stmt->execute(array(
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
34
            ':username' => $username
Open commit View diff
34 ':username' => $username
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
35
          ));
Open commit View diff
35 ));
same change 8f4540d

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

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

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
37
            'type' => 'success',
Open commit View diff
37 'type' => 'success',
andryyy about 6 years ago 20e289c

[Web] Fix stupid mistake, thanks to @ntimo!

Full commit hash
20e289ce350d49777e63ee454517ba6987fd16e4
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
38
            'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
38 'log' => array(__FUNCTION__, $_action, $_data),
andryyy over 6 years ago 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
39
            'msg' => 'pushover_settings_edited'
Open commit View diff
39 'msg' => 'pushover_settings_edited'
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
40
          );
Open commit View diff
40 );
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
41
          continue;
Open commit View diff
41 continue;
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
42
        }
Open commit View diff
42 }
andryyy over 6 years ago 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
43
        $is_now = pushover('get', $username);
Open commit View diff
43 $is_now = pushover('get', $username);
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
44
        if (!empty($is_now)) {
Open commit View diff
44 if (!empty($is_now)) {
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
45
          $key = (!empty($_data['key'])) ? $_data['key'] : $is_now['key'];
Open commit View diff
45 $key = (!empty($_data['key'])) ? $_data['key'] : $is_now['key'];
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
46
          $token = (!empty($_data['token'])) ? $_data['token'] : $is_now['token'];
Open commit View diff
46 $token = (!empty($_data['token'])) ? $_data['token'] : $is_now['token'];
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
47
          $senders = (isset($_data['senders'])) ? $_data['senders'] : $is_now['senders'];
Open commit View diff
47 $senders = (isset($_data['senders'])) ? $_data['senders'] : $is_now['senders'];
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
48
          $senders_regex = (isset($_data['senders_regex'])) ? $_data['senders_regex'] : $is_now['senders_regex'];
Open commit View diff
48 $senders_regex = (isset($_data['senders_regex'])) ? $_data['senders_regex'] : $is_now['senders_regex'];
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
49
          $title = (!empty($_data['title'])) ? $_data['title'] : $is_now['title'];
Open commit View diff
49 $title = (!empty($_data['title'])) ? $_data['title'] : $is_now['title'];
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
50
          $text = (!empty($_data['text'])) ? $_data['text'] : $is_now['text'];
Open commit View diff
50 $text = (!empty($_data['text'])) ? $_data['text'] : $is_now['text'];
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
51
          $active = (isset($_data['active'])) ? intval($_data['active']) : $is_now['active'];
Open commit View diff
51 $active = (isset($_data['active'])) ? intval($_data['active']) : $is_now['active'];
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
52
          $evaluate_x_prio = (isset($_data['evaluate_x_prio'])) ? intval($_data['evaluate_x_prio']) : $is_now['evaluate_x_prio'];
Open commit View diff
52 $evaluate_x_prio = (isset($_data['evaluate_x_prio'])) ? intval($_data['evaluate_x_prio']) : $is_now['evaluate_x_prio'];
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
53
          $only_x_prio = (isset($_data['only_x_prio'])) ? intval($_data['only_x_prio']) : $is_now['only_x_prio'];
Open commit View diff
53 $only_x_prio = (isset($_data['only_x_prio'])) ? intval($_data['only_x_prio']) : $is_now['only_x_prio'];
bluewalk over 3 years ago 65c74c7

Added SENDER_ADDRESS and SENDER_NAME as variables for messages

Full commit hash
65c74c75c74c1a626b8d8c60921a6dcb689e8f4a
Author
bluewalk <[email protected]>
Date
over 3 years ago
Selected line
54
          $sound = (isset($_data['sound'])) ? $_data['sound'] : $is_now['sound'];
Open commit View diff
54 $sound = (isset($_data['sound'])) ? $_data['sound'] : $is_now['sound'];
andryyy over 6 years ago 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
55
        }
Open commit View diff
55 }
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
56
        else {
Open commit View diff
56 else {
same change 47a15c2

[Rspamd] Pushover, check sender by regex

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

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
58
            'type' => 'danger',
Open commit View diff
58 'type' => 'danger',
andryyy about 6 years ago 20e289c

[Web] Fix stupid mistake, thanks to @ntimo!

Full commit hash
20e289ce350d49777e63ee454517ba6987fd16e4
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
59
            'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
59 'log' => array(__FUNCTION__, $_action, $_data),
andryyy over 6 years ago 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
60
            'msg' => 'access_denied'
Open commit View diff
60 'msg' => 'access_denied'
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
61
          );
Open commit View diff
61 );
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
62
          continue;
Open commit View diff
62 continue;
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
63
        }
Open commit View diff
63 }
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
64
        if (!empty($senders_regex) && !is_valid_regex($senders_regex)) {
Open commit View diff
64 if (!empty($senders_regex) && !is_valid_regex($senders_regex)) {
same change 47a15c2

[Rspamd] Pushover, check sender by regex

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

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
66
            'type' => 'danger',
Open commit View diff
66 'type' => 'danger',
andryyy about 6 years ago 20e289c

[Web] Fix stupid mistake, thanks to @ntimo!

Full commit hash
20e289ce350d49777e63ee454517ba6987fd16e4
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
67
            'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
67 'log' => array(__FUNCTION__, $_action, $_data),
andryyy over 6 years ago 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
68
            'msg' => 'Invalid regex'
Open commit View diff
68 'msg' => 'Invalid regex'
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
69
          );
Open commit View diff
69 );
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
70
          continue;
Open commit View diff
70 continue;
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
71
        }
Open commit View diff
71 }
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
72
        $senders = array_map('trim', preg_split( "/( |,|;|\n)/", $senders));
Open commit View diff
72 $senders = array_map('trim', preg_split( "/( |,|;|\n)/", $senders));
andryyy over 6 years ago c67bb75

[Rspamd] More pushover options

Full commit hash
c67bb75071089c1e8f057721e5efdf085ec0c385
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
73
        foreach ($senders as $i => &$sender) {
Open commit View diff
73 foreach ($senders as $i => &$sender) {
same change c67bb75

[Rspamd] More pushover options

Full commit hash
c67bb75071089c1e8f057721e5efdf085ec0c385
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
74
          if (empty($sender)) {
Open commit View diff
74 if (empty($sender)) {
same change c67bb75

[Rspamd] More pushover options

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

[Rspamd] More pushover options

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

[Rspamd] More pushover options

Full commit hash
c67bb75071089c1e8f057721e5efdf085ec0c385
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
77
          if (!filter_var($sender, FILTER_VALIDATE_EMAIL) === true) {
Open commit View diff
77 if (!filter_var($sender, FILTER_VALIDATE_EMAIL) === true) {
same change c67bb75

[Rspamd] More pushover options

Full commit hash
c67bb75071089c1e8f057721e5efdf085ec0c385
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
78
            unset($senders[$i]);
Open commit View diff
78 unset($senders[$i]);
same change c67bb75

[Rspamd] More pushover options

Full commit hash
c67bb75071089c1e8f057721e5efdf085ec0c385
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
79
            continue;
Open commit View diff
79 continue;
same change c67bb75

[Rspamd] More pushover options

Full commit hash
c67bb75071089c1e8f057721e5efdf085ec0c385
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
80
          }
Open commit View diff
80 }
andryyy over 6 years ago 7fa10cc

[Rspamd] Moore Pushover fixes

Full commit hash
7fa10cc3b47c4ba69ce17cce0a7ca7196751730c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
81
          $senders[$i] = preg_replace('/\.(?=.*?@gmail\.com$)/', '$1', $sender);
Open commit View diff
81 $senders[$i] = preg_replace('/\.(?=.*?@gmail\.com$)/', '$1', $sender);
andryyy over 6 years ago c67bb75

[Rspamd] More pushover options

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

[Rspamd] More pushover options

Full commit hash
c67bb75071089c1e8f057721e5efdf085ec0c385
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
83
        $senders = array_filter($senders);
Open commit View diff
83 $senders = array_filter($senders);
same change c67bb75

[Rspamd] More pushover options

Full commit hash
c67bb75071089c1e8f057721e5efdf085ec0c385
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
84
        if (empty($senders)) { $senders = ''; }
Open commit View diff
84 if (empty($senders)) { $senders = ''; }
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
85
        $senders = implode(",", (array)$senders);
Open commit View diff
85 $senders = implode(",", (array)$senders);
andryyy over 6 years ago 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
86
        if (!ctype_alnum($key) || strlen($key) != 30) {
Open commit View diff
86 if (!ctype_alnum($key) || strlen($key) != 30) {
same change 8f4540d

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

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

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

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

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

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

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
90
            'msg' => 'pushover_key'
Open commit View diff
90 'msg' => 'pushover_key'
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
91
          );
Open commit View diff
91 );
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
92
          continue;
Open commit View diff
92 continue;
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
93
        }
Open commit View diff
93 }
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
94
        if (!ctype_alnum($token) || strlen($token) != 30) {
Open commit View diff
94 if (!ctype_alnum($token) || strlen($token) != 30) {
same change 8f4540d

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

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

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

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

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

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

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
98
            'msg' => 'pushover_token'
Open commit View diff
98 'msg' => 'pushover_token'
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
99
          );
Open commit View diff
99 );
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
100
          continue;
Open commit View diff
100 continue;
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
101
        }
Open commit View diff
101 }
andryyy over 6 years ago c67bb75

[Rspamd] More pushover options

Full commit hash
c67bb75071089c1e8f057721e5efdf085ec0c385
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
102
        $po_attributes = json_encode(
Open commit View diff
102 $po_attributes = json_encode(
same change c67bb75

[Rspamd] More pushover options

Full commit hash
c67bb75071089c1e8f057721e5efdf085ec0c385
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
103
          array(
Open commit View diff
103 array(
same change c67bb75

[Rspamd] More pushover options

Full commit hash
c67bb75071089c1e8f057721e5efdf085ec0c385
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
104
            'evaluate_x_prio' => strval(intval($evaluate_x_prio)),
Open commit View diff
104 'evaluate_x_prio' => strval(intval($evaluate_x_prio)),
bluewalk over 3 years ago 65c74c7

Added SENDER_ADDRESS and SENDER_NAME as variables for messages

Full commit hash
65c74c75c74c1a626b8d8c60921a6dcb689e8f4a
Author
bluewalk <[email protected]>
Date
over 3 years ago
Selected line
105
            'only_x_prio' => strval(intval($only_x_prio)),
Open commit View diff
105 'only_x_prio' => strval(intval($only_x_prio)),
same change 65c74c7

Added SENDER_ADDRESS and SENDER_NAME as variables for messages

Full commit hash
65c74c75c74c1a626b8d8c60921a6dcb689e8f4a
Author
bluewalk <[email protected]>
Date
over 3 years ago
Selected line
106
            'sound' => strval($sound)
Open commit View diff
106 'sound' => strval($sound)
andryyy over 6 years ago c67bb75

[Rspamd] More pushover options

Full commit hash
c67bb75071089c1e8f057721e5efdf085ec0c385
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
107
          )
Open commit View diff
107 )
same change c67bb75

[Rspamd] More pushover options

Full commit hash
c67bb75071089c1e8f057721e5efdf085ec0c385
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
108
        );
Open commit View diff
108 );
andryyy over 6 years ago 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
109
        $stmt = $pdo->prepare("REPLACE INTO `pushover` (`username`, `key`, `attributes`, `senders_regex`, `senders`, `token`, `title`, `text`, `active`)
Open commit View diff
109 $stmt = $pdo->prepare("REPLACE INTO `pushover` (`username`, `key`, `attributes`, `senders_regex`, `senders`, `token`, `title`, `text`, `active`)
same change 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
110
          VALUES (:username, :key, :po_attributes, :senders_regex, :senders, :token, :title, :text, :active)");
Open commit View diff
110 VALUES (:username, :key, :po_attributes, :senders_regex, :senders, :token, :title, :text, :active)");
andryyy over 6 years ago 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
111
        $stmt->execute(array(
Open commit View diff
111 $stmt->execute(array(
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
112
          ':username' => $username,
Open commit View diff
112 ':username' => $username,
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
113
          ':key' => $key,
Open commit View diff
113 ':key' => $key,
andryyy over 6 years ago c67bb75

[Rspamd] More pushover options

Full commit hash
c67bb75071089c1e8f057721e5efdf085ec0c385
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
114
          ':po_attributes' => $po_attributes,
Open commit View diff
114 ':po_attributes' => $po_attributes,
andryyy over 6 years ago 47a15c2

[Rspamd] Pushover, check sender by regex

Full commit hash
47a15c21aaa69715e88535fc72925714004dfa2c
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
115
          ':senders_regex' => $senders_regex,
Open commit View diff
115 ':senders_regex' => $senders_regex,
andryyy over 6 years ago c67bb75

[Rspamd] More pushover options

Full commit hash
c67bb75071089c1e8f057721e5efdf085ec0c385
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
116
          ':senders' => $senders,
Open commit View diff
116 ':senders' => $senders,
andryyy over 6 years ago 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
117
          ':token' => $token,
Open commit View diff
117 ':token' => $token,
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
118
          ':title' => $title,
Open commit View diff
118 ':title' => $title,
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
119
          ':text' => $text,
Open commit View diff
119 ':text' => $text,
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
120
          ':active' => $active
Open commit View diff
120 ':active' => $active
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
121
        ));
Open commit View diff
121 ));
same change 8f4540d

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

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

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
123
          'type' => 'success',
Open commit View diff
123 'type' => 'success',
andryyy about 6 years ago 20e289c

[Web] Fix stupid mistake, thanks to @ntimo!

Full commit hash
20e289ce350d49777e63ee454517ba6987fd16e4
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
124
          'log' => array(__FUNCTION__, $_action, $_data),
Open commit View diff
124 'log' => array(__FUNCTION__, $_action, $_data),
andryyy over 6 years ago 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
125
          'msg' => 'pushover_settings_edited'
Open commit View diff
125 'msg' => 'pushover_settings_edited'
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
126
        );
Open commit View diff
126 );
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
127
      }
Open commit View diff
127 }
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
128
    break;
Open commit View diff
128 break;
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
129
    case 'get':
Open commit View diff
129 case 'get':
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
130
      if (!hasMailboxObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $_data)) {
Open commit View diff
130 if (!hasMailboxObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $_data)) {
same change 8f4540d

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

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

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

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

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

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

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
134
          'msg' => 'access_denied'
Open commit View diff
134 'msg' => 'access_denied'
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
135
        );
Open commit View diff
135 );
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
136
        return false;
Open commit View diff
136 return false;
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
137
      }
Open commit View diff
137 }
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
138
      $stmt = $pdo->prepare("SELECT * FROM `pushover` WHERE `username` = :username");
Open commit View diff
138 $stmt = $pdo->prepare("SELECT * FROM `pushover` WHERE `username` = :username");
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
139
      $stmt->execute(array(
Open commit View diff
139 $stmt->execute(array(
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
140
        ':username' => $_data
Open commit View diff
140 ':username' => $_data
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
141
      ));
Open commit View diff
141 ));
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
142
      $data = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
142 $data = $stmt->fetch(PDO::FETCH_ASSOC);
andryyy over 6 years ago c67bb75

[Rspamd] More pushover options

Full commit hash
c67bb75071089c1e8f057721e5efdf085ec0c385
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
143
      $data['attributes'] = json_decode($data['attributes'], true);
Open commit View diff
143 $data['attributes'] = json_decode($data['attributes'], true);
andryyy over 6 years ago 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
144
      if (empty($data)) {
Open commit View diff
144 if (empty($data)) {
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
145
        return false;
Open commit View diff
145 return false;
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
146
      }
Open commit View diff
146 }
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
147
      else {
Open commit View diff
147 else {
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
148
        return $data;
Open commit View diff
148 return $data;
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
149
      }
Open commit View diff
149 }
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
150
    break;
Open commit View diff
150 break;
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
151
    case 'test':
Open commit View diff
151 case 'test':
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
152
      if (!isset($_SESSION['acl']['pushover']) || $_SESSION['acl']['pushover'] != "1" ) {
Open commit View diff
152 if (!isset($_SESSION['acl']['pushover']) || $_SESSION['acl']['pushover'] != "1" ) {
same change 8f4540d

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

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

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

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

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

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

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
156
          'msg' => 'access_denied'
Open commit View diff
156 'msg' => 'access_denied'
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
157
        );
Open commit View diff
157 );
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
158
        return false;
Open commit View diff
158 return false;
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
159
      }
Open commit View diff
159 }
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
160
      if (!is_array($_data['username'])) {
Open commit View diff
160 if (!is_array($_data['username'])) {
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
161
        $usernames = array();
Open commit View diff
161 $usernames = array();
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
162
        $usernames[] = $_data['username'];
Open commit View diff
162 $usernames[] = $_data['username'];
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
163
      }
Open commit View diff
163 }
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
164
      else {
Open commit View diff
164 else {
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
165
        $usernames = $_data['username'];
Open commit View diff
165 $usernames = $_data['username'];
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
166
      }
Open commit View diff
166 }
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
167
      foreach ($usernames as $username) {
Open commit View diff
167 foreach ($usernames as $username) {
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
168
        if (!hasMailboxObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $username)) {
Open commit View diff
168 if (!hasMailboxObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $username)) {
same change 8f4540d

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

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

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

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

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

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

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
172
            'msg' => 'access_denied'
Open commit View diff
172 'msg' => 'access_denied'
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
173
          );
Open commit View diff
173 );
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
174
          continue;
Open commit View diff
174 continue;
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
175
        }
Open commit View diff
175 }
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
176
        $stmt = $pdo->prepare("SELECT * FROM `pushover`
Open commit View diff
176 $stmt = $pdo->prepare("SELECT * FROM `pushover`
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
177
          WHERE `username` = :username");
Open commit View diff
177 WHERE `username` = :username");
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
178
        $stmt->execute(array(
Open commit View diff
178 $stmt->execute(array(
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
179
          ':username' => $username
Open commit View diff
179 ':username' => $username
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
180
        ));
Open commit View diff
180 ));
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
181
        $api_data = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
181 $api_data = $stmt->fetch(PDO::FETCH_ASSOC);
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
182
        if (!empty($api_data)) {
Open commit View diff
182 if (!empty($api_data)) {
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
183
          $title = (!empty($api_data['title'])) ? $api_data['title'] : 'Mail';
Open commit View diff
183 $title = (!empty($api_data['title'])) ? $api_data['title'] : 'Mail';
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
184
          $text = (!empty($api_data['text'])) ? $api_data['text'] : 'You\'ve got mail 📧';
Open commit View diff
184 $text = (!empty($api_data['text'])) ? $api_data['text'] : 'You\'ve got mail 📧';
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
185
          curl_setopt_array($ch = curl_init(), array(
Open commit View diff
185 curl_setopt_array($ch = curl_init(), array(
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
186
            CURLOPT_URL => "https://api.pushover.net/1/users/validate.json",
Open commit View diff
186 CURLOPT_URL => "https://api.pushover.net/1/users/validate.json",
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
187
            CURLOPT_POSTFIELDS => array(
Open commit View diff
187 CURLOPT_POSTFIELDS => array(
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
188
              "token" => $api_data['token'],
Open commit View diff
188 "token" => $api_data['token'],
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
189
              "user" => $api_data['key']
Open commit View diff
189 "user" => $api_data['key']
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
190
            ),
Open commit View diff
190 ),
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
191
            CURLOPT_SAFE_UPLOAD => true,
Open commit View diff
191 CURLOPT_SAFE_UPLOAD => true,
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
192
            CURLOPT_RETURNTRANSFER => true,
Open commit View diff
192 CURLOPT_RETURNTRANSFER => true,
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
193
          ));
Open commit View diff
193 ));
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
194
          $result = curl_exec($ch);
Open commit View diff
194 $result = curl_exec($ch);
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
195
          $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
Open commit View diff
195 $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
196
          curl_close($ch);
Open commit View diff
196 curl_close($ch);
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
197
          if ($httpcode == 200) {
Open commit View diff
197 if ($httpcode == 200) {
same change 8f4540d

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

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

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
199
              'type' => 'success',
Open commit View diff
199 'type' => 'success',
same change 8f4540d

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

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

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
201
              'msg' => sprintf('Pushover API OK (%d): %s', $httpcode, $result)
Open commit View diff
201 'msg' => sprintf('Pushover API OK (%d): %s', $httpcode, $result)
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
202
            );
Open commit View diff
202 );
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
203
          }
Open commit View diff
203 }
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
204
          else {
Open commit View diff
204 else {
same change 8f4540d

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

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

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

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

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

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

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
208
              'msg' => sprintf('Pushover API ERR (%d): %s', $httpcode, $result)
Open commit View diff
208 'msg' => sprintf('Pushover API ERR (%d): %s', $httpcode, $result)
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
209
            );
Open commit View diff
209 );
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
210
          }
Open commit View diff
210 }
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
211
        }
Open commit View diff
211 }
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
212
        else {
Open commit View diff
212 else {
same change 8f4540d

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

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

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

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

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

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

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
216
            'msg' => 'pushover_credentials_missing'
Open commit View diff
216 'msg' => 'pushover_credentials_missing'
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
217
          );
Open commit View diff
217 );
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
218
          return false;
Open commit View diff
218 return false;
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
219
        }
Open commit View diff
219 }
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
220
      }
Open commit View diff
220 }
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
221
    break;
Open commit View diff
221 break;
same change 8f4540d

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

Full commit hash
8f4540d5d9f1c85fbb1c9697ccb9653f8744779d
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
222
  }
Open commit View diff
222 }
andryyy over 6 years ago 7fa10cc

[Rspamd] Moore Pushover fixes

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