Rev 4 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | daniel-mar | 1 | <?php |
2 | |||
3 | daniel-mar | 3 | if (!defined('IBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
2 | daniel-mar | 4 | |
5 | $meldung = ''; |
||
6 | |||
7 | if (!inetconn_ok()) |
||
8 | { |
||
9 | $meldung .= '<font color="#FF0000">Konnte nicht nach Updates prüfen, da Internetkonnektivität gestört ist.</font>'; |
||
10 | } |
||
11 | else |
||
12 | { |
||
3 | daniel-mar | 13 | $cont = my_get_contents('https://www.personal-webbase.de/module_version.txt'); |
2 | daniel-mar | 14 | |
15 | if ($cont == '') |
||
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>'; |
||
18 | } |
||
19 | else |
||
20 | { |
||
3 | daniel-mar | 21 | if (strpos($cont, '['.$m2.' '.$version.']') !== false) |
2 | daniel-mar | 22 | { |
23 | $meldung .= 'Es sind keine Updates für das Modul verfügbar.'; |
||
24 | } |
||
25 | else |
||
26 | { |
||
3 | daniel-mar | 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>'; |
2 | daniel-mar | 28 | } |
29 | } |
||
30 | } |
||
31 | |||
8 | daniel-mar | 32 | if (decoct(@fileperms('modules/'.wb_dir_escape($m2).'/system/temp/')) != 40777) |
33 | $meldung .= '<br><br><font color="#FF0000">Die Funktionalität dieses Modules könnte beeinträchtigt sein, da der Administrator folgendes Verzeichnis nicht schreibbar (CHMOD 0777) gemacht hat: modules/'.wb_dir_escape($m2).'/system/temp/</font>'; |
||
2 | daniel-mar | 34 | |
3 | daniel-mar | 35 | ?> |