From cce5e7710295021b41d9aaecc503a60fb99256be Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 4 Oct 2008 10:38:03 +0000 Subject: Initial revision --- utils/admin_news.php | 121 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 utils/admin_news.php (limited to 'utils/admin_news.php') diff --git a/utils/admin_news.php b/utils/admin_news.php new file mode 100644 index 0000000..b27cf31 --- /dev/null +++ b/utils/admin_news.php @@ -0,0 +1,121 @@ +

News

+show(); + + echo "

Category: " . $category . "

\n"; + if($newsletter) echo "

WARNING: This news will be sent out a newsletter if yes is pressed.

\n"; +?> +Is this news correct?
+
+ + + + + + + + + + + +
+
+ + + + + + + + + + + +
+ + +add($newsentry); + $news->write(); + + // Now update the RSS feed. + $rss = new RSS($DATA_DIR."/news.xml", "rss.xml"); + $rss->write(); + + echo "

News posted successfully.

"; + + // if($newsletter == "on") sendNewsLetter($title, $description); + + $title = ""; + $category = ""; + $newsletter = ""; + $day = ""; + $month = ""; + $year = ""; + $hour = ""; + $minute = ""; + $second = ""; + $description = ""; +} +?> + + + +
Post news
+
+ Title:
+ Category: +
+ Date: / + - +
+ Time: : + : +
+ Description:
+ +
-- cgit v1.2.3