From 2f65a40d8d0e400446fd9a295367d9d4081b0f71 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sat, 20 Dec 2008 22:46:29 -0500 Subject: Fixed gender pronouns --- pages/post.php | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/pages/post.php b/pages/post.php index f7990bd..1b89fa4 100755 --- a/pages/post.php +++ b/pages/post.php @@ -31,13 +31,13 @@ $privatekey = "6LfgvgEAAAAAAD0_UVLp57MU7tqcypsbZPS9qTnr"; $template = new FITemplate('msg'); $template->add('BACK','the previous page'); -if (!isset($_GET['id'])) -{ - $template->add('MSG','I\'m sorry, but there\'s no page-id set here, so sadly you can\'t comment yet. Why not contact the administratior (link on the HatBar) and tell him that you saw this error?'); -} else { - if ($_POST['comment'] == "") - { - $template->add('MSG','I\'m sorry, but you didn\'t enter a comment!'); +if (!isset($_GET['id'])) +{ + $template->add('MSG','I\'m sorry, but there\'s no page-id set here, so sadly you can\'t comment yet. Why not contact the administratior (link on the HatBar) and tell her that you saw this error?'); +} else { + if ($_POST['comment'] == "") + { + $template->add('MSG','I\'m sorry, but you didn\'t enter a comment!'); } else { if (!isLoggedIn()) { @@ -56,23 +56,23 @@ if (!isset($_GET['id'])) { if ($getanon3['email'] == $_POST['email']) { - $setcomment = "INSERT INTO comments SET page_id = \"" . $_GET['id'] . "\", username = \"" . $_POST['username'] . "\", comment = \"" . $_POST['comment'] . "\""; + $setcomment = "INSERT INTO comments SET page_id = \"" . $_GET['id'] . "\", username = \"" . $_POST['username'] . "\", comment = \"" . $_POST['comment'] . "\""; $setcomment2 = mysql_query($setcomment); - - $page_id = $_GET['id']; + + $page_id = $_GET['id']; $comType = substr($page_id,0,strpos($page_id,'-')); - $comID = substr($page_id,strpos($page_id,'-')+1); + $comID = substr($page_id,strpos($page_id,'-')+1); if ($comType == 'updates') { recalcPop($comID); } - + $template->add('MSG',"Thank you, " . $getanon3['username'] . ", for posting your valuable comment!"); } else { $template->add('MSG',"I'm sorry, but this anonymous username is already in use. If this is in fact you, please verify that you have entered the same email address that you entered the first time you commented here."); } } else { - $setcomment = "INSERT INTO moderation SET page_id = \"" . $_GET['id'] . "\", author = \"" . $_POST['username'] . "\", email = \"" . $_POST['email'] . "\", comment = \"" . $_POST['comment'] . "\", website = \"" . $_POST['website'] . "\""; + $setcomment = "INSERT INTO moderation SET page_id = \"" . $_GET['id'] . "\", author = \"" . $_POST['username'] . "\", email = \"" . $_POST['email'] . "\", comment = \"" . $_POST['comment'] . "\", website = \"" . $_POST['website'] . "\""; $setcomment2 = mysql_query($setcomment); mail('hatkirby@fourisland.com', 'New comment to moderate on Four Island', 'Some one has anonymously left a comment on Four Island and it will require moderation.'); @@ -83,23 +83,23 @@ if (!isset($_GET['id'])) $template->add('MSG',"I'm sorry, but you've entered an invalid email address."); } } - } else { - $setcomment = "INSERT INTO comments SET page_id = \"" . $_GET['id'] . "\", username = \"" . sess_get('uname') . "\", comment = \"" . $_POST['comment'] . "\""; + } else { + $setcomment = "INSERT INTO comments SET page_id = \"" . $_GET['id'] . "\", username = \"" . sess_get('uname') . "\", comment = \"" . $_POST['comment'] . "\""; $setcomment2 = mysql_query($setcomment); mail('hatkirby@fourisland.com', 'New comment on Four Island!', sess_get('uname') . ' has posted a comment on Four Island under the "page id" ' . $_GET['id']); - - $page_id = $_GET['id']; + + $page_id = $_GET['id']; $comType = substr($page_id,0,strpos($page_id,'-')); - $comID = substr($page_id,strpos($page_id,'-')+1); + $comID = substr($page_id,strpos($page_id,'-')+1); if ($comType == 'updates') { recalcPop($comID); } - + $template->add('MSG',"Thank you, " . sess_get('uname') . ", for posting your valuable comment!"); - } - } + } + } } $template->display(); -- cgit 1.4.1