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 == 'wipe') |
||
6 | { |
||
7 | db_query("DELETE FROM `".$WBConfig->getMySQLPrefix()."recent_events`"); |
||
8 | if (db_affected_rows() > 0) |
||
9 | db_query("OPTIMIZE TABLE `".$WBConfig->getMySQLPrefix()."recent_events`"); |
||
10 | wb_redirect_now($_SERVER['PHP_SELF'].'?seite=main&modul='.$modul); |
||
11 | } |
||
12 | |||
13 | if ($aktion == 'delete') |
||
14 | { |
||
15 | db_query("DELETE FROM `".$WBConfig->getMySQLPrefix()."recent_events` WHERE `id` = '".db_escape($id)."'"); |
||
16 | if (db_affected_rows() > 0) |
||
17 | db_query("OPTIMIZE TABLE `".$WBConfig->getMySQLPrefix()."recent_events`"); |
||
18 | wb_redirect_now($_SERVER['PHP_SELF'].'?seite=main&modul='.$modul); |
||
19 | } |
||
20 | |||
21 | ?> |