From 38f73720eaec5f49752589ac088b04b3fa734117 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Mon, 5 Jan 2009 18:01:06 -0500 Subject: Integreated Fourm users --- pages/post.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pages/post.php') diff --git a/pages/post.php b/pages/post.php index 1b89fa4..48239cf 100755 --- a/pages/post.php +++ b/pages/post.php @@ -84,10 +84,10 @@ if (!isset($_GET['id'])) } } } else { - $setcomment = "INSERT INTO comments SET page_id = \"" . $_GET['id'] . "\", username = \"" . sess_get('uname') . "\", comment = \"" . $_POST['comment'] . "\""; + $setcomment = "INSERT INTO comments SET page_id = \"" . $_GET['id'] . "\", username = \"" . getSessionUsername() . "\", 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']); + mail('hatkirby@fourisland.com', 'New comment on Four Island!', getSessionUsername() . ' has posted a comment on Four Island under the "page id" ' . $_GET['id']); $page_id = $_GET['id']; $comType = substr($page_id,0,strpos($page_id,'-')); @@ -97,7 +97,7 @@ if (!isset($_GET['id'])) recalcPop($comID); } - $template->add('MSG',"Thank you, " . sess_get('uname') . ", for posting your valuable comment!"); + $template->add('MSG',"Thank you, " . getSessionUsername() . ", for posting your valuable comment!"); } } } -- cgit 1.4.1