Browse Source

Remove CORS header

spaghetti 8 years ago
parent
commit
e291dda404
2 changed files with 6 additions and 8 deletions
  1. 6
    6
      sections/ajax/user.php
  2. 0
    2
      sections/torrents/details.php

+ 6
- 6
sections/ajax/user.php View File

@@ -174,12 +174,12 @@ if (check_paranoia_here(array('uploaded', 'downloaded', 'uploads+', 'requestsfil
174 174
 
175 175
 // Community section
176 176
 if (check_paranoia_here('snatched+')) {
177
-$DB->query("
178
-  SELECT COUNT(x.uid), COUNT(DISTINCT x.fid)
179
-  FROM xbt_snatched AS x
180
-    INNER JOIN torrents AS t ON t.ID = x.fid
181
-  WHERE x.uid = '$UserID'");
182
-list($Snatched, $UniqueSnatched) = $DB->next_record();
177
+  $DB->query("
178
+    SELECT COUNT(x.uid), COUNT(DISTINCT x.fid)
179
+    FROM xbt_snatched AS x
180
+      INNER JOIN torrents AS t ON t.ID = x.fid
181
+    WHERE x.uid = '$UserID'");
182
+  list($Snatched, $UniqueSnatched) = $DB->next_record();
183 183
 }
184 184
 
185 185
 if (check_paranoia_here('torrentcomments+')) {

+ 0
- 2
sections/torrents/details.php View File

@@ -2,8 +2,6 @@
2 2
 function compare($X, $Y) {
3 3
   return($Y['score'] - $X['score']);
4 4
 }
5
-header('Access-Control-Allow-Origin: *');
6
-
7 5
 define('MAX_PERS_COLLAGES', 3); // How many personal collages should be shown by default
8 6
 define('MAX_COLLAGES', 5); // How many normal collages should be shown by default
9 7
 

Loading…
Cancel
Save