Subversion Repositories personal-webbase

Rev

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&uuml;hrt werden.');
2 daniel-mar 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
{
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&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
  {
3 daniel-mar 21
    if (strpos($cont, '['.$m2.' '.$version.']') !== false)
2 daniel-mar 22
    {
23
      $meldung .= 'Es sind keine Updates f&uuml;r das Modul verf&uuml;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&auml;t dieses Modules k&ouml;nnte beeintr&auml;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
?>