From 07aae7e8f8b752e6b37b338783a6d6fef290ee10 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 7 Dec 2008 17:27:58 -0500 Subject: Removed comment rating system --- includes/functions.php | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'includes/functions.php') diff --git a/includes/functions.php b/includes/functions.php index ee19391..c71e69f 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -215,30 +215,4 @@ function verifyUser($username, $password) return (($_POST['username'] != '') && ($getuser3['username'] == $_POST['username'])); } -function updateCommentPop($id, $plus=1) -{ - $gettrack = "SELECT * FROM tracking_comments WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; - $gettrack2 = mysql_query($gettrack); - $gettrack3 = mysql_fetch_array($gettrack2); - - $trackArr = explode(',',$gettrack3['comment_id']); - - if (($gettrack3['ip'] != $_SERVER['REMOTE_ADDR']) || (array_search($id,$trackArr) === FALSE)) - { - $setcomment = "UPDATE comments SET rating = rating+" . $plus . " WHERE id = " . $id; - $setcomment2 = mysql_query($setcomment); - - if ($gettrack3['ip'] == $_SERVER['REMOTE_ADDR']) - { - $settrack = "UPDATE tracking SET rating = \"" . $gettrack3['comment_id'] . "," . $id . "\" WHERE id = " . $gettrack3['id']; - } else { - $settrack = "INSERT INTO tracking (ip,rating) VALUES (\"" . $_SERVER['REMOTE_ADDR'] . "\",\"" . $id . "\")"; - } - $settrack2 = mysql_query($settrack) or die($settrack); - return 1; - } else { - return 0; - } -} - ?> -- cgit 1.4.1