diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2009-01-05 18:01:06 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2009-01-05 18:01:06 -0500 |
commit | 38f73720eaec5f49752589ac088b04b3fa734117 (patch) | |
tree | b1d809406de7980925223cbcbdd974a2c074d13f /pages/post.php | |
parent | 646c11fb40bdd3e80e6b2ec168eaa05eae23e68e (diff) | |
download | fourisland-38f73720eaec5f49752589ac088b04b3fa734117.tar.gz fourisland-38f73720eaec5f49752589ac088b04b3fa734117.tar.bz2 fourisland-38f73720eaec5f49752589ac088b04b3fa734117.zip |
Integreated Fourm users
Diffstat (limited to 'pages/post.php')
-rwxr-xr-x | pages/post.php | 6 |
1 files changed, 3 insertions, 3 deletions
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'])) | |||
84 | } | 84 | } |
85 | } | 85 | } |
86 | } else { | 86 | } else { |
87 | $setcomment = "INSERT INTO comments SET page_id = \"" . $_GET['id'] . "\", username = \"" . sess_get('uname') . "\", comment = \"" . $_POST['comment'] . "\""; | 87 | $setcomment = "INSERT INTO comments SET page_id = \"" . $_GET['id'] . "\", username = \"" . getSessionUsername() . "\", comment = \"" . $_POST['comment'] . "\""; |
88 | $setcomment2 = mysql_query($setcomment); | 88 | $setcomment2 = mysql_query($setcomment); |
89 | 89 | ||
90 | 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']); | 90 | mail('hatkirby@fourisland.com', 'New comment on Four Island!', getSessionUsername() . ' has posted a comment on Four Island under the "page id" ' . $_GET['id']); |
91 | 91 | ||
92 | $page_id = $_GET['id']; | 92 | $page_id = $_GET['id']; |
93 | $comType = substr($page_id,0,strpos($page_id,'-')); | 93 | $comType = substr($page_id,0,strpos($page_id,'-')); |
@@ -97,7 +97,7 @@ if (!isset($_GET['id'])) | |||
97 | recalcPop($comID); | 97 | recalcPop($comID); |
98 | } | 98 | } |
99 | 99 | ||
100 | $template->add('MSG',"Thank you, " . sess_get('uname') . ", for posting your valuable comment!"); | 100 | $template->add('MSG',"Thank you, " . getSessionUsername() . ", for posting your valuable comment!"); |
101 | } | 101 | } |
102 | } | 102 | } |
103 | } | 103 | } |