Subversion Repositories personal-webbase

Rev

Rev 14 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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