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 == 'delete') |
||
6 | { |
||
7 | $res = db_query("SELECT `table`, `module` FROM `".$WBConfig->getMySQLPrefix()."modules` WHERE `id` = '".db_escape($id)."'"); |
||
8 | $row = db_fetch($res); |
||
9 | |||
10 | if (is_dir('modules/'.$row['module'])) |
||
11 | { |
||
12 | db_query("TRUNCATE TABLE `".$WBConfig->getMySQLPrefix().$row['table']."`"); |
||
13 | } |
||
14 | else |
||
15 | { |
||
16 | db_query("DROP TABLE `".$WBConfig->getMySQLPrefix().$row['table']."`"); |
||
17 | } |
||
18 | |||
19 | wb_redirect_now($_SERVER['PHP_SELF'].'?seite=main&modul='.$modul); |
||
20 | } |
||
21 | |||
22 | ?> |