diff options
author | Philip Häusler <msquare@notrademark.de> | 2011-12-21 23:18:57 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2011-12-21 23:18:57 +0100 |
commit | ce7f071c38202764f43eded4c3157a4743bd545f (patch) | |
tree | c4fc520d931df92c58b94a4bf4dd31cd92ff4591 /includes/pages/admin_news.php | |
parent | def9532d6ba5203f4bfeefa2db21b8d4fe006f32 (diff) |
#44 angeltypes recreated
Diffstat (limited to 'includes/pages/admin_news.php')
-rw-r--r-- | includes/pages/admin_news.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/includes/pages/admin_news.php b/includes/pages/admin_news.php index c7194e7c..c0c127ba 100644 --- a/includes/pages/admin_news.php +++ b/includes/pages/admin_news.php @@ -11,7 +11,7 @@ function admin_news() { if (isset ($_REQUEST['id']) && preg_match("/^[0-9]{1,11}$/", $_REQUEST['id'])) $id = $_REQUEST['id']; else - return error("Incomplete call, missing News ID."); + return error("Incomplete call, missing News ID.", true); $news = sql_select("SELECT * FROM `News` WHERE `ID`=" . sql_escape($id) . " LIMIT 1"); if (count($news) > 0) { @@ -45,14 +45,14 @@ function admin_news() { $html .= "<input type=\"submit\" name=\"submit\" value=\"Löschen\">\n"; $html .= "</form>"; } else - return error("No News found."); + return error("No News found.", true); break; case 'save' : if (isset ($_REQUEST['id']) && preg_match("/^[0-9]{1,11}$/", $_REQUEST['id'])) $id = $_REQUEST['id']; else - return error("Incomplete call, missing News ID."); + return error("Incomplete call, missing News ID.", true); $news = sql_select("SELECT * FROM `News` WHERE `ID`=" . sql_escape($id) . " LIMIT 1"); if (count($news) > 0) { @@ -62,14 +62,14 @@ function admin_news() { "', `Treffen`='" . sql_escape($_POST["eTreffen"]) . "' WHERE `ID`=".sql_escape($id)." LIMIT 1"); header("Location: " . page_link_to("news")); } else - return error("No News found."); + return error("No News found.", true); break; case 'delete' : if (isset ($_REQUEST['id']) && preg_match("/^[0-9]{1,11}$/", $_REQUEST['id'])) $id = $_REQUEST['id']; else - return error("Incomplete call, missing News ID."); + return error("Incomplete call, missing News ID.", true); $news = sql_select("SELECT * FROM `News` WHERE `ID`=" . sql_escape($id) . " LIMIT 1"); if (count($news) > 0) { @@ -78,7 +78,7 @@ function admin_news() { sql_query("DELETE FROM `News` WHERE `ID`=" . sql_escape($id) . " LIMIT 1"); header("Location: " . page_link_to("news")); } else - return error("No News found."); + return error("No News found.", true); break; } } |