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
 
174
 
175
 // Community section
175
 // Community section
176
 if (check_paranoia_here('snatched+')) {
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
 if (check_paranoia_here('torrentcomments+')) {
185
 if (check_paranoia_here('torrentcomments+')) {

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

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

Loading…
Cancel
Save