Rev 4 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4 | Rev 14 | ||
---|---|---|---|
1 | <?php |
1 | <?php |
2 | 2 | ||
3 | if (!defined('IBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
3 | if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
4 | 4 | ||
5 | $meldung = ''; |
5 | $meldung = ''; |
6 | 6 | ||
7 | if (!inetconn_ok()) |
7 | if (!inetconn_ok()) |
8 | { |
8 | { |
9 | $meldung .= '<font color="#FF0000">Konnte nicht nach Updates prüfen, da Internetkonnektivität gestört ist.</font>'; |
9 | $meldung .= '<font color="#FF0000">Konnte nicht nach Updates prüfen, da Internetkonnektivität gestört ist.</font>'; |
10 | } |
10 | } |
11 | else |
11 | else |
12 | { |
12 | { |
13 | $cont = my_get_contents('https://www.personal-webbase.de/module_version.txt'); |
13 | $cont = my_get_contents('https://www.personal-webbase.de/module_version.txt'); |
14 | 14 | ||
15 | if ($cont == '') |
15 | if ($cont == '') |
16 | { |
16 | { |
17 | $meldung .= '<font color="#FF0000">Es konnte nicht nach Updates für das Modul gesucht werden. Prüfen Sie Ihre PHP-Einstellungen oder versuchen Sie es zu einem späteren Zeitpunkt nocheinmal.</font>'; |
17 | $meldung .= '<font color="#FF0000">Es konnte nicht nach Updates für das Modul gesucht werden. Prüfen Sie Ihre PHP-Einstellungen oder versuchen Sie es zu einem späteren Zeitpunkt nocheinmal.</font>'; |
18 | } |
18 | } |
19 | else |
19 | else |
20 | { |
20 | { |
21 | if (strpos($cont, '['.$m2.' '.$version.']') !== false) |
21 | if (strpos($cont, '['.$m2.' '.$version.']') !== false) |
22 | { |
22 | { |
23 | $meldung .= 'Es sind keine Updates für das Modul verfügbar.'; |
23 | $meldung .= 'Es sind keine Updates für das Modul verfügbar.'; |
24 | } |
24 | } |
25 | else |
25 | else |
26 | { |
26 | { |
27 | $meldung .= '<font color="#00BB00">Das Modul ist in einer neuen Version erschienen!</font> <a href="https://www.personal-webbase.de/" target="_blank">Download</a>'; |
27 | $meldung .= '<font color="#00BB00">Das Modul ist in einer neuen Version erschienen!</font> <a href="https://www.personal-webbase.de/" target="_blank">Download</a>'; |
28 | } |
28 | } |
29 | } |
29 | } |
30 | } |
30 | } |
31 | 31 | ||
32 | ?> |
32 | ?> |
33 | 33 |