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ührt werden.'); |
3 | if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
4 | 4 | ||
5 | if ($wb_user_type < 2) die('Keine Zugriffsberechtigung'); |
5 | if ($wb_user_type < 2) die('Keine Zugriffsberechtigung'); |
6 | 6 | ||
7 | echo $header; |
7 | echo $header; |
8 | 8 | ||
9 | if (!isset($vonmodul)) $vonmodul = $modul; |
9 | if (!isset($vonmodul)) $vonmodul = $modul; |
10 | if (!isset($vonseite)) $vonseite = 'inhalt'; |
10 | if (!isset($vonseite)) $vonseite = 'inhalt'; |
11 | 11 | ||
12 | if ($modulueberschrift == '') $modulueberschrift = $modul; |
12 | if ($modulueberschrift == '') $modulueberschrift = $modul; |
13 | echo '<h1>'.my_htmlentities($modulueberschrift).'</h1>'; |
13 | echo '<h1>'.my_htmlentities($modulueberschrift).'</h1>'; |
14 | echo 'Hier können Sie Konfigurationen an Personal WebBase-Modulen manuell vornehmen. Dies wird jedoch nicht empfohlen, da auch Fehlkonfigurationen mit ungültigen Werten angenommen werden.<br><br>'; |
14 | echo 'Hier können Sie Konfigurationen an Personal WebBase-Modulen manuell vornehmen. Dies wird jedoch nicht empfohlen, da auch Fehlkonfigurationen mit ungültigen Werten angenommen werden.<br><br>'; |
15 | 15 | ||
16 | gfx_begintable(); |
16 | wb_draw_table_begin(); |
17 | gfx_tablecontent('', '<b>Modul</b>', '', '<b>Eigenschaft</b>', '', '<b>Wert</b>', '', '<b>Aktionen</b>', '', ''); |
17 | wb_draw_table_content('', '<b>Modul</b>', '', '<b>Eigenschaft</b>', '', '<b>Wert</b>', '', '<b>Aktionen</b>', '', ''); |
18 | $res = db_query("SELECT `id`, `name`, `wert`, `modul` FROM `".$mysql_zugangsdaten['praefix']."konfig` ORDER BY `modul` ASC, `name` ASC"); |
18 | $res = db_query("SELECT `id`, `name`, `wert`, `modul` FROM `".$mysql_zugangsdaten['praefix']."konfig` ORDER BY `modul` ASC, `name` ASC"); |
19 | while ($row = db_fetch($res)) |
19 | while ($row = db_fetch($res)) |
20 | { |
20 | { |
21 | if (isset($only) && ($row['modul'] == $only)) |
21 | if (isset($only) && ($row['modul'] == $only)) |
22 | { |
22 | { |
23 | $s1 = '<font color="#FF0000">'; |
23 | $s1 = '<font color="#FF0000">'; |
24 | $s2 = '</font>'; |
24 | $s2 = '</font>'; |
25 | } |
25 | } |
26 | else |
26 | else |
27 | { |
27 | { |
28 | $s1 = ''; |
28 | $s1 = ''; |
29 | $s2 = ''; |
29 | $s2 = ''; |
30 | } |
30 | } |
31 | if (is_dir('modules/'.wb_dir_escape($row['modul']))) |
31 | if (is_dir('modules/'.wb_dir_escape($row['modul']))) |
32 | { |
32 | { |
33 | $z = ''; |
33 | $z = ''; |
34 | $x = 'Standard herstellen'; |
34 | $x = 'Standard herstellen'; |
35 | } |
35 | } |
36 | else |
36 | else |
37 | { |
37 | { |
38 | $z = ' (Nicht mehr installiert)'; |
38 | $z = ' (Nicht mehr installiert)'; |
39 | $x = 'Wert entfernen'; |
39 | $x = 'Wert entfernen'; |
40 | } |
40 | } |
41 | gfx_tablecontent('', $s1.my_htmlentities($row['modul']).$z.$s2, '', $s1.my_htmlentities($row['name']).$s2, '', $s1.my_htmlentities($row['wert']).$s2, '', '<a href="'.$_SERVER['PHP_SELF'].'?modul='.urlencode($modul).'&seite=edit&id='.urlencode($row['id']).'" class="menu">'.$s1.'Bearbeiten'.$s2.'</a>', '', '<a href="javascript:abfrage(\''.$_SERVER['PHP_SELF'].'?modul='.urlencode($modul).'&seite=kraftsetzung&aktion=delete&id='.urlencode($row['id']).'\');" class="menu">'.$s1.$x.$s2.'</a>'); |
41 | wb_draw_table_content('', $s1.my_htmlentities($row['modul']).$z.$s2, '', $s1.my_htmlentities($row['name']).$s2, '', $s1.my_htmlentities($row['wert']).$s2, '', '<a href="'.$_SERVER['PHP_SELF'].'?modul='.urlencode($modul).'&seite=edit&id='.urlencode($row['id']).'" class="menu">'.$s1.'Bearbeiten'.$s2.'</a>', '', '<a href="javascript:abfrage(\''.$_SERVER['PHP_SELF'].'?modul='.urlencode($modul).'&seite=kraftsetzung&aktion=delete&id='.urlencode($row['id']).'\');" class="menu">'.$s1.$x.$s2.'</a>'); |
42 | } |
42 | } |
43 | gfx_endtable(); |
43 | wb_draw_table_end(); |
44 | 44 | ||
45 | echo '<input type="button" onclick="document.location.href=\''.$_SERVER['PHP_SELF'].'?modul='.urlencode($vonmodul).'&seite='.urlencode($vonseite).'\';" class="button" onmouseover="this.className=\'button_act\';" onmouseout="this.className=\'button\';" value="Zurück">'; |
45 | echo '<input type="button" onclick="document.location.href=\''.$_SERVER['PHP_SELF'].'?modul='.urlencode($vonmodul).'&seite='.urlencode($vonseite).'\';" class="button" onmouseover="this.className=\'button_act\';" onmouseout="this.className=\'button\';" value="Zurück">'; |
46 | 46 | ||
47 | echo $footer; |
47 | echo $footer; |
48 | 48 | ||
49 | ?> |
49 | ?> |
50 | 50 |