source: subversion/branches/devel-vnext/plugins/macbay_filter/bin/plugin_action.php @ 718

Last change on this file since 718 was 718, checked in by till, 6 years ago

# css/design fixes

File size: 1.0 KB
Line 
1<?php
2if (defined('MACBAY_FILTER_MADNESS') === FALSE) {
3    die('no go.');
4}
5$_plugin_action = (string) @$_POST['_plugin_action'];
6switch($_plugin_action) {
7    case 'add':
8        //echo '<pre>'; var_dump($_POST); echo '</pre>';
9        $status = $macbay_filter->addRule($_POST);
10        if ($status !== true) {
11            array_push($error_msg, 'Der Regelsatz konnte nicht gespeichert werden.');
12        }
13        break;
14
15    case 'save':
16        $status = $macbay_filter->saveRules($_POST);
17        if ($status !== true) {
18            rc_main::tfk_debug::('Response: ' . $status);
19            array_push($error_msg, 'Ihre &Auml;nderungen konnten leider nicht gespeichert werden.');
20        }
21        break;
22
23    default:
24        rc_bugs::raise_error(
25                array(
26                    'code'    => 666,
27                    'message' => 'Unknown plugin_action',
28                    'file'    => __FILE__,
29                    'line'    => __LINE__
30                ),
31                TRUE
32        );
33}
34//var_dump($_POST); exit;
35?>
Note: See TracBrowser for help on using the repository browser.