Subversion Repositories personal-webbase

Rev

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

Rev Author Line No. Line
7 daniel-mar 1
<?php
2
 
3
require 'includes/main.inc.php';
4
 
5
echo $header_navi;
6
 
7
?><table cellspacing="0" cellpadding="2" border="0" width="100%" style="height:100%">
8
<tr class="area_bar">
9
  <td valign="middle" align="center" colspan="5">
10
 
11
  <b><?php
12
 
13
$ueberschrift = '';
14
$menue = '';
8 daniel-mar 15
if (isset($modul) && (file_exists('modules/'.wb_dir_escape($modul).'/area_'.wb_dir_escape($area).'.inc.php')))
16
  include('modules/'.wb_dir_escape($modul).'/area_'.wb_dir_escape($area).'.inc.php');
7 daniel-mar 17
 
18
if (!isset($prv_seite)) $prv_seite = 'inhalt';
19
 
20
if ($ueberschrift != '')
21
{
22
  echo $ueberschrift;
23
}
24
else
25
{
14 daniel-mar 26
  if ($wb_user_type == '0')
7 daniel-mar 27
        echo 'Gastzugang';
14 daniel-mar 28
  else if ($wb_user_type == '1')
7 daniel-mar 29
        echo 'Benutzermen&uuml;';
14 daniel-mar 30
  else if ($wb_user_type == '2')
7 daniel-mar 31
        echo 'Verwaltung';
32
  else
33
        echo 'Hauptmen&uuml;';
34
}
35
 
36
  ?></b><img src="design/spacer.gif" alt="" width="1" height="14"></td>
37
</tr>
38
 
39
<?php
40
 
41
echo gfx_zeichnemenueplatzhalter();
42
 
43
$startgefunden = false;
44
if ($menue == '')
45
{
46
  $men = array();
47
  foreach ($module as $m1 => $m2)
48
  {
8 daniel-mar 49
    if (file_exists('modules/'.wb_dir_escape($m2).'/var.inc.php'))
7 daniel-mar 50
    {
51
      $modulueberschrift = $m2; // Wenn keine Überschrift in var.inc.php, dann wird das Modul nicht benannt
52
      $modulsekpos = '';
53
      $modulpos = '';
54
      $modulrechte = '';
55
      $autor = '';
56
      $version = '';
57
      $menuevisible = '';
58
      $license = '';
59
      $deaktiviere_zugangspruefung = 0;
60
 
8 daniel-mar 61
      include('modules/'.wb_dir_escape($m2).'/var.inc.php');
14 daniel-mar 62
      if (((($wb_user_type == 0) || ($wb_user_type == 1)) && ($modulrechte == 0)) || ($wb_user_type == $modulrechte))
7 daniel-mar 63
      {
12 daniel-mar 64
        if (($menuevisible) && (file_exists('modules/'.wb_dir_escape($m2).'/pages/inhalt.inc.php')))
7 daniel-mar 65
        {
8 daniel-mar 66
          if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.png'))
67
            $g = 'modules/'.wb_dir_escape($m2).'/images/menu/32.png';
68
          else if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.gif'))
69
            $g = 'modules/'.wb_dir_escape($m2).'/images/menu/32.gif';
7 daniel-mar 70
          else
71
            $g = 'design/spacer.gif';
72
 
8 daniel-mar 73
          if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/16.png'))
74
            $k = 'modules/'.wb_dir_escape($m2).'/images/menu/16.png';
75
          else if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/16.gif'))
76
            $k = 'modules/'.wb_dir_escape($m2).'/images/menu/16.gif';
7 daniel-mar 77
          else
78
            $k = 'design/spacer.gif';
79
 
80
          if (!isset($men[$modulpos][$modulsekpos])) $men[$modulpos][$modulsekpos] = '';
81
          $men[$modulpos][$modulsekpos] .= gfx_zeichnemenuepunkt($m2, 'inhalt', my_htmlentities($modulueberschrift), $k, $g);
82
        }
12 daniel-mar 83
        if (isset($prv_modul) && ($m2 == $prv_modul) && (file_exists('modules/'.wb_dir_escape($m2).'/pages/inhalt.inc.php')))
7 daniel-mar 84
        {
8 daniel-mar 85
          if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.png'))
86
            $g = 'modules/'.wb_dir_escape($m2).'/images/menu/32.png';
87
          else if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.gif'))
88
            $g = 'modules/'.wb_dir_escape($m2).'/images/menu/32.gif';
7 daniel-mar 89
          else
90
            $g = 'design/spacer.gif';
91
 
92
          $endjs = '<script language="JavaScript" type="text/javascript">
93
                  <!--
94
                    oop(\''.$m2.'\', \''.$prv_seite.'\', \''.my_htmlentities($modulueberschrift).'\', \''.$g.'\');
95
                  // -->
96
</script>'."\n\n";
97
          $startgefunden = true;
98
        }
99
        else
100
        {
12 daniel-mar 101
          if (($modulpos == 0) && ($modulsekpos == 0) && (!$startgefunden) && (file_exists('modules/'.wb_dir_escape($m2).'/pages/inhalt.inc.php')))
7 daniel-mar 102
          {
8 daniel-mar 103
            if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.png'))
104
              $g = 'modules/'.wb_dir_escape($m2).'/images/menu/32.png';
105
            else if (file_exists('modules/'.wb_dir_escape($m2).'/images/menu/32.gif'))
106
              $g = 'modules/'.wb_dir_escape($m2).'/images/menu/32.gif';
7 daniel-mar 107
            else
108
              $g = 'design/spacer.gif';
109
 
110
            $endjs = '<script language="JavaScript" type="text/javascript">
111
                  <!--
112
                    oop(\''.$m2.'\', \'inhalt\', \''.my_htmlentities($modulueberschrift).'\', \''.$g.'\');
113
                  // -->
114
</script>'."\n\n";
115
            $startgefunden = true;
116
          }
117
        }
118
      }
119
    }
120
  }
121
 
122
  unset($m1);
123
  unset($m2);
124
 
125
  ksort($men);
126
  $first = true;
127
  foreach ($men as $m1 => $m2)
128
  {
129
    if ($first)
130
      $first = false;
131
    else
132
      echo gfx_zeichnemenueplatzhalter();
133
    ksort($men[$m1]);
134
    foreach ($men[$m1] as $x1 => $x2)
135
      echo $x2;
136
  }
137
 
138
  unset($m1);
139
  unset($m2);
140
}
141
else
142
  echo $menue;
143
 
144
?>
145
 
146
<tr>
147
  <td colspan="5" height="100%"><img src="design/spacer.gif" alt="" width="1" height="1"></td>
148
</tr>
149
</table>
150
 
151
<?php echo $endjs;
152
 
153
echo $footer;
154
 
2 daniel-mar 155
?>