From decf2308ff1906202d658913062f21af1b1c5495 Mon Sep 17 00:00:00 2001 From: Jeff Teunissen Date: Sun, 18 Mar 2007 04:38:53 +0000 Subject: [PATCH] Dammit. --- news_edit.php | 4 ++-- plan_add.php | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++ plans.php | 5 ----- 3 files changed, 55 insertions(+), 7 deletions(-) create mode 100644 plan_add.php diff --git a/news_edit.php b/news_edit.php index c0ddfe6..e5aa649 100644 --- a/news_edit.php +++ b/news_edit.php @@ -66,8 +66,8 @@ need ('boxes sql table'); global $newsID; - global $newsText = $_POST['newsText']; - global $newsUser = $_POST['newsUser']; + global $newsText + global $newsUser $newsID = $_GET['newsID']; $newsText = $_POST['newsText']; diff --git a/plan_add.php b/plan_add.php new file mode 100644 index 0000000..2db4298 --- /dev/null +++ b/plan_add.php @@ -0,0 +1,53 @@ +Your plan entry has been posted successfully.

'; + } else { + echo '

Somebody screwed up, MySQL said "' . mysql_error () . '". Bug a project admin or somethin\' eh?

'; + } + mysql_close ($conn); + } else { + echo '

Somebody screwed up, MySQL said "' . mysql_error () . '". Bug a project admin or somethin\' eh?

'; + } + } else { + $date = date ('d M Y'); + + newsBoxOpen (); + if ($planText) { + newsBoxTitle ("Latest Plan for $user (Preview)"); + printNews ($date, $user, stripSlashes ($planText)); + } + newsBoxTitle ("Post Plan Entry"); + $form = '
' + . 'Subject:
' + . '
' + . '' + . '' + .'
'; + printNews ($date, $user, $form); + newsBoxClose (); + } +?> diff --git a/plans.php b/plans.php index d27c2f6..c079bb0 100644 --- a/plans.php +++ b/plans.php @@ -4,7 +4,6 @@ $currPage = "plans"; // Name of the page, for the menu require "parts/preamble.php"; // Load most of document ?> -
- -