Rev 9 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
9 | daniel-mar | 1 | <?php |
2 | |||
14 | daniel-mar | 3 | if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
9 | daniel-mar | 4 | |
5 | function inetconn_ok() |
||
6 | { |
||
7 | global $konfiguration; |
||
8 | |||
9 | // Ergebnis für Scriptlaufzeit zwischenspeichern aufgrund von Performancegründen |
||
10 | if (defined('inet_conn_result')) |
||
11 | { |
||
12 | return inet_conn_result; |
||
13 | } |
||
14 | else |
||
15 | { |
||
16 | $r = fsockopen($konfiguration['core_inetconn']['internet-check-url'], $konfiguration['core_inetconn']['internet-check-port'], $errno, $errstr, 5); |
||
17 | define('inet_conn_result', $r); |
||
18 | return $r; |
||
19 | } |
||
20 | } |
||
21 | |||
22 | ?> |