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