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.oauth2.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.oauth2.inc.php on main
Author Date Commit Line Code
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
2
function oauth2($_action, $_type, $_data = null) {
Open commit View diff
2 function oauth2($_action, $_type, $_data = null) {
andryyy almost 5 years ago 2cd0b56

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

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

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

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

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

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

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

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
6
  if ($_SESSION['mailcow_cc_role'] != "admin") {
Open commit View diff
6 if ($_SESSION['mailcow_cc_role'] != "admin") {
same change 2cd0b56

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

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

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

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
8
      'type' => 'danger',
Open commit View diff
8 'type' => 'danger',
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
9
      'log' => array(__FUNCTION__, $_action, $_type, $_data),
Open commit View diff
9 'log' => array(__FUNCTION__, $_action, $_type, $_data),
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
10
      'msg' => 'access_denied'
Open commit View diff
10 'msg' => 'access_denied'
same change 2cd0b56

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

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

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

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
12
    return false;
Open commit View diff
12 return false;
same change 2cd0b56

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

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
14
  switch ($_action) {
Open commit View diff
14 switch ($_action) {
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
15
    case 'add':
Open commit View diff
15 case 'add':
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
16
      switch ($_type) {
Open commit View diff
16 switch ($_type) {
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
17
        case 'client':
Open commit View diff
17 case 'client':
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
18
          $client_id = bin2hex(random_bytes(6));
Open commit View diff
18 $client_id = bin2hex(random_bytes(6));
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
19
          $client_secret = bin2hex(random_bytes(12));
Open commit View diff
19 $client_secret = bin2hex(random_bytes(12));
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
20
          $redirect_uri = $_data['redirect_uri'];
Open commit View diff
20 $redirect_uri = $_data['redirect_uri'];
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
21
          $scope = 'profile';
Open commit View diff
21 $scope = 'profile';
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
22
          // For future use
Open commit View diff
22 // For future use
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
23
          // $grant_type = isset($_data['grant_type']) ? $_data['grant_type'] : 'authorization_code';
Open commit View diff
23 // $grant_type = isset($_data['grant_type']) ? $_data['grant_type'] : 'authorization_code';
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
24
          // $scope = isset($_data['scope']) ? $_data['scope'] : 'profile';
Open commit View diff
24 // $scope = isset($_data['scope']) ? $_data['scope'] : 'profile';
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
25
          // if ($grant_type != "authorization_code" && $grant_type != "password") {
Open commit View diff
25 // if ($grant_type != "authorization_code" && $grant_type != "password") {
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
26
            // $_SESSION['return'][] = array(
Open commit View diff
26 // $_SESSION['return'][] = array(
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
27
              // 'type' => 'danger',
Open commit View diff
27 // 'type' => 'danger',
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
28
              // 'log' => array(__FUNCTION__, $_action, $_type, $_data),
Open commit View diff
28 // 'log' => array(__FUNCTION__, $_action, $_type, $_data),
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
29
              // 'msg' => 'access_denied'
Open commit View diff
29 // 'msg' => 'access_denied'
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
30
            // );
Open commit View diff
30 // );
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
31
            // return false;
Open commit View diff
31 // return false;
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
32
          // }
Open commit View diff
32 // }
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
33
          if ($scope != "profile") {
Open commit View diff
33 if ($scope != "profile") {
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
34
            $_SESSION['return'][] = array(
Open commit View diff
34 $_SESSION['return'][] = array(
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
35
              'type' => 'danger',
Open commit View diff
35 'type' => 'danger',
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
36
              'log' => array(__FUNCTION__, $_action, $_type, $_data),
Open commit View diff
36 'log' => array(__FUNCTION__, $_action, $_type, $_data),
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
37
              'msg' => 'Invalid scope'
Open commit View diff
37 'msg' => 'Invalid scope'
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
39
            return false;
Open commit View diff
39 return false;
same change 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
41
          $stmt = $pdo->prepare("SELECT 'client' FROM `oauth_clients`
Open commit View diff
41 $stmt = $pdo->prepare("SELECT 'client' FROM `oauth_clients`
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
42
            WHERE `client_id` = :client_id");
Open commit View diff
42 WHERE `client_id` = :client_id");
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
43
          $stmt->execute(array(':client_id' => $client_id));
Open commit View diff
43 $stmt->execute(array(':client_id' => $client_id));
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
44
          $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
Open commit View diff
44 $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
45
          if ($num_results != 0) {
Open commit View diff
45 if ($num_results != 0) {
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
46
            $_SESSION['return'][] = array(
Open commit View diff
46 $_SESSION['return'][] = array(
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
47
              'type' => 'danger',
Open commit View diff
47 'type' => 'danger',
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
48
              'log' => array(__FUNCTION__, $_action, $_type, $_data),
Open commit View diff
48 'log' => array(__FUNCTION__, $_action, $_type, $_data),
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
49
              'msg' => 'Client ID exists'
Open commit View diff
49 'msg' => 'Client ID exists'
same change 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
51
            return false;
Open commit View diff
51 return false;
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
52
          }
Open commit View diff
52 }
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
53
          $stmt = $pdo->prepare("INSERT INTO `oauth_clients` (`client_id`, `client_secret`, `redirect_uri`, `scope`)
Open commit View diff
53 $stmt = $pdo->prepare("INSERT INTO `oauth_clients` (`client_id`, `client_secret`, `redirect_uri`, `scope`)
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
54
            VALUES (:client_id, :client_secret, :redirect_uri, :scope)");
Open commit View diff
54 VALUES (:client_id, :client_secret, :redirect_uri, :scope)");
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
56
            ':client_id' => $client_id,
Open commit View diff
56 ':client_id' => $client_id,
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
57
            ':client_secret' => $client_secret,
Open commit View diff
57 ':client_secret' => $client_secret,
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
58
            ':redirect_uri' => $redirect_uri,
Open commit View diff
58 ':redirect_uri' => $redirect_uri,
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
59
            ':scope' => $scope
Open commit View diff
59 ':scope' => $scope
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
60
          ));
Open commit View diff
60 ));
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
61
          $_SESSION['return'][] = array(
Open commit View diff
61 $_SESSION['return'][] = array(
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
62
            'type' => 'success',
Open commit View diff
62 'type' => 'success',
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
63
            'log' => array(__FUNCTION__, $_action, $_type, $_data),
Open commit View diff
63 'log' => array(__FUNCTION__, $_action, $_type, $_data),
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
64
            'msg' => 'Added client access'
Open commit View diff
64 'msg' => 'Added client access'
same change 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
66
        break;
Open commit View diff
66 break;
same change 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
68
    break;
Open commit View diff
68 break;
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
69
    case 'edit':
Open commit View diff
69 case 'edit':
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
70
      switch ($_type) {
Open commit View diff
70 switch ($_type) {
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
71
        case 'client':
Open commit View diff
71 case 'client':
same change 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
73
          foreach ($ids as $id) {
Open commit View diff
73 foreach ($ids as $id) {
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
74
            $is_now = oauth2('details', 'client', $id);
Open commit View diff
74 $is_now = oauth2('details', 'client', $id);
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
75
            if (!empty($is_now)) {
Open commit View diff
75 if (!empty($is_now)) {
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
76
              $redirect_uri = (!empty($_data['redirect_uri'])) ? $_data['redirect_uri'] : $is_now['redirect_uri'];
Open commit View diff
76 $redirect_uri = (!empty($_data['redirect_uri'])) ? $_data['redirect_uri'] : $is_now['redirect_uri'];
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
78
            else {
Open commit View diff
78 else {
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
79
              $_SESSION['return'][] = array(
Open commit View diff
79 $_SESSION['return'][] = array(
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
80
                'type' => 'danger',
Open commit View diff
80 'type' => 'danger',
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
81
                'log' => array(__FUNCTION__, $_action, $_type, $_data),
Open commit View diff
81 'log' => array(__FUNCTION__, $_action, $_type, $_data),
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
82
                'msg' => 'access_denied'
Open commit View diff
82 'msg' => 'access_denied'
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
84
              return false;
Open commit View diff
84 return false;
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
85
            }
Open commit View diff
85 }
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
86
            if (isset($_data['revoke_tokens'])) {
Open commit View diff
86 if (isset($_data['revoke_tokens'])) {
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
87
              $stmt = $pdo->prepare("DELETE FROM `oauth_access_tokens`
Open commit View diff
87 $stmt = $pdo->prepare("DELETE FROM `oauth_access_tokens`
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
88
                WHERE `client_id` IN (
Open commit View diff
88 WHERE `client_id` IN (
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
89
                  SELECT `client_id` FROM `oauth_clients` WHERE `id` = :id
Open commit View diff
89 SELECT `client_id` FROM `oauth_clients` WHERE `id` = :id
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
90
                )");
Open commit View diff
90 )");
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

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

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
92
                ':id' => $id
Open commit View diff
92 ':id' => $id
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
93
              ));
Open commit View diff
93 ));
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
94
              $stmt = $pdo->prepare("DELETE FROM `oauth_refresh_tokens`
Open commit View diff
94 $stmt = $pdo->prepare("DELETE FROM `oauth_refresh_tokens`
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
95
                WHERE `client_id` IN (
Open commit View diff
95 WHERE `client_id` IN (
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
96
                  SELECT `client_id` FROM `oauth_clients` WHERE `id` = :id
Open commit View diff
96 SELECT `client_id` FROM `oauth_clients` WHERE `id` = :id
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
97
                )");
Open commit View diff
97 )");
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

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

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
99
                ':id' => $id
Open commit View diff
99 ':id' => $id
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
100
              ));
Open commit View diff
100 ));
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

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

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
102
                'type' => 'success',
Open commit View diff
102 'type' => 'success',
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
103
                'log' => array(__FUNCTION__, $_action, $_type, $_data),
Open commit View diff
103 'log' => array(__FUNCTION__, $_action, $_type, $_data),
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
104
                'msg' => array('object_modified', htmlspecialchars($id))
Open commit View diff
104 'msg' => array('object_modified', htmlspecialchars($id))
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
105
              );
Open commit View diff
105 );
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
106
              continue;
Open commit View diff
106 continue;
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
107
            }
Open commit View diff
107 }
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
108
            if (isset($_data['renew_secret'])) {
Open commit View diff
108 if (isset($_data['renew_secret'])) {
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
109
              $client_secret = bin2hex(random_bytes(12));
Open commit View diff
109 $client_secret = bin2hex(random_bytes(12));
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
110
              $stmt = $pdo->prepare("UPDATE `oauth_clients` SET `client_secret` = :client_secret WHERE  `id` = :id");
Open commit View diff
110 $stmt = $pdo->prepare("UPDATE `oauth_clients` SET `client_secret` = :client_secret WHERE `id` = :id");
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

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

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
112
                ':client_secret' => $client_secret,
Open commit View diff
112 ':client_secret' => $client_secret,
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
113
                ':id' => $id
Open commit View diff
113 ':id' => $id
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
114
              ));
Open commit View diff
114 ));
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

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

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
116
                'type' => 'success',
Open commit View diff
116 'type' => 'success',
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
117
                'log' => array(__FUNCTION__, $_action, $_type, $_data),
Open commit View diff
117 'log' => array(__FUNCTION__, $_action, $_type, $_data),
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
118
                'msg' => array('object_modified', htmlspecialchars($id))
Open commit View diff
118 'msg' => array('object_modified', htmlspecialchars($id))
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
119
              );
Open commit View diff
119 );
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
120
              continue;
Open commit View diff
120 continue;
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
122
            if (empty($redirect_uri)) {
Open commit View diff
122 if (empty($redirect_uri)) {
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
123
              $_SESSION['return'][] = array(
Open commit View diff
123 $_SESSION['return'][] = array(
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
124
                'type' => 'danger',
Open commit View diff
124 'type' => 'danger',
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
125
                'log' => array(__FUNCTION__, $_action, $_type, $_data),
Open commit View diff
125 'log' => array(__FUNCTION__, $_action, $_type, $_data),
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
126
                'msg' => 'Redirect/Callback URL cannot be empty'
Open commit View diff
126 'msg' => 'Redirect/Callback URL cannot be empty'
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
127
              );
Open commit View diff
127 );
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
128
              continue;
Open commit View diff
128 continue;
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
131
              `redirect_uri` = :redirect_uri
Open commit View diff
131 `redirect_uri` = :redirect_uri
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
132
                WHERE `id` = :id");
Open commit View diff
132 WHERE `id` = :id");
same change 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
134
              ':id' => $id,
Open commit View diff
134 ':id' => $id,
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
135
              ':redirect_uri' => $redirect_uri
Open commit View diff
135 ':redirect_uri' => $redirect_uri
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
136
            ));
Open commit View diff
136 ));
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

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

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
138
              'type' => 'success',
Open commit View diff
138 'type' => 'success',
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
139
              'log' => array(__FUNCTION__, $_action, $_type, $_data),
Open commit View diff
139 'log' => array(__FUNCTION__, $_action, $_type, $_data),
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
140
              'msg' => array('object_modified', htmlspecialchars($id))
Open commit View diff
140 'msg' => array('object_modified', htmlspecialchars($id))
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
141
            );
Open commit View diff
141 );
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
143
        break;
Open commit View diff
143 break;
same change 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
145
    break;
Open commit View diff
145 break;
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
146
    case 'delete':
Open commit View diff
146 case 'delete':
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
147
      switch ($_type) {
Open commit View diff
147 switch ($_type) {
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
148
        case 'client':
Open commit View diff
148 case 'client':
same change 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
150
          foreach ($ids as $id) {
Open commit View diff
150 foreach ($ids as $id) {
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
151
            if (!is_numeric($id)) {
Open commit View diff
151 if (!is_numeric($id)) {
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
152
              $_SESSION['return'][] = array(
Open commit View diff
152 $_SESSION['return'][] = array(
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
153
                'type' => 'danger',
Open commit View diff
153 'type' => 'danger',
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
154
                'log' => array(__FUNCTION__, $_action, $_type, $_data),
Open commit View diff
154 'log' => array(__FUNCTION__, $_action, $_type, $_data),
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
155
                'msg' => 'access_denied'
Open commit View diff
155 'msg' => 'access_denied'
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
156
              );
Open commit View diff
156 );
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
157
              continue;
Open commit View diff
157 continue;
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
158
            }
Open commit View diff
158 }
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
159
            $stmt = $pdo->prepare("DELETE FROM `oauth_clients`
Open commit View diff
159 $stmt = $pdo->prepare("DELETE FROM `oauth_clients`
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
160
              WHERE `id` = :id");
Open commit View diff
160 WHERE `id` = :id");
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
162
              ':id' => $id
Open commit View diff
162 ':id' => $id
same change 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
164
          }
Open commit View diff
164 }
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
165
          $_SESSION['return'][] = array(
Open commit View diff
165 $_SESSION['return'][] = array(
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
166
            'type' => 'success',
Open commit View diff
166 'type' => 'success',
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
167
            'log' => array(__FUNCTION__, $_action, $_type, $_data),
Open commit View diff
167 'log' => array(__FUNCTION__, $_action, $_type, $_data),
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
168
            'msg' => array('items_deleted', htmlspecialchars($id))
Open commit View diff
168 'msg' => array('items_deleted', htmlspecialchars($id))
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
170
        break;
Open commit View diff
170 break;
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
171
        case 'access_token':
Open commit View diff
171 case 'access_token':
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
172
          (array)$access_tokens = $_data['access_token'];
Open commit View diff
172 (array)$access_tokens = $_data['access_token'];
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
173
          foreach ($access_tokens as $access_token) {
Open commit View diff
173 foreach ($access_tokens as $access_token) {
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
174
            if (!ctype_alnum($access_token)) {
Open commit View diff
174 if (!ctype_alnum($access_token)) {
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
175
              $_SESSION['return'][] = array(
Open commit View diff
175 $_SESSION['return'][] = array(
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
176
                'type' => 'danger',
Open commit View diff
176 'type' => 'danger',
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
177
                'log' => array(__FUNCTION__, $_action, $_type, $_data),
Open commit View diff
177 'log' => array(__FUNCTION__, $_action, $_type, $_data),
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
178
                'msg' => 'access_denied'
Open commit View diff
178 'msg' => 'access_denied'
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
180
              return false;
Open commit View diff
180 return false;
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
181
            }
Open commit View diff
181 }
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
182
            $stmt = $pdo->prepare("DELETE FROM `oauth_access_tokens`
Open commit View diff
182 $stmt = $pdo->prepare("DELETE FROM `oauth_access_tokens`
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
183
              WHERE `access_token` = :access_token");
Open commit View diff
183 WHERE `access_token` = :access_token");
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
185
              ':access_token' => $access_token
Open commit View diff
185 ':access_token' => $access_token
same change 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
187
          }
Open commit View diff
187 }
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
188
          $_SESSION['return'][] = array(
Open commit View diff
188 $_SESSION['return'][] = array(
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
189
            'type' => 'success',
Open commit View diff
189 'type' => 'success',
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
190
            'log' => array(__FUNCTION__, $_action, $_type, $_data),
Open commit View diff
190 'log' => array(__FUNCTION__, $_action, $_type, $_data),
andryyy almost 5 years ago 2cd0b56

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

Full commit hash
2cd0b56b143b8a2741488ae1735bf6d74253247f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
191
            'msg' => sprintf($lang['success']['items_deleted'], implode(', ', (array)$access_tokens))
Open commit View diff
191 'msg' => sprintf($lang['success']['items_deleted'], implode(', ', (array)$access_tokens))
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
193
        break;
Open commit View diff
193 break;
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
194
        case 'refresh_token':
Open commit View diff
194 case 'refresh_token':
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
195
          (array)$refresh_tokens = $_data['refresh_token'];
Open commit View diff
195 (array)$refresh_tokens = $_data['refresh_token'];
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
196
          foreach ($refresh_tokens as $refresh_token) {
Open commit View diff
196 foreach ($refresh_tokens as $refresh_token) {
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
197
            if (!ctype_alnum($refresh_token)) {
Open commit View diff
197 if (!ctype_alnum($refresh_token)) {
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
198
              $_SESSION['return'][] = array(
Open commit View diff
198 $_SESSION['return'][] = array(
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
199
                'type' => 'danger',
Open commit View diff
199 'type' => 'danger',
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
200
                'log' => array(__FUNCTION__, $_action, $_type, $_data),
Open commit View diff
200 'log' => array(__FUNCTION__, $_action, $_type, $_data),
same change 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
201
                'msg' => 'access_denied'
Open commit View diff
201 'msg' => 'access_denied'
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
203
              return false;
Open commit View diff
203 return false;
same change 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
205
            $stmt = $pdo->prepare("DELETE FROM `oauth_refresh_tokens` WHERE `refresh_token` = :refresh_token");
Open commit View diff
205 $stmt = $pdo->prepare("DELETE FROM `oauth_refresh_tokens` WHERE `refresh_token` = :refresh_token");
same change 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
207
              ':refresh_token' => $refresh_token
Open commit View diff
207 ':refresh_token' => $refresh_token
same change 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
209
          }
Open commit View diff
209 }
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
210
          $_SESSION['return'][] = array(
Open commit View diff
210 $_SESSION['return'][] = array(
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
211
            'type' => 'success',
Open commit View diff
211 'type' => 'success',
andryyy almost 7 years ago 1c35002

[Web] Do not allow to add domain admin for non existing domain

Full commit hash
1c35002505f4eeaa32329fbed42a123ede85cf4b
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
212
            'log' => array(__FUNCTION__, $_action, $_type, $_data),
Open commit View diff
212 'log' => array(__FUNCTION__, $_action, $_type, $_data),
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
213
            'msg' => sprintf($lang['success']['items_deleted'], implode(', ', (array)$refresh_tokens))
Open commit View diff
213 'msg' => sprintf($lang['success']['items_deleted'], implode(', ', (array)$refresh_tokens))
andryyy almost 7 years ago 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
215
        break;
Open commit View diff
215 break;
same change 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
217
    break;
Open commit View diff
217 break;
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
218
    case 'get':
Open commit View diff
218 case 'get':
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
219
      switch ($_type) {
Open commit View diff
219 switch ($_type) {
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
220
        case 'clients':
Open commit View diff
220 case 'clients':
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
221
          $stmt = $pdo->query("SELECT `id` FROM `oauth_clients`");
Open commit View diff
221 $stmt = $pdo->query("SELECT `id` FROM `oauth_clients`");
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
222
          $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
Open commit View diff
222 $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
223
          while ($row = array_shift($rows)) {
Open commit View diff
223 while ($row = array_shift($rows)) {
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
224
            $oauth_clients[] = $row['id'];
Open commit View diff
224 $oauth_clients[] = $row['id'];
same change 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
226
          return $oauth_clients;
Open commit View diff
226 return $oauth_clients;
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
227
        break;
Open commit View diff
227 break;
same change 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
230
    case 'details':
Open commit View diff
230 case 'details':
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
231
      switch ($_type) {
Open commit View diff
231 switch ($_type) {
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
232
        case 'client':
Open commit View diff
232 case 'client':
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
233
          $stmt = $pdo->prepare("SELECT * FROM `oauth_clients`
Open commit View diff
233 $stmt = $pdo->prepare("SELECT * FROM `oauth_clients`
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
234
            WHERE `id` = :id");
Open commit View diff
234 WHERE `id` = :id");
same change 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
236
          $oauth_client_details = $stmt->fetch(PDO::FETCH_ASSOC);
Open commit View diff
236 $oauth_client_details = $stmt->fetch(PDO::FETCH_ASSOC);
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
237
          return $oauth_client_details;
Open commit View diff
237 return $oauth_client_details;
same change 7a85abd

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

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

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
240
    break;
Open commit View diff
240 break;
same change 7a85abd

[Web] Prepare for oauth2

Full commit hash
7a85abdb42c4aa0d92876717c56a053a5d01c94c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
241
  }
Open commit View diff
241 }
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
242
}
Open commit View diff
242 }