Subversion Repositories personal-webbase

Rev

Rev 3 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 daniel-mar 1
<?php
2
 
3
if (!defined('IBLEGAL')) die('Kann nicht ohne IronBASE ausgef&uuml;hrt werden.');
4
 
5
$meldung = '';
6
 
7
if (!inetconn_ok())
8
{
9
  $meldung .= '<font color="#FF0000">Konnte nicht nach Updates pr&uuml;fen, da Internetkonnektivit&auml;t gest&ouml;rt ist.</font>';
10
}
11
else
12
{
13
  $cont = my_get_contents('http://www.viathinksoft.de/info/ironbase/module.php');
14
 
15
  if ($cont == '')
16
  {
17
    $meldung .= '<font color="#FF0000">Es konnte nicht nach Updates f&uuml;r das Modul gesucht werden. Pr&uuml;fen Sie Ihre PHP-Einstellungen oder versuchen Sie es zu einem sp&auml;teren Zeitpunkt nocheinmal.</font>';
18
  }
19
  else
20
  {
21
    if (strpos($cont, '<!-- UpdateSection: '.$m2.' '.$version.' -->') !== false)
22
    {
23
      $meldung .= 'Es sind keine Updates f&uuml;r das Modul verf&uuml;gbar.';
24
    }
25
    else
26
    {
27
      $meldung .= '<font color="#00BB00">Das Modul ist in einer neuen Version erschienen!</font> <a href="http://www.viathinksoft.de/info/ironbase/downloads/'.$m2.'.zip" target="_blank">Download</a>';
28
    }
29
  }
30
}
31
 
32
if (decoct(@fileperms('modules/'.$m2.'/system/tmp/')) != 40777)
33
  $meldung .= '<br><br><font color="#FF0000">Die Funktionalit&auml;t dieses Modules k&ouml;nnte beeintr&auml;chtigt sein, da der Administrator folgendes Verzeichnis nicht schreibbar (CHMOD 0777) gemacht hat: modules/'.$m2.'/system/tmp/</font>';
34
 
35
?>