From 9ecc7372ae70b397f5546adb60b0e4542a6bbb78 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 23 Apr 2009 08:05:41 +0000 Subject: A little cleaning up... a lot more to come... --- htdocs/index.php | 2 +- pages/admin.php | 60 ------------------------- utils/admin.php | 60 +++++++++++++++++++++++++ utils/admin_news.php | 121 --------------------------------------------------- 4 files changed, 61 insertions(+), 182 deletions(-) delete mode 100644 pages/admin.php create mode 100644 utils/admin.php delete mode 100644 utils/admin_news.php diff --git a/htdocs/index.php b/htdocs/index.php index 5d05807..797f10b 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -73,7 +73,7 @@ foreach($menu as $_m => $_t) { ?>> getPage($page); else $p = $pages->getPage($config->value('default')); diff --git a/pages/admin.php b/pages/admin.php deleted file mode 100644 index 8efbb56..0000000 --- a/pages/admin.php +++ /dev/null @@ -1,60 +0,0 @@ -
-
Admin
- -findUser($UID); -?> - - - -
-$admin_submodule_name
\n"; - include_once($UTIL_DIR . "/convert.php"); - $admin_module->admin($admin_submodule, $a, convert_array($vars)); -} -?> -
- -
-
-

UserID:

-

Password:

-

-
-
- - diff --git a/utils/admin.php b/utils/admin.php new file mode 100644 index 0000000..8efbb56 --- /dev/null +++ b/utils/admin.php @@ -0,0 +1,60 @@ +
+
Admin
+ +findUser($UID); +?> + + + +
+$admin_submodule_name
\n"; + include_once($UTIL_DIR . "/convert.php"); + $admin_module->admin($admin_submodule, $a, convert_array($vars)); +} +?> +
+ +
+
+

UserID:

+

Password:

+

+
+
+ + diff --git a/utils/admin_news.php b/utils/admin_news.php deleted file mode 100644 index b27cf31..0000000 --- a/utils/admin_news.php +++ /dev/null @@ -1,121 +0,0 @@ -

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