} $tpl->ParseCurrentBlock("artikelchoose"); } } } elseif ($_POST[action] == "cacheupdate") { $headtpl->SetVariable("titel", "Cacheentry löschen und somit updaten"); if ($_SESSION[password] == $PASSWORD) { kill_cache($_POST[entry_id]); $error_message = "Cache cleared"; } else { $error_message = "Nicht authentifiziert. Fool."; } } elseif ($_POST[action] == "save") { $headtpl->SetVariable("titel", "Eintrag Speichern: {$entry['title']}"); if ($_SESSION[password] == $PASSWORD) { save_article($_POST[entry_id]); kill_cache($_POST[entry_id]); $error_message = "Geänderter Artikel gespeichert"; } else { $error_message = "Nicht authentifiziert. Fool."; } } elseif ($_POST[action] == "comment") { if ($_POST['id'] != "") { save_comment($_POST['id']); header("Location: index.php?action=entry&id={$_POST['id']}"); } else { $error_message = "Fehlende Angaben!."; } } else { $error_message = "Wrong POST action"; }
} elseif ($action == 'import_article') { import_article(); } elseif ($action == 'list_private') { list_private(); } elseif ($action == 'list_draft') { list_draft(); } elseif (defined('HESK_DEMO')) { hesk_process_messages($hesklang['ddemo'], 'manage_knowledgebase.php', 'NOTICE'); } elseif ($action == 'new_article') { new_article(); } elseif ($action == 'new_category') { new_category(); } elseif ($action == 'remove_article') { remove_article(); } elseif ($action == 'save_article') { save_article(); } elseif ($action == 'order_article') { order_article(); } elseif ($action == 'order_cat') { order_category(); } elseif ($action == 'edit_category') { edit_category(); } elseif ($action == 'remove_kb_att') { remove_kb_att(); } elseif ($action == 'sticky') { toggle_sticky(); } elseif ($action == 'update_count') { update_count(1); } } // Part of a trick to prevent duplicate article submissions by reloading pages