From 4fe042fe7c77d3c26132bd6fb3ee32f967c215c6 Mon Sep 17 00:00:00 2001 From: Xkeeper Date: Thu, 13 Aug 2015 23:22:52 -0700 Subject: [PATCH] Removing VGG relay code --- newreply.php | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/newreply.php b/newreply.php index fa2fc7a..7ffc38b 100644 --- a/newreply.php +++ b/newreply.php @@ -207,27 +207,6 @@ if($pid) $sql->query("INSERT INTO `posts_text` (`pid`,`text`,`tagval`, `options`) VALUES ('$pid','$message','$tagval', '$options')"); - if (in_array($id, array(3424, 3425, 3426, 3816, 4907)) && !$x_hacks['host']) { - $lastgmpost = $sql -> resultq("SELECT MAX(`id`) FROM `posts` WHERE `user` = '24' AND `thread` = '$id'"); - - if ($id == 3424) { - $inarray = "49, 203, 41, 29"; - } elseif ($id == 3425) { - $inarray = "3, 25, 14, 22"; - } elseif ($id == 3426) { - $inarray = "61, 1, 18, 555"; - } elseif ($id == 3816) { - $inarray = "4, 10, 66, 125"; - } elseif ($id == 4907) { - $inarray = "18, 19, 21, 2"; - } - - $playerposts = $sql -> resultq("SELECT COUNT(DISTINCT `user`) FROM `posts` WHERE `user` IN ($inarray) AND `thread` = '$id' AND `id` > '$lastgmpost'"); - if ($playerposts >= 4) $stick .= " `icon` = 'images/piticon-ok.png',"; - else $stick .= " `icon` = 'images/piticon-wait.png',"; - - } - $sql->query("UPDATE `threads` SET $close $stick `replies` = `replies` + 1, `lastpostdate` = '$currenttime', `lastposter` = '$userid' WHERE `id`='$id'"); $sql->query("UPDATE `forums` SET `numposts` = `numposts` + 1, `lastpostdate` = '$currenttime', `lastpostuser` ='$userid', `lastpostid` = '$pid' WHERE `id`='$forumid'"); @@ -243,12 +222,6 @@ 'pow' => $forum['minpower'], )); - if (in_array($id, array(3426, 4907, 6358)) && !$x_hacks['host'] && false) { - - relay_vgg($id, $userid, $username, $message); - - } - return header("Location: thread.php?pid=$pid#$pid");