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

Restart SOGo from within panel

Full commit hash
f7b95ae5a0c25f1fc3c31f8eee224a338e8e2942
Author
andryyy <[email protected]>
Date
over 9 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
André almost 8 years ago 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2
function docker($action, $service_name = null, $attr1 = null, $attr2 = null, $extra_headers = null) {
Open commit View diff
2 function docker($action, $service_name = null, $attr1 = null, $attr2 = null, $extra_headers = null) {
André almost 8 years ago cedc38f

[Web] Add search fields to some select forms

Full commit hash
cedc38fbaa3adb84f3920552d985a834803cd056
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3
  global $DOCKER_TIMEOUT;
Open commit View diff
3 global $DOCKER_TIMEOUT;
FreddleSpl0it almost 4 years ago 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
4
  global $redis;
Open commit View diff
4 global $redis;
andryyy almost 9 years ago cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
5
  $curl = curl_init();
Open commit View diff
5 $curl = curl_init();
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
6
  curl_setopt($curl, CURLOPT_HTTPHEADER,array('Content-Type: application/json' ));
Open commit View diff
6 curl_setopt($curl, CURLOPT_HTTPHEADER,array('Content-Type: application/json' ));
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
7
  // We are using our mail certificates for dockerapi, the names will not match, the certs are trusted anyway
Open commit View diff
7 // We are using our mail certificates for dockerapi, the names will not match, the certs are trusted anyway
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
8
  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
Open commit View diff
8 curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
same change 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
9
  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
Open commit View diff
9 curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
andryyy almost 9 years ago cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
10
  switch($action) {
Open commit View diff
10 switch($action) {
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
11
    case 'get_id':
Open commit View diff
11 case 'get_id':
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
12
      curl_setopt($curl, CURLOPT_URL, 'https://dockerapi:443/containers/json');
Open commit View diff
12 curl_setopt($curl, CURLOPT_URL, 'https://dockerapi:443/containers/json');
andryyy almost 9 years ago cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
13
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
Open commit View diff
13 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
14
      curl_setopt($curl, CURLOPT_POST, 0);
Open commit View diff
14 curl_setopt($curl, CURLOPT_POST, 0);
André almost 8 years ago cedc38f

[Web] Add search fields to some select forms

Full commit hash
cedc38fbaa3adb84f3920552d985a834803cd056
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
15
      curl_setopt($curl, CURLOPT_TIMEOUT, $DOCKER_TIMEOUT);
Open commit View diff
15 curl_setopt($curl, CURLOPT_TIMEOUT, $DOCKER_TIMEOUT);
andryyy almost 9 years ago cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
16
      $response = curl_exec($curl);
Open commit View diff
16 $response = curl_exec($curl);
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
17
      if ($response === false) {
Open commit View diff
17 if ($response === false) {
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
18
        $err = curl_error($curl);
Open commit View diff
18 $err = curl_error($curl);
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
19
        curl_close($curl);
Open commit View diff
19 curl_close($curl);
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
20
        return $err;
Open commit View diff
20 return $err;
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
21
      }
Open commit View diff
21 }
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
22
      else {
Open commit View diff
22 else {
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
23
        curl_close($curl);
Open commit View diff
23 curl_close($curl);
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
24
        $containers = json_decode($response, true);
Open commit View diff
24 $containers = json_decode($response, true);
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
25
        if (!empty($containers)) {
Open commit View diff
25 if (!empty($containers)) {
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
26
          foreach ($containers as $container) {
Open commit View diff
26 foreach ($containers as $container) {
andryyy over 7 years ago 1e76400

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

Full commit hash
1e764009bf2c71f6a18f8ef4e303f7a63cb5a653
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
27
            if (isset($container['Config']['Labels']['com.docker.compose.service'])
Open commit View diff
27 if (isset($container['Config']['Labels']['com.docker.compose.service'])
same change 1e76400

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

Full commit hash
1e764009bf2c71f6a18f8ef4e303f7a63cb5a653
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
28
              && $container['Config']['Labels']['com.docker.compose.service'] == $service_name
Open commit View diff
28 && $container['Config']['Labels']['com.docker.compose.service'] == $service_name
andryyy about 6 years ago e1aadb0

[Web] More secure compose project name check

Full commit hash
e1aadb0268f66021c78ac8eb2a6c09901c3c2fe5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
29
              && strtolower($container['Config']['Labels']['com.docker.compose.project']) == strtolower(getenv('COMPOSE_PROJECT_NAME'))) {
Open commit View diff
29 && strtolower($container['Config']['Labels']['com.docker.compose.project']) == strtolower(getenv('COMPOSE_PROJECT_NAME'))) {
andryyy almost 9 years ago cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
30
              return trim($container['Id']);
Open commit View diff
30 return trim($container['Id']);
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
31
            }
Open commit View diff
31 }
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
32
          }
Open commit View diff
32 }
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
33
        }
Open commit View diff
33 }
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
34
      }
Open commit View diff
34 }
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
35
      return false;
Open commit View diff
35 return false;
FreddleSpl0it almost 4 years ago a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
36
    break;
Open commit View diff
36 break;
André almost 8 years ago 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
37
    case 'containers':
Open commit View diff
37 case 'containers':
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
38
      curl_setopt($curl, CURLOPT_URL, 'https://dockerapi:443/containers/json');
Open commit View diff
38 curl_setopt($curl, CURLOPT_URL, 'https://dockerapi:443/containers/json');
André about 8 years ago 4579124

[Web] Load all container states at once in debug.php

Full commit hash
4579124120ec1f111a2eb346118f0d84f3b7597e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
39
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
Open commit View diff
39 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
same change 4579124

[Web] Load all container states at once in debug.php

Full commit hash
4579124120ec1f111a2eb346118f0d84f3b7597e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
40
      curl_setopt($curl, CURLOPT_POST, 0);
Open commit View diff
40 curl_setopt($curl, CURLOPT_POST, 0);
André almost 8 years ago cedc38f

[Web] Add search fields to some select forms

Full commit hash
cedc38fbaa3adb84f3920552d985a834803cd056
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
41
      curl_setopt($curl, CURLOPT_TIMEOUT, $DOCKER_TIMEOUT);
Open commit View diff
41 curl_setopt($curl, CURLOPT_TIMEOUT, $DOCKER_TIMEOUT);
André about 8 years ago 4579124

[Web] Load all container states at once in debug.php

Full commit hash
4579124120ec1f111a2eb346118f0d84f3b7597e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
42
      $response = curl_exec($curl);
Open commit View diff
42 $response = curl_exec($curl);
same change 4579124

[Web] Load all container states at once in debug.php

Full commit hash
4579124120ec1f111a2eb346118f0d84f3b7597e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
43
      if ($response === false) {
Open commit View diff
43 if ($response === false) {
same change 4579124

[Web] Load all container states at once in debug.php

Full commit hash
4579124120ec1f111a2eb346118f0d84f3b7597e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
44
        $err = curl_error($curl);
Open commit View diff
44 $err = curl_error($curl);
same change 4579124

[Web] Load all container states at once in debug.php

Full commit hash
4579124120ec1f111a2eb346118f0d84f3b7597e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
45
        curl_close($curl);
Open commit View diff
45 curl_close($curl);
same change 4579124

[Web] Load all container states at once in debug.php

Full commit hash
4579124120ec1f111a2eb346118f0d84f3b7597e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
46
        return $err;
Open commit View diff
46 return $err;
same change 4579124

[Web] Load all container states at once in debug.php

Full commit hash
4579124120ec1f111a2eb346118f0d84f3b7597e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
47
      }
Open commit View diff
47 }
same change 4579124

[Web] Load all container states at once in debug.php

Full commit hash
4579124120ec1f111a2eb346118f0d84f3b7597e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
48
      else {
Open commit View diff
48 else {
same change 4579124

[Web] Load all container states at once in debug.php

Full commit hash
4579124120ec1f111a2eb346118f0d84f3b7597e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
49
        curl_close($curl);
Open commit View diff
49 curl_close($curl);
same change 4579124

[Web] Load all container states at once in debug.php

Full commit hash
4579124120ec1f111a2eb346118f0d84f3b7597e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
50
        $containers = json_decode($response, true);
Open commit View diff
50 $containers = json_decode($response, true);
same change 4579124

[Web] Load all container states at once in debug.php

Full commit hash
4579124120ec1f111a2eb346118f0d84f3b7597e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
51
        if (!empty($containers)) {
Open commit View diff
51 if (!empty($containers)) {
same change 4579124

[Web] Load all container states at once in debug.php

Full commit hash
4579124120ec1f111a2eb346118f0d84f3b7597e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
52
          foreach ($containers as $container) {
Open commit View diff
52 foreach ($containers as $container) {
andryyy about 6 years ago e1aadb0

[Web] More secure compose project name check

Full commit hash
e1aadb0268f66021c78ac8eb2a6c09901c3c2fe5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
53
            if (strtolower($container['Config']['Labels']['com.docker.compose.project']) == strtolower(getenv('COMPOSE_PROJECT_NAME'))) {
Open commit View diff
53 if (strtolower($container['Config']['Labels']['com.docker.compose.project']) == strtolower(getenv('COMPOSE_PROJECT_NAME'))) {
André almost 8 years ago 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
54
              $out[$container['Config']['Labels']['com.docker.compose.service']]['State'] = $container['State'];
Open commit View diff
54 $out[$container['Config']['Labels']['com.docker.compose.service']]['State'] = $container['State'];
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
55
              $out[$container['Config']['Labels']['com.docker.compose.service']]['Config'] = $container['Config'];
Open commit View diff
55 $out[$container['Config']['Labels']['com.docker.compose.service']]['Config'] = $container['Config'];
FreddleSpl0it almost 4 years ago 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
56
              $out[$container['Config']['Labels']['com.docker.compose.service']]['Id'] = trim($container['Id']);
Open commit View diff
56 $out[$container['Config']['Labels']['com.docker.compose.service']]['Id'] = trim($container['Id']);
André almost 8 years ago 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
57
            }
Open commit View diff
57 }
André about 8 years ago 4579124

[Web] Load all container states at once in debug.php

Full commit hash
4579124120ec1f111a2eb346118f0d84f3b7597e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
58
          }
Open commit View diff
58 }
same change 4579124

[Web] Load all container states at once in debug.php

Full commit hash
4579124120ec1f111a2eb346118f0d84f3b7597e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
59
        }
Open commit View diff
59 }
same change 4579124

[Web] Load all container states at once in debug.php

Full commit hash
4579124120ec1f111a2eb346118f0d84f3b7597e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
60
        return (!empty($out)) ? $out : false;
Open commit View diff
60 return (!empty($out)) ? $out : false;
same change 4579124

[Web] Load all container states at once in debug.php

Full commit hash
4579124120ec1f111a2eb346118f0d84f3b7597e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
61
      }
Open commit View diff
61 }
same change 4579124

[Web] Load all container states at once in debug.php

Full commit hash
4579124120ec1f111a2eb346118f0d84f3b7597e
Author
André <[email protected]>
Date
about 8 years ago
Selected line
62
      return false;
Open commit View diff
62 return false;
andryyy almost 9 years ago cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
63
    break;
Open commit View diff
63 break;
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
64
    case 'info':
Open commit View diff
64 case 'info':
André almost 8 years ago 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
65
      if (empty($service_name)) {
Open commit View diff
65 if (empty($service_name)) {
Jérémie Crinon 5 months ago 99dc0f6

fix: show stopped and failed containers in dashboard and API

Full commit hash
99dc0f6616dec4ff629898721d2db663e6bf66fa
Author
Jérémie Crinon <[email protected]>
Date
5 months ago
Selected line
66
        curl_setopt($curl, CURLOPT_URL, 'https://dockerapi:443/containers/json?all=true');
Open commit View diff
66 curl_setopt($curl, CURLOPT_URL, 'https://dockerapi:443/containers/json?all=true');
andryyy almost 9 years ago cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
67
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
Open commit View diff
67 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
andryyy almost 9 years ago fc18d15

[Compose, DockerAPI, Web, Watchdog] Watchdog may send notification mails (todo: docs), DockerAPI via Flesk for limited access

Full commit hash
fc18d153cdc5d93f254b43a572d190d360ca7a01
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
68
        curl_setopt($curl, CURLOPT_POST, 0);
Open commit View diff
68 curl_setopt($curl, CURLOPT_POST, 0);
André almost 8 years ago cedc38f

[Web] Add search fields to some select forms

Full commit hash
cedc38fbaa3adb84f3920552d985a834803cd056
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
69
        curl_setopt($curl, CURLOPT_TIMEOUT, $DOCKER_TIMEOUT);
Open commit View diff
69 curl_setopt($curl, CURLOPT_TIMEOUT, $DOCKER_TIMEOUT);
André almost 8 years ago 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
70
      }
Open commit View diff
70 }
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
71
      else {
Open commit View diff
71 else {
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
72
        $container_id = docker('get_id', $service_name);
Open commit View diff
72 $container_id = docker('get_id', $service_name);
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
73
        if (ctype_xdigit($container_id)) {
Open commit View diff
73 if (ctype_xdigit($container_id)) {
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
74
          curl_setopt($curl, CURLOPT_URL, 'https://dockerapi:443/containers/' . $container_id . '/json');
Open commit View diff
74 curl_setopt($curl, CURLOPT_URL, 'https://dockerapi:443/containers/' . $container_id . '/json');
andryyy almost 9 years ago cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
75
        }
Open commit View diff
75 }
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
76
        else {
Open commit View diff
76 else {
André almost 8 years ago 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
77
          return false;
Open commit View diff
77 return false;
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
78
        }
Open commit View diff
78 }
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
79
      }
Open commit View diff
79 }
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
80
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
Open commit View diff
80 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
81
      curl_setopt($curl, CURLOPT_POST, 0);
Open commit View diff
81 curl_setopt($curl, CURLOPT_POST, 0);
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
82
      curl_setopt($curl, CURLOPT_TIMEOUT, $DOCKER_TIMEOUT);
Open commit View diff
82 curl_setopt($curl, CURLOPT_TIMEOUT, $DOCKER_TIMEOUT);
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
83
      $response = curl_exec($curl);
Open commit View diff
83 $response = curl_exec($curl);
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
84
      if ($response === false) {
Open commit View diff
84 if ($response === false) {
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
85
        $err = curl_error($curl);
Open commit View diff
85 $err = curl_error($curl);
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
86
        curl_close($curl);
Open commit View diff
86 curl_close($curl);
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
87
        return $err;
Open commit View diff
87 return $err;
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
88
      }
Open commit View diff
88 }
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
89
      else {
Open commit View diff
89 else {
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
90
        curl_close($curl);
Open commit View diff
90 curl_close($curl);
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
91
        $decoded_response = json_decode($response, true);
Open commit View diff
91 $decoded_response = json_decode($response, true);
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
92
        if (!empty($decoded_response)) {
Open commit View diff
92 if (!empty($decoded_response)) {
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
93
          if (empty($service_name)) {
Open commit View diff
93 if (empty($service_name)) {
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
94
            foreach ($decoded_response as $container) {
Open commit View diff
94 foreach ($decoded_response as $container) {
andryyy over 7 years ago 1e76400

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

Full commit hash
1e764009bf2c71f6a18f8ef4e303f7a63cb5a653
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
95
              if (isset($container['Config']['Labels']['com.docker.compose.project'])
Open commit View diff
95 if (isset($container['Config']['Labels']['com.docker.compose.project'])
andryyy about 6 years ago e1aadb0

[Web] More secure compose project name check

Full commit hash
e1aadb0268f66021c78ac8eb2a6c09901c3c2fe5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
96
                && strtolower($container['Config']['Labels']['com.docker.compose.project']) == strtolower(getenv('COMPOSE_PROJECT_NAME'))) {
Open commit View diff
96 && strtolower($container['Config']['Labels']['com.docker.compose.project']) == strtolower(getenv('COMPOSE_PROJECT_NAME'))) {
André almost 8 years ago 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
97
                unset($container['Config']['Env']);
Open commit View diff
97 unset($container['Config']['Env']);
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
98
                $out[$container['Config']['Labels']['com.docker.compose.service']]['State'] = $container['State'];
Open commit View diff
98 $out[$container['Config']['Labels']['com.docker.compose.service']]['State'] = $container['State'];
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
99
                $out[$container['Config']['Labels']['com.docker.compose.service']]['Config'] = $container['Config'];
Open commit View diff
99 $out[$container['Config']['Labels']['com.docker.compose.service']]['Config'] = $container['Config'];
FreddleSpl0it almost 4 years ago 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
100
                $out[$container['Config']['Labels']['com.docker.compose.service']]['Id'] = trim($container['Id']);
Open commit View diff
100 $out[$container['Config']['Labels']['com.docker.compose.service']]['Id'] = trim($container['Id']);
André almost 8 years ago 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
101
              }
Open commit View diff
101 }
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
102
            }
Open commit View diff
102 }
andryyy almost 9 years ago cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
103
          }
Open commit View diff
103 }
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
104
          else {
Open commit View diff
104 else {
andryyy over 7 years ago 1e76400

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

Full commit hash
1e764009bf2c71f6a18f8ef4e303f7a63cb5a653
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
105
            if (isset($decoded_response['Config']['Labels']['com.docker.compose.project']) 
Open commit View diff
105 if (isset($decoded_response['Config']['Labels']['com.docker.compose.project'])
andryyy about 6 years ago e1aadb0

[Web] More secure compose project name check

Full commit hash
e1aadb0268f66021c78ac8eb2a6c09901c3c2fe5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
106
              && strtolower($decoded_response['Config']['Labels']['com.docker.compose.project']) == strtolower(getenv('COMPOSE_PROJECT_NAME'))) {
Open commit View diff
106 && strtolower($decoded_response['Config']['Labels']['com.docker.compose.project']) == strtolower(getenv('COMPOSE_PROJECT_NAME'))) {
André almost 8 years ago 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
107
              unset($container['Config']['Env']);
Open commit View diff
107 unset($container['Config']['Env']);
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
108
              $out[$decoded_response['Config']['Labels']['com.docker.compose.service']]['State'] = $decoded_response['State'];
Open commit View diff
108 $out[$decoded_response['Config']['Labels']['com.docker.compose.service']]['State'] = $decoded_response['State'];
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
109
              $out[$decoded_response['Config']['Labels']['com.docker.compose.service']]['Config'] = $decoded_response['Config'];
Open commit View diff
109 $out[$decoded_response['Config']['Labels']['com.docker.compose.service']]['Config'] = $decoded_response['Config'];
FreddleSpl0it almost 4 years ago 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
110
              $out[$decoded_response['Config']['Labels']['com.docker.compose.service']]['Id'] = trim($decoded_response['Id']);
Open commit View diff
110 $out[$decoded_response['Config']['Labels']['com.docker.compose.service']]['Id'] = trim($decoded_response['Id']);
André almost 8 years ago 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
111
            }
Open commit View diff
111 }
andryyy almost 9 years ago cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
112
          }
Open commit View diff
112 }
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
113
        }
Open commit View diff
113 }
André almost 8 years ago 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
114
        if (empty($response)) {
Open commit View diff
114 if (empty($response)) {
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
115
          return true;
Open commit View diff
115 return true;
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
116
        }
Open commit View diff
116 }
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
117
        else {
Open commit View diff
117 else {
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
118
          return (!empty($out)) ? $out : false;
Open commit View diff
118 return (!empty($out)) ? $out : false;
same change 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
119
        }
Open commit View diff
119 }
andryyy almost 9 years ago cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
120
      }
Open commit View diff
120 }
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
121
    break;
Open commit View diff
121 break;
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
122
    case 'post':
Open commit View diff
122 case 'post':
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
123
      if (!empty($attr1)) {
Open commit View diff
123 if (!empty($attr1)) {
André almost 8 years ago 8934a3a

[Web] Allow spam/ham "traps"

Full commit hash
8934a3a68b4f9d8bf2ecff8e25a3324fbb54944c
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
124
        $container_id = docker('get_id', $service_name);
Open commit View diff
124 $container_id = docker('get_id', $service_name);
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
125
        if (ctype_xdigit($container_id) && ctype_alnum($attr1)) {
Open commit View diff
125 if (ctype_xdigit($container_id) && ctype_alnum($attr1)) {
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
126
          curl_setopt($curl, CURLOPT_URL, 'https://dockerapi:443/containers/' . $container_id . '/' . $attr1);
Open commit View diff
126 curl_setopt($curl, CURLOPT_URL, 'https://dockerapi:443/containers/' . $container_id . '/' . $attr1);
andryyy almost 9 years ago cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
127
          curl_setopt($curl, CURLOPT_POST, 1);
Open commit View diff
127 curl_setopt($curl, CURLOPT_POST, 1);
André almost 8 years ago cedc38f

[Web] Add search fields to some select forms

Full commit hash
cedc38fbaa3adb84f3920552d985a834803cd056
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
128
          curl_setopt($curl, CURLOPT_TIMEOUT, $DOCKER_TIMEOUT);
Open commit View diff
128 curl_setopt($curl, CURLOPT_TIMEOUT, $DOCKER_TIMEOUT);
andre.peters over 8 years ago adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
129
          if (!empty($attr2)) {
Open commit View diff
129 if (!empty($attr2)) {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
130
            curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($attr2));
Open commit View diff
130 curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($attr2));
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
131
          }
Open commit View diff
131 }
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
132
          if (!empty($extra_headers) && is_array($extra_headers)) {
Open commit View diff
132 if (!empty($extra_headers) && is_array($extra_headers)) {
same change adc23d8

Various...

Full commit hash
adc23d86f9b16c77cde48c609c492e4cbaa29335
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
133
            curl_setopt($curl, CURLOPT_HTTPHEADER, $extra_headers);
Open commit View diff
133 curl_setopt($curl, CURLOPT_HTTPHEADER, $extra_headers);
andryyy almost 9 years ago cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
134
          }
Open commit View diff
134 }
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
135
          curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
Open commit View diff
135 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
136
          $response = curl_exec($curl);
Open commit View diff
136 $response = curl_exec($curl);
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
137
          if ($response === false) {
Open commit View diff
137 if ($response === false) {
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
138
            $err = curl_error($curl);
Open commit View diff
138 $err = curl_error($curl);
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
139
            curl_close($curl);
Open commit View diff
139 curl_close($curl);
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
140
            return $err;
Open commit View diff
140 return $err;
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
141
          }
Open commit View diff
141 }
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
142
          else {
Open commit View diff
142 else {
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
143
            curl_close($curl);
Open commit View diff
143 curl_close($curl);
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
144
            if (empty($response)) {
Open commit View diff
144 if (empty($response)) {
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
145
              return true;
Open commit View diff
145 return true;
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
146
            }
Open commit View diff
146 }
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
147
            else {
Open commit View diff
147 else {
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
148
              return $response;
Open commit View diff
148 return $response;
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
149
            }
Open commit View diff
149 }
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
150
          }
Open commit View diff
150 }
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
151
        }
Open commit View diff
151 }
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
152
      }
Open commit View diff
152 }
same change cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
153
    break;
Open commit View diff
153 break;
FreddleSpl0it almost 4 years ago 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
154
    case 'container_stats':
Open commit View diff
154 case 'container_stats':
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
155
      if (empty($service_name)){
Open commit View diff
155 if (empty($service_name)){
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
156
        return false;
Open commit View diff
156 return false;
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
157
      }
Open commit View diff
157 }
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
158
Open commit View diff
158
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
159
      $container_id = $service_name;
Open commit View diff
159 $container_id = $service_name;
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
160
      curl_setopt($curl, CURLOPT_URL, 'https://dockerapi:443/container/' . $container_id . '/stats/update');
Open commit View diff
160 curl_setopt($curl, CURLOPT_URL, 'https://dockerapi:443/container/' . $container_id . '/stats/update');
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
161
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
Open commit View diff
161 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
162
      curl_setopt($curl, CURLOPT_POST, 1);
Open commit View diff
162 curl_setopt($curl, CURLOPT_POST, 1);
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
163
      curl_setopt($curl, CURLOPT_TIMEOUT, $DOCKER_TIMEOUT);
Open commit View diff
163 curl_setopt($curl, CURLOPT_TIMEOUT, $DOCKER_TIMEOUT);
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
164
      $response = curl_exec($curl);
Open commit View diff
164 $response = curl_exec($curl);
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
165
      if ($response === false) {
Open commit View diff
165 if ($response === false) {
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
166
        $err = curl_error($curl);
Open commit View diff
166 $err = curl_error($curl);
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
167
        curl_close($curl);
Open commit View diff
167 curl_close($curl);
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
168
        return $err;
Open commit View diff
168 return $err;
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
169
      }
Open commit View diff
169 }
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
170
      else {
Open commit View diff
170 else {
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
171
        curl_close($curl);
Open commit View diff
171 curl_close($curl);
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
172
        $stats = json_decode($response, true);
Open commit View diff
172 $stats = json_decode($response, true);
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
173
        if (!empty($stats)) return $stats;
Open commit View diff
173 if (!empty($stats)) return $stats;
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
174
      }
Open commit View diff
174 }
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
175
      return false;
Open commit View diff
175 return false;
same change 7f70b0f

[BS5] add container disk and network stats

Full commit hash
7f70b0f703a995a547a61bbf486af684a577711d
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
176
    break;
Open commit View diff
176 break;
FreddleSpl0it almost 4 years ago a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
177
    case 'host_stats':
Open commit View diff
177 case 'host_stats':
same change a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
178
      curl_setopt($curl, CURLOPT_URL, 'https://dockerapi:443/host/stats');
Open commit View diff
178 curl_setopt($curl, CURLOPT_URL, 'https://dockerapi:443/host/stats');
same change a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
179
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
Open commit View diff
179 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
same change a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
180
      curl_setopt($curl, CURLOPT_POST, 0);
Open commit View diff
180 curl_setopt($curl, CURLOPT_POST, 0);
same change a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
181
      curl_setopt($curl, CURLOPT_TIMEOUT, $DOCKER_TIMEOUT);
Open commit View diff
181 curl_setopt($curl, CURLOPT_TIMEOUT, $DOCKER_TIMEOUT);
same change a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
182
      $response = curl_exec($curl);
Open commit View diff
182 $response = curl_exec($curl);
same change a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
183
      if ($response === false) {
Open commit View diff
183 if ($response === false) {
same change a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
184
        $err = curl_error($curl);
Open commit View diff
184 $err = curl_error($curl);
same change a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
185
        curl_close($curl);
Open commit View diff
185 curl_close($curl);
same change a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
186
        return $err;
Open commit View diff
186 return $err;
same change a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
187
      }
Open commit View diff
187 }
same change a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
188
      else {
Open commit View diff
188 else {
same change a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
189
        curl_close($curl);
Open commit View diff
189 curl_close($curl);
same change a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
190
        $stats = json_decode($response, true);
Open commit View diff
190 $stats = json_decode($response, true);
same change a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
191
        if (!empty($stats)) return $stats;
Open commit View diff
191 if (!empty($stats)) return $stats;
same change a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
192
      }
Open commit View diff
192 }
same change a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
193
      return false;
Open commit View diff
193 return false;
same change a3c0737

[BS5] add host statistics

Full commit hash
a3c0737ba820d8dca6c0b360f85548867191523e
Author
FreddleSpl0it <[email protected]>
Date
almost 4 years ago
Selected line
194
    break;
Open commit View diff
194 break;
FreddleSpl0it about 3 years ago 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
195
    case 'broadcast':
Open commit View diff
195 case 'broadcast':
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
196
      $request = array(
Open commit View diff
196 $request = array(
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
197
        "api_call" => "container_post",
Open commit View diff
197 "api_call" => "container_post",
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
198
        "container_name" => $service_name,
Open commit View diff
198 "container_name" => $service_name,
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
199
        "post_action" => $attr1,
Open commit View diff
199 "post_action" => $attr1,
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
200
        "request" => $attr2
Open commit View diff
200 "request" => $attr2
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
201
      );
Open commit View diff
201 );
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
202
Open commit View diff
202
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
203
      $redis->publish("MC_CHANNEL", json_encode($request));
Open commit View diff
203 $redis->publish("MC_CHANNEL", json_encode($request));
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
204
      return true;
Open commit View diff
204 return true;
same change 06cce79

[Dockerapi] add pubsub handler for broadcasting in ha setup

Full commit hash
06cce79806fccefa29f7145a7421ca8d122f6dbe
Author
FreddleSpl0it <[email protected]>
Date
about 3 years ago
Selected line
205
    break;
Open commit View diff
205 break;
andryyy almost 9 years ago cc2f2af

[Web] Use Docker API for SOGo restart

Full commit hash
cc2f2afc6274907b23ff381f757a1f50bfc23f4c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
206
  }
Open commit View diff
206 }
André about 8 years ago 30cea1d

[SOGo] Increase workers count to 20

Full commit hash
30cea1da9af56a4e3eccdacb93b74073c9c908f4
Author
André <[email protected]>
Date
about 8 years ago
Selected line
207
}
Open commit View diff
207 }