diff options
Diffstat (limited to 'includes/functions.php')
| -rwxr-xr-x | includes/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
| diff --git a/includes/functions.php b/includes/functions.php index 3e9382a..ee19391 100755 --- a/includes/functions.php +++ b/includes/functions.php | |||
| @@ -166,12 +166,12 @@ function recalcPop($id) | |||
| 166 | $popularity += ($getpost3['views']*2); | 166 | $popularity += ($getpost3['views']*2); |
| 167 | $popularity += ($getpost3['rating']*5); | 167 | $popularity += ($getpost3['rating']*5); |
| 168 | 168 | ||
| 169 | $getcomments = "SELECT COUNT(*) FROM comments WHERE page_id = \"updates-" . $id . "\" AND username <> \"Pingback\""; | 169 | $getcomments = "SELECT COUNT(*) FROM comments WHERE page_id = \"updates-" . $id . "\""; |
| 170 | $getcomments2 = mysql_query($getcomments); | 170 | $getcomments2 = mysql_query($getcomments); |
| 171 | $getcomments3 = mysql_fetch_array($getcomments2); | 171 | $getcomments3 = mysql_fetch_array($getcomments2); |
| 172 | $popularity += ($getcomments3[0] * 10); | 172 | $popularity += ($getcomments3[0] * 10); |
| 173 | 173 | ||
| 174 | $getpings = "SELECT COUNT(*) FROM comments WHERE page_id = \"updates-" . $id . "\" AND username = \"Pingback\""; | 174 | $getpings = "SELECT COUNT(*) FROM pingbacks WHERE post_id = " . $id; |
| 175 | $getpings2 = mysql_query($getpings); | 175 | $getpings2 = mysql_query($getpings); |
| 176 | $getpings3 = mysql_fetch_array($getpings2); | 176 | $getpings3 = mysql_fetch_array($getpings2); |
| 177 | $popularity += ($getpings3[0] * 25); | 177 | $popularity += ($getpings3[0] * 25); |
