Rev 4 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
<?php
if (!defined('IBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.');
$meldung = '';
if (!inetconn_ok())
{
$meldung .= '<font color="#FF0000">Konnte nicht nach Updates prüfen, da Internetkonnektivität gestört ist.</font>';
}
else
{
$cont = my_get_contents('https://www.personal-webbase.de/module_version.txt');
if ($cont == '')
{
$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>';
}
else
{
if (strpos($cont, '['.$m2.' '.$version.']') !== false)
{
$meldung .= 'Es sind keine Updates für das Modul verfügbar.';
}
else
{
$meldung .= '<font color="#00BB00">Das Modul ist in einer neuen Version erschienen!</font> <a href="https://www.personal-webbase.de/" target="_blank">Download</a>';
}
}
}
if (decoct(@fileperms('modules/'.wb_dir_escape
($m2).'/system/tmp/')) != 40777)
$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/tmp/</font>';
?>