Subversion Repositories personal-webbase

Rev

Rev 14 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
12 daniel-mar 1
<?php
2
 
14 daniel-mar 3
if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgef&uuml;hrt werden.');
12 daniel-mar 4
 
5
  echo $header;
6
 
7
if ($modulueberschrift == '') $modulueberschrift = $modul;
8
echo '<h1>'.my_htmlentities($modulueberschrift).'</h1>';
9
 
10
    echo 'Folgende Module enthalten eine designte Konfigurationsm&ouml;glichkeit:<br><br>';
11
 
12
    $i = -1;
13
    foreach ($module as $m1 => $m2)
14
    {
15
      if (file_exists('modules/'.wb_dir_escape($m2).'/pages/konfig.inc.php'))
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
 
29
        if (file_exists('modules/'.wb_dir_escape($m2).'/var.inc.php'))
30
        {
31
          include('modules/'.wb_dir_escape($m2).'/var.inc.php');
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">';
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="">';
49
        else
50
          echo '<img src="design/spacer.gif" border="0" width="32" height="32" alt="">';
51
        echo '<br>'.my_htmlentities($titel).'</a></td>';
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
15 daniel-mar 68
    {
12 daniel-mar 69
      echo 'Keine entsprechenden Module gefunden!<br><br>';
15 daniel-mar 70
        }
12 daniel-mar 71
 
72
      echo $footer;
73
 
74
?>