Subversion Repositories personal-webbase

Rev

Rev 7 | 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
  echo $header;
6
 
7
if ($modulueberschrift == '') $modulueberschrift = $modul;
3 daniel-mar 8
echo '<h1>'.my_htmlentities($modulueberschrift).'</h1>';
2 daniel-mar 9
 
10
    echo 'Folgende Module enthalten eine designte Konfigurationsm&ouml;glichkeit:<br><br>';
11
 
12
    $i = -1;
13
    foreach ($module as $m1 => $m2)
14
    {
8 daniel-mar 15
      if (file_exists('modules/'.wb_dir_escape($m2).'/seite_konfig.inc.php'))
2 daniel-mar 16
      {
17
        $titel = $m2;
18
 
19
        $modulueberschrift = '';
20
        $modulsekpos = '';
21
        $modulpos = '';
22
        $modulrechte = '';
23
        $autor = '';
24
        $version = '';
25
        $menuevisible = '';
26
        $license = '';
27
        $deaktiviere_zugangspruefung = 0;
28
 
8 daniel-mar 29
        if (file_exists('modules/'.wb_dir_escape($m2).'/var.inc.php'))
2 daniel-mar 30
        {
8 daniel-mar 31
          include('modules/'.wb_dir_escape($m2).'/var.inc.php');
2 daniel-mar 32
          $titel = $modulueberschrift;
33
        }
34
 
35
        $i++;
36
 
37
        if ($i == 0)
38
          echo '<center><table cellspacing="6" cellpadding="6" border="0"><tr>';
39
 
40
        if (($i % 5 == 0) && ($i != 0))
41
          echo '</tr><tr>';
42
 
43
        echo '<td valign="middle" align="center">';
8 daniel-mar 44
        echo '<a href="'.$_SERVER['PHP_SELF'].'?seite=konfig&amp;modul='.urlencode($m2).'&amp;vonmodul='.urlencode($modul).'&amp;vonseite='.urlencode($seite).'" class="menu">';
45
        if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.png'))
46
          echo '<img src="modules/'.wb_dir_escape($m2).'/images/menu/32.png" border="0" width="32" height="32" alt="">';
47
        else if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.gif'))
48
          echo '<img src="modules/'.wb_dir_escape($m2).'/images/menu/32.gif" border="0" width="32" height="32" alt="">';
2 daniel-mar 49
        else
50
          echo '<img src="design/spacer.gif" border="0" width="32" height="32" alt="">';
3 daniel-mar 51
        echo '<br>'.my_htmlentities($titel).'</a></td>';
2 daniel-mar 52
      }
53
    }
54
 
55
    unset($m1);
56
        unset($m2);
57
 
58
    if ($i > -1)
59
    {
60
      $i++;
61
      for (;$i%5<>0;$i++)
62
      {
63
        echo '<td valign="middle" align="center"><img src="design/spacer.gif" width="32" height="32" alt=""></td>';
64
      }
65
      echo '</tr></table><br></center>';
66
    }
67
    else
68
      echo 'Keine entsprechenden Module gefunden!<br><br>';
69
 
70
      echo $footer;
71
 
3 daniel-mar 72
?>