}
if (IS_FORM_SENT()) {
- $SQL = array();
switch (REQUEST_GET('do')) {
case "add":
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_payments` (time, payment, mail_title, price) VALUES ('".REQUEST_POST('t_wait')."','".REQUEST_POST('payment')."','".REQUEST_POST('title')."','".REQUEST_POST('price')."')");
// Save settings
if (COUNT_SQLS() > 0) {
// Run all queries
- RUN_FILTER('run_sqls', array('dry_run' => false));
+ runFilterChain('run_sqls');
$content = "<span class=\"admin_failed\">".SETTINGS_SAVED."</span>";
} else {
// Nothing has changed!
// Output template
LOAD_TEMPLATE("admin_settings_saved", false, $content);
-} elseif ((REQUEST_ISSET_POST(('del'))) && (SELECTION_COUNT(REQUEST_POST('sel')) > 0)) {
+} elseif ((REQUEST_ISSET_POST('del')) && (SELECTION_COUNT(REQUEST_POST('sel')) > 0)) {
// Delete entries here
$SW = 2; $OUT = "";
foreach (REQUEST_POST('sel') as $id => $value) {
// Load main template
LOAD_TEMPLATE("admin_del_payments");
-} elseif ((REQUEST_ISSET_POST(('edit'))) && (SELECTION_COUNT(REQUEST_POST('sel')) > 0)) {
+} elseif ((REQUEST_ISSET_POST('edit')) && (SELECTION_COUNT(REQUEST_POST('sel')) > 0)) {
// Edit entries
$SW = 2; $OUT = "";
foreach (REQUEST_POST('sel') as $id => $value) {