Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | daniel-mar | 1 | <?php |
2 | |||
3 | if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
||
4 | |||
5 | if ($aktion == 'edit') |
||
6 | { |
||
7 | wb_change_config(db_escape($name), db_escape($wert), db_escape($kmodul)); |
||
8 | wb_redirect_now($_SERVER['PHP_SELF'].'?modul='.$modul.'&seite=config'); |
||
9 | } |
||
10 | |||
11 | if ($aktion == 'delete') |
||
12 | { |
||
13 | db_query("DELETE FROM `".$WBConfig->getMySQLPrefix()."configuration` WHERE `id` = '".db_escape($id)."'"); |
||
14 | if (db_affected_rows() > 0) { |
||
15 | db_query("OPTIMIZE TABLE `".$WBConfig->getMySQLPrefix()."configuration`"); |
||
16 | } |
||
17 | wb_redirect_now($_SERVER['PHP_SELF'].'?modul='.$modul.'&seite=config'); |
||
18 | } |
||
19 | |||
20 | ?> |