Browse Source

Empty commit

pjc 5 years ago
parent
commit
f0353de2f3
59 changed files with 923 additions and 808 deletions
  1. 1
    0
      .gitignore
  2. 2
    1
      ajax.php
  3. 2
    1
      artist.php
  4. 2
    1
      better.php
  5. 2
    1
      blog.php
  6. 2
    1
      bookmarks.php
  7. 1
    0
      browse.php
  8. 2
    1
      chat.php
  9. 10
    1
      classes/feed.class.php
  10. 664
    625
      classes/notificationsmanager.class.php
  11. 114
    106
      classes/notificationsmanagerview.class.php
  12. 2
    1
      collage.php
  13. 2
    1
      collages.php
  14. 2
    1
      comments.php
  15. 2
    1
      contest.php
  16. 2
    1
      delete.php
  17. 2
    1
      donate.php
  18. 2
    1
      enable.php
  19. 2
    1
      error.php
  20. 28
    26
      feeds.php
  21. 1
    0
      flush.php
  22. 2
    1
      forums.php
  23. 2
    1
      friends.php
  24. 2
    1
      image.php
  25. 2
    1
      inbox.php
  26. 2
    1
      index.php
  27. 2
    1
      irc.php
  28. 2
    1
      locked.php
  29. 1
    0
      log.php
  30. 2
    1
      login.php
  31. 2
    1
      logout.php
  32. 3
    2
      manifest.php
  33. 3
    1
      peerupdate.php
  34. 2
    1
      questions.php
  35. 2
    1
      register.php
  36. 2
    1
      reports.php
  37. 1
    0
      reportsv2.php
  38. 2
    1
      requests.php
  39. 2
    1
      robots.txt
  40. 2
    1
      rules.php
  41. 3
    1
      schedule.php
  42. 1
    0
      signup.php
  43. 2
    1
      sitehistory.php
  44. 2
    1
      slaves.php
  45. 2
    1
      snatchlist.php
  46. 2
    1
      staff.php
  47. 2
    1
      staffblog.php
  48. 2
    1
      staffpm.php
  49. 2
    1
      stats.php
  50. 2
    1
      store.php
  51. 2
    1
      testing.php
  52. 3
    2
      tools.php
  53. 2
    1
      top10.php
  54. 2
    1
      torrents.php
  55. 2
    1
      upload.php
  56. 2
    1
      user.php
  57. 2
    1
      userhistory.php
  58. 1
    0
      whitelist.php
  59. 2
    1
      wiki.php

+ 1
- 0
.gitignore View File

1
 _packages/**/.git/**
1
 _packages/**/.git/**
2
 classes/config.php
2
 classes/config.php
3
 .DS_Store
3
 .DS_Store
4
+*.sw*

+ 2
- 1
ajax.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 2
- 1
artist.php View File

1
 <?php
1
 <?php
2
+
2
 define('ERROR_EXCEPTION', true);
3
 define('ERROR_EXCEPTION', true);
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

+ 2
- 1
better.php View File

1
 <?php
1
 <?php
2
+
2
 define('ERROR_EXCEPTION', true);
3
 define('ERROR_EXCEPTION', true);
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

+ 2
- 1
blog.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 2
- 1
bookmarks.php View File

1
 <?php
1
 <?php
2
+
2
 define('ERROR_EXCEPTION', true);
3
 define('ERROR_EXCEPTION', true);
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

+ 1
- 0
browse.php View File

1
 <?php
1
 <?php
2
+
2
 header('Location: torrents.php');
3
 header('Location: torrents.php');

+ 2
- 1
chat.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 10
- 1
classes/feed.class.php View File

1
 <?php
1
 <?php
2
+
2
 class Feed
3
 class Feed
3
 {
4
 {
4
     public function open_feed()
5
     public function open_feed()
25
     }
26
     }
26
 
27
 
27
     public function item($Title, $Description, $Page, $Creator, $Comments = '', $Category = '', $Date = '')
28
     public function item($Title, $Description, $Page, $Creator, $Comments = '', $Category = '', $Date = '')
28
-    { // Escape with CDATA, otherwise the feed breaks.
29
+    {
30
+        // Escape with CDATA, otherwise the feed breaks.
29
         if ($Date === '') {
31
         if ($Date === '') {
30
             $Date = date('r');
32
             $Date = date('r');
31
         } else {
33
         } else {
32
             $Date = date('r', strtotime($Date));
34
             $Date = date('r', strtotime($Date));
33
         }
35
         }
36
+
34
         $Site = site_url();
37
         $Site = site_url();
35
         $Item = "\t\t<item>\n";
38
         $Item = "\t\t<item>\n";
36
         $Item .= "\t\t\t<title><![CDATA[$Title]]></title>\n";
39
         $Item .= "\t\t\t<title><![CDATA[$Title]]></title>\n";
38
         $Item .= "\t\t\t<pubDate>$Date</pubDate>\n";
41
         $Item .= "\t\t\t<pubDate>$Date</pubDate>\n";
39
         $Item .= "\t\t\t<link>$Site$Page</link>\n";
42
         $Item .= "\t\t\t<link>$Site$Page</link>\n";
40
         $Item .= "\t\t\t<guid>$Site$Page</guid>\n";
43
         $Item .= "\t\t\t<guid>$Site$Page</guid>\n";
44
+
41
         if ($Comments !== '') {
45
         if ($Comments !== '') {
42
             $Item .= "\t\t\t<comments>$Site$Comments</comments>\n";
46
             $Item .= "\t\t\t<comments>$Site$Comments</comments>\n";
43
         }
47
         }
48
+
44
         if ($Category !== '') {
49
         if ($Category !== '') {
45
             $Item .= "\t\t\t<category><![CDATA[$Category]]></category>\n";
50
             $Item .= "\t\t\t<category><![CDATA[$Category]]></category>\n";
46
         }
51
         }
52
+
47
         $Item .= "\t\t\t<dc:creator>$Creator</dc:creator>\n\t\t</item>\n";
53
         $Item .= "\t\t\t<dc:creator>$Creator</dc:creator>\n\t\t</item>\n";
48
         return $Item;
54
         return $Item;
49
     }
55
     }
52
     {
58
     {
53
         global $Cache;
59
         global $Cache;
54
         $Entries = $Cache->get_value($CacheKey);
60
         $Entries = $Cache->get_value($CacheKey);
61
+
55
         if (!$Entries) {
62
         if (!$Entries) {
56
             $Entries = [];
63
             $Entries = [];
57
         } else {
64
         } else {
65
     {
72
     {
66
         global $Cache;
73
         global $Cache;
67
         $Entries = $Cache->get_value($CacheKey, true);
74
         $Entries = $Cache->get_value($CacheKey, true);
75
+
68
         if (!$Entries) {
76
         if (!$Entries) {
69
             $Entries = [];
77
             $Entries = [];
70
         } else {
78
         } else {
72
                 array_pop($Entries);
80
                 array_pop($Entries);
73
             }
81
             }
74
         }
82
         }
83
+        
75
         array_unshift($Entries, $Item);
84
         array_unshift($Entries, $Item);
76
         $Cache->cache_value($CacheKey, $Entries, 0); // inf cache
85
         $Cache->cache_value($CacheKey, $Entries, 0); // inf cache
77
     }
86
     }

+ 664
- 625
classes/notificationsmanager.class.php
File diff suppressed because it is too large
View File


+ 114
- 106
classes/notificationsmanagerview.class.php View File

1
-<?
1
+<?php
2
 
2
 
3
-class NotificationsManagerView {
4
-  private static $Settings;
3
+class NotificationsManagerView
4
+{
5
+    private static $Settings;
5
 
6
 
6
-  public static function load_js() {
7
-    $JSIncludes = array(
8
-      'noty/noty.js',
9
-      'noty/layouts/bottomRight.js',
10
-      'noty/themes/default.js',
11
-      'user_notifications.js');
12
-    foreach ($JSIncludes as $JSInclude) {
13
-      $Path = STATIC_SERVER."functions/$JSInclude";
14
-?>
15
-  <script src="<?=$Path?>?v=<?=filemtime(SERVER_ROOT."/$Path")?>" type="text/javascript"></script>
16
-<?
17
-    }
18
-  }
19
-
20
-  public static function render_settings($Settings) {
21
-    self::$Settings = $Settings;
22
-?>
23
-    <tr>
24
-      <td class="label">
25
-        <strong>News announcements</strong>
26
-      </td>
27
-      <td>
28
-<?        self::render_checkbox(NotificationsManager::NEWS); ?>
29
-      </td>
30
-    </tr>
31
-    <tr>
32
-      <td class="label">
33
-        <strong>Blog announcements</strong>
34
-      </td>
35
-      <td>
36
-<?        self::render_checkbox(NotificationsManager::BLOG); ?>
37
-      </td>
38
-    </tr>
39
-    <tr>
40
-      <td class="label">
41
-        <strong>Inbox messages</strong>
42
-      </td>
43
-      <td>
44
-<?        self::render_checkbox(NotificationsManager::INBOX, true); ?>
45
-      </td>
46
-    </tr>
47
-    <tr>
48
-      <td class="label tooltip" title="Enabling this will give you a notification when you receive a new private message from a member of the <?=SITE_NAME?> staff.">
49
-        <strong>Staff messages</strong>
50
-      </td>
51
-      <td>
52
-<?        self::render_checkbox(NotificationsManager::STAFFPM, false, false); ?>
53
-      </td>
54
-    </tr>
55
-    <tr>
56
-      <td class="label">
57
-        <strong>Thread subscriptions</strong>
58
-      </td>
59
-      <td>
60
-<?        self::render_checkbox(NotificationsManager::SUBSCRIPTIONS, false, false); ?>
61
-      </td>
62
-    </tr>
63
-    <tr>
64
-      <td class="label tooltip" title="Enabling this will give you a notification whenever someone quotes you in the forums.">
65
-        <strong>Quote notifications</strong>
66
-      </td>
67
-      <td>
68
-<?        self::render_checkbox(NotificationsManager::QUOTES); ?>
69
-      </td>
70
-    </tr>
71
-<?    if (check_perms('site_torrents_notify')) { ?>
72
-      <tr>
73
-        <td class="label tooltip" title="Enabling this will give you a notification when the torrent notification filters you have established are triggered.">
74
-          <strong>Torrent notifications</strong>
75
-        </td>
76
-        <td>
77
-<?          self::render_checkbox(NotificationsManager::TORRENTS, true, false); ?>
78
-        </td>
79
-      </tr>
80
-<?    } ?>
7
+    public static function load_js()
8
+    {
9
+        $JSIncludes = array(
10
+            'noty/noty.js',
11
+            'noty/layouts/bottomRight.js',
12
+            'noty/themes/default.js',
13
+            'user_notifications.js');
81
 
14
 
82
-    <tr>
83
-      <td class="label tooltip" title="Enabling this will give you a notification when a torrent is added to a collage you are subscribed to.">
84
-        <strong>Collage subscriptions</strong>
85
-      </td>
86
-      <td>
87
-<?        self::render_checkbox(NotificationsManager::COLLAGES. false, false); ?>
88
-      </td>
89
-    </tr>
90
-<?  }
15
+        foreach ($JSIncludes as $JSInclude) {
16
+            $Path = STATIC_SERVER."functions/$JSInclude"; ?>
17
+<script
18
+  src="<?=$Path?>?v=<?=filemtime(SERVER_ROOT."/$Path")?>"
19
+  type="text/javascript"></script>
20
+<?php
21
+        }
22
+    }
91
 
23
 
92
-  private static function render_checkbox($Name, $Traditional = false) {
93
-    $Checked = self::$Settings[$Name];
94
-    $PopupChecked = $Checked == NotificationsManager::OPT_POPUP || !isset($Checked) ? ' checked="checked"' : '';
95
-    $TraditionalChecked = $Checked == NotificationsManager::OPT_TRADITIONAL ? ' checked="checked"' : '';
24
+    public static function render_settings($Settings)
25
+    {
26
+        self::$Settings = $Settings; ?>
27
+<tr>
28
+  <td class="label">
29
+    <strong>News Announcements</strong>
30
+  </td>
31
+  <td>
32
+    <?php self::render_checkbox(NotificationsManager::NEWS); ?>
33
+  </td>
34
+</tr>
35
+<tr>
36
+  <td class="label">
37
+    <strong>Blog Announcements</strong>
38
+  </td>
39
+  <td>
40
+    <?php self::render_checkbox(NotificationsManager::BLOG); ?>
41
+  </td>
42
+</tr>
43
+<tr>
44
+  <td class="label">
45
+    <strong>Inbox Messages</strong>
46
+  </td>
47
+  <td>
48
+    <?php self::render_checkbox(NotificationsManager::INBOX, true); ?>
49
+  </td>
50
+</tr>
51
+<tr>
52
+  <td class="label tooltip"
53
+    title="Notify when you receive a new private message from <?=SITE_NAME?> staff">
54
+    <strong>Staff Messages</strong>
55
+  </td>
56
+  <td>
57
+    <?php self::render_checkbox(NotificationsManager::STAFFPM, false, false); ?>
58
+  </td>
59
+</tr>
60
+<tr>
61
+  <td class="label">
62
+    <strong>Thread Subscriptions</strong>
63
+  </td>
64
+  <td>
65
+    <?php self::render_checkbox(NotificationsManager::SUBSCRIPTIONS, false, false); ?>
66
+  </td>
67
+</tr>
68
+<tr>
69
+  <td class="label tooltip" title="Notify whenever someone quotes you in the forums">
70
+    <strong>Quote Notifications</strong>
71
+  </td>
72
+  <td>
73
+    <?php self::render_checkbox(NotificationsManager::QUOTES); ?>
74
+  </td>
75
+</tr>
76
+<?php if (check_perms('site_torrents_notify')) { ?>
77
+<tr>
78
+  <td class="label tooltip" title="Notify when your torrent notification filters are triggered">
79
+    <strong>Torrent Notifications</strong>
80
+  </td>
81
+  <td>
82
+    <?php self::render_checkbox(NotificationsManager::TORRENTS, true, false); ?>
83
+  </td>
84
+</tr>
85
+<?php } ?>
96
 
86
 
97
-?>
98
-    <label>
99
-      <input type="checkbox" name="notifications_<?=$Name?>_popup" id="notifications_<?=$Name?>_popup"<?=$PopupChecked?> />
100
-      Pop-up
101
-    </label>
102
-<?    if ($Traditional) { ?>
103
-    <label>
104
-      <input type="checkbox" name="notifications_<?=$Name?>_traditional" id="notifications_<?=$Name?>_traditional"<?=$TraditionalChecked?> />
105
-      Traditional
106
-    </label>
107
-<?    }
108
-  }
87
+<tr>
88
+  <td class="label tooltip" title="Notify when a torrent is added to a subscribed collage">
89
+    <strong>Collage Subscriptions</strong>
90
+  </td>
91
+  <td>
92
+    <?php self::render_checkbox(NotificationsManager::COLLAGES. false, false); ?>
93
+  </td>
94
+</tr>
95
+<?php
96
+    }
109
 
97
 
110
-  public static function format_traditional($Contents) {
111
-    return "<a href=\"$Contents[url]\">$Contents[message]</a>";
112
-  }
98
+    private static function render_checkbox($Name, $Traditional = false)
99
+    {
100
+        $Checked = self::$Settings[$Name];
101
+        $PopupChecked = $Checked === NotificationsManager::OPT_POPUP || !isset($Checked) ? ' checked="checked"' : '';
102
+        $TraditionalChecked = $Checked === NotificationsManager::OPT_TRADITIONAL ? ' checked="checked"' : ''; ?>
103
+<label>
104
+  <input type="checkbox" name="notifications_<?=$Name?>_popup"
105
+    id="notifications_<?=$Name?>_popup" <?=$PopupChecked?> />
106
+  Pop-up
107
+</label>
108
+<?php if ($Traditional) { ?>
109
+<label>
110
+  <input type="checkbox" name="notifications_<?=$Name?>_traditional"
111
+    id="notifications_<?=$Name?>_traditional" <?=$TraditionalChecked?> />
112
+  Traditional
113
+</label>
114
+<?php
115
+      }
116
+    }
113
 
117
 
118
+    public static function format_traditional($Contents)
119
+    {
120
+        return "<a href=\"$Contents[url]\">$Contents[message]</a>";
121
+    }
114
 }
122
 }

+ 2
- 1
collage.php View File

1
 <?php
1
 <?php
2
+
2
 $_SERVER['SCRIPT_FILENAME'] = 'collages.php'; // CLI fix
3
 $_SERVER['SCRIPT_FILENAME'] = 'collages.php'; // CLI fix
3
 define('ERROR_EXCEPTION', true);
4
 define('ERROR_EXCEPTION', true);
4
-require('classes/script_start.php');
5
+require 'classes/script_start.php';

+ 2
- 1
collages.php View File

1
 <?php
1
 <?php
2
+
2
 define('ERROR_EXCEPTION', true);
3
 define('ERROR_EXCEPTION', true);
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

+ 2
- 1
comments.php View File

1
 <?php
1
 <?php
2
+
2
 define('ERROR_EXCEPTION', true);
3
 define('ERROR_EXCEPTION', true);
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

+ 2
- 1
contest.php View File

1
 <?php
1
 <?php
2
+
2
 define('ERROR_EXCEPTION', true);
3
 define('ERROR_EXCEPTION', true);
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

+ 2
- 1
delete.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 2
- 1
donate.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 2
- 1
enable.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 2
- 1
error.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 28
- 26
feeds.php View File

1
 <?php
1
 <?php
2
+
2
 /*-- Feed Start Class ----------------------------------*/
3
 /*-- Feed Start Class ----------------------------------*/
3
 /*------------------------------------------------------*/
4
 /*------------------------------------------------------*/
4
 /* Simplified version of script_start, used for the     */
5
 /* Simplified version of script_start, used for the     */
11
     unset($_GET['clearcache']);
12
     unset($_GET['clearcache']);
12
 }
13
 }
13
 
14
 
14
-require_once('classes/config.php'); // The config contains all site-wide configuration information as well as memcached rules
15
+require_once 'classes/config.php'; // The config contains all site-wide configuration information as well as memcached rules
16
+require_once SERVER_ROOT.'/classes/misc.class.php'; // Require the misc class
17
+require_once SERVER_ROOT.'/classes/cache.class.php'; // Require the caching class
18
+require_once SERVER_ROOT.'/classes/feed.class.php'; // Require the feeds class
15
 
19
 
16
-require_once(SERVER_ROOT.'/classes/misc.class.php'); // Require the misc class
17
-require_once(SERVER_ROOT.'/classes/cache.class.php'); // Require the caching class
18
-require_once(SERVER_ROOT.'/classes/feed.class.php'); // Require the feeds class
19
 $Cache = new Cache(MEMCACHED_SERVERS); // Load the caching class
20
 $Cache = new Cache(MEMCACHED_SERVERS); // Load the caching class
20
 $Feed = new Feed; // Load the time class
21
 $Feed = new Feed; // Load the time class
21
 
22
 
29
     if ($Str < 0) {
30
     if ($Str < 0) {
30
         return false;
31
         return false;
31
     }
32
     }
33
+
32
     // We're converting input to an int, then string, and comparing to the original
34
     // We're converting input to an int, then string, and comparing to the original
33
     return ($Str === strval(intval($Str)));
35
     return ($Str === strval(intval($Str)));
34
 }
36
 }
41
         $Str = preg_replace('/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,5};)/m', '&amp;', $Str);
43
         $Str = preg_replace('/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,5};)/m', '&amp;', $Str);
42
 
44
 
43
         $Replace = array(
45
         $Replace = array(
44
-      "'",'"','<','>',
45
-      '&#128;','&#130;','&#131;','&#132;','&#133;','&#134;','&#135;','&#136;',
46
-      '&#137;','&#138;','&#139;','&#140;','&#142;','&#145;','&#146;','&#147;',
47
-      '&#148;','&#149;','&#150;','&#151;','&#152;','&#153;','&#154;','&#155;',
48
-      '&#156;','&#158;','&#159;'
49
-    );
46
+            "'",'"','<','>',
47
+            '&#128;','&#130;','&#131;','&#132;','&#133;','&#134;','&#135;','&#136;',
48
+            '&#137;','&#138;','&#139;','&#140;','&#142;','&#145;','&#146;','&#147;',
49
+            '&#148;','&#149;','&#150;','&#151;','&#152;','&#153;','&#154;','&#155;',
50
+            '&#156;','&#158;','&#159;'
51
+        );
50
 
52
 
51
         $With = array(
53
         $With = array(
52
-      '&#39;','&quot;','&lt;','&gt;',
53
-      '&#8364;','&#8218;','&#402;','&#8222;','&#8230;','&#8224;','&#8225;','&#710;',
54
-      '&#8240;','&#352;','&#8249;','&#338;','&#381;','&#8216;','&#8217;','&#8220;',
55
-      '&#8221;','&#8226;','&#8211;','&#8212;','&#732;','&#8482;','&#353;','&#8250;',
56
-      '&#339;','&#382;','&#376;'
57
-    );
54
+            '&#39;','&quot;','&lt;','&gt;',
55
+            '&#8364;','&#8218;','&#402;','&#8222;','&#8230;','&#8224;','&#8225;','&#710;',
56
+            '&#8240;','&#352;','&#8249;','&#338;','&#381;','&#8216;','&#8217;','&#8220;',
57
+            '&#8221;','&#8226;','&#8211;','&#8212;','&#732;','&#8482;','&#353;','&#8250;',
58
+            '&#339;','&#382;','&#376;'
59
+        );
58
 
60
 
59
         $Str = str_replace($Replace, $With, $Str);
61
         $Str = str_replace($Replace, $With, $Str);
60
     }
62
     }
85
 {
87
 {
86
     return preg_match(
88
     return preg_match(
87
         '%^(?:
89
         '%^(?:
88
-    [\x09\x0A\x0D\x20-\x7E]             // ASCII
89
-    | [\xC2-\xDF][\x80-\xBF]            // non-overlong 2-byte
90
-    | \xE0[\xA0-\xBF][\x80-\xBF]        // excluding overlongs
91
-    | [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} // straight 3-byte
92
-    | \xED[\x80-\x9F][\x80-\xBF]        // excluding surrogates
93
-    | \xF0[\x90-\xBF][\x80-\xBF]{2}     // planes 1-3
94
-    | [\xF1-\xF3][\x80-\xBF]{3}         // planes 4-15
95
-    | \xF4[\x80-\x8F][\x80-\xBF]{2}     // plane 16
96
-    )*$%xs',
90
+        [\x09\x0A\x0D\x20-\x7E]             // ASCII
91
+        | [\xC2-\xDF][\x80-\xBF]            // Non-overlong 2-byte
92
+        | \xE0[\xA0-\xBF][\x80-\xBF]        // Excluding overlongs
93
+        | [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} // Straight 3-byte
94
+        | \xED[\x80-\x9F][\x80-\xBF]        // Excluding surrogates
95
+        | \xF0[\x90-\xBF][\x80-\xBF]{2}     // Planes 1-3
96
+        | [\xF1-\xF3][\x80-\xBF]{3}         // Planes 4-15
97
+        | \xF4[\x80-\x8F][\x80-\xBF]{2}     // Plane 16
98
+        )*$%xs',
97
         $Str
99
         $Str
98
     );
100
     );
99
 }
101
 }
121
 header('Expires: '.date('D, d M Y H:i:s', time() + (2 * 60 * 60)).' GMT');
123
 header('Expires: '.date('D, d M Y H:i:s', time() + (2 * 60 * 60)).' GMT');
122
 header('Last-Modified: '.date('D, d M Y H:i:s').' GMT');
124
 header('Last-Modified: '.date('D, d M Y H:i:s').' GMT');
123
 
125
 
124
-require(SERVER_ROOT.'/sections/feeds/index.php');
126
+require SERVER_ROOT.'/sections/feeds/index.php';

+ 1
- 0
flush.php View File

1
 <?php
1
 <?php
2
+
2
 ob_start();
3
 ob_start();
3
 
4
 
4
 echo '0';
5
 echo '0';

+ 2
- 1
forums.php View File

1
 <?php
1
 <?php
2
+
2
 define('ERROR_EXCEPTION', true);
3
 define('ERROR_EXCEPTION', true);
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

+ 2
- 1
friends.php View File

1
 <?php
1
 <?php
2
+
2
 define('ERROR_EXCEPTION', true);
3
 define('ERROR_EXCEPTION', true);
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

+ 2
- 1
image.php View File

1
 <?php
1
 <?php
2
+
2
 // Functions and headers needed by the image proxy
3
 // Functions and headers needed by the image proxy
3
 error_reporting(E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR);
4
 error_reporting(E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR);
4
 
5
 
105
 }
106
 }
106
 
107
 
107
 define('SKIP_NO_CACHE_HEADERS', 1);
108
 define('SKIP_NO_CACHE_HEADERS', 1);
108
-require('classes/script_start.php'); // script_start contains all we need and includes sections/image/index.php
109
+require 'classes/script_start.php'; // script_start.php contains all we need and includes sections/image/index.php

+ 2
- 1
inbox.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 2
- 1
index.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 2
- 1
irc.php View File

1
 <?php
1
 <?php
2
+
2
 $_SERVER['SCRIPT_FILENAME'] = 'irc.php'; // CLI fix
3
 $_SERVER['SCRIPT_FILENAME'] = 'irc.php'; // CLI fix
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

+ 2
- 1
locked.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 1
- 0
log.php View File

1
 <?php
1
 <?php
2
+
2
 require 'classes/script_start.php';
3
 require 'classes/script_start.php';

+ 2
- 1
login.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 2
- 1
logout.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 3
- 2
manifest.php View File

1
 <?php
1
 <?php
2
+
2
 require 'classes/config.php'; ?>
3
 require 'classes/config.php'; ?>
3
 
4
 
4
 {
5
 {
5
-  "name": "<?= SITE_NAME ?>",
6
-  "short_name": "<?= SITE_NAME ?>",
6
+  "name": "<?=SITE_NAME?>",
7
+  "short_name": "<?=SITE_NAME?>",
7
   "start_url": "index.php",
8
   "start_url": "index.php",
8
   "display": "standalone",
9
   "display": "standalone",
9
   "background_color": "#FCC2E6",
10
   "background_color": "#FCC2E6",

+ 3
- 1
peerupdate.php View File

1
 <?php
1
 <?php
2
+
2
 define('MEMORY_EXCEPTION', true);
3
 define('MEMORY_EXCEPTION', true);
3
 define('TIME_EXCEPTION', true);
4
 define('TIME_EXCEPTION', true);
4
 define('ERROR_EXCEPTION', true);
5
 define('ERROR_EXCEPTION', true);
6
+
5
 $_SERVER['SCRIPT_FILENAME'] = 'peerupdate.php';
7
 $_SERVER['SCRIPT_FILENAME'] = 'peerupdate.php';
6
-require('classes/script_start.php');
8
+require 'classes/script_start.php';

+ 2
- 1
questions.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 2
- 1
register.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 2
- 1
reports.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 1
- 0
reportsv2.php View File

1
 <?php
1
 <?php
2
+
2
 require 'classes/script_start.php';
3
 require 'classes/script_start.php';

+ 2
- 1
requests.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 2
- 1
robots.txt View File

1
 User-agent: *
1
 User-agent: *
2
+Disallow: /
3
+
2
 Allow: /index.php
4
 Allow: /index.php
3
 Allow: /login.php
5
 Allow: /login.php
4
 Allow: /register.php
6
 Allow: /register.php
5
-Disallow: /

+ 2
- 1
rules.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 3
- 1
schedule.php View File

1
 <?php
1
 <?php
2
+
2
 define('MEMORY_EXCEPTION', true);
3
 define('MEMORY_EXCEPTION', true);
3
 define('TIME_EXCEPTION', true);
4
 define('TIME_EXCEPTION', true);
4
 define('ERROR_EXCEPTION', true);
5
 define('ERROR_EXCEPTION', true);
6
+
5
 $_SERVER['SCRIPT_FILENAME'] = 'schedule.php'; // CLI fix
7
 $_SERVER['SCRIPT_FILENAME'] = 'schedule.php'; // CLI fix
6
-require('classes/script_start.php');
8
+require 'classes/script_start.php';

+ 1
- 0
signup.php View File

1
 <?php
1
 <?php
2
+
2
 header('Location: register.php');
3
 header('Location: register.php');

+ 2
- 1
sitehistory.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 2
- 1
slaves.php View File

1
 <?php
1
 <?php
2
+
2
 define('ERROR_EXCEPTION', true);
3
 define('ERROR_EXCEPTION', true);
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

+ 2
- 1
snatchlist.php View File

1
 <?php
1
 <?php
2
+
2
 define('ERROR_EXCEPTION', true);
3
 define('ERROR_EXCEPTION', true);
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

+ 2
- 1
staff.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 2
- 1
staffblog.php View File

1
 <?php
1
 <?php
2
+
2
 define('ERROR_EXCEPTION', true);
3
 define('ERROR_EXCEPTION', true);
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

+ 2
- 1
staffpm.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 2
- 1
stats.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 2
- 1
store.php View File

1
 <?php
1
 <?php
2
+
2
 define('ERROR_EXCEPTION', true);
3
 define('ERROR_EXCEPTION', true);
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

+ 2
- 1
testing.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 3
- 2
tools.php View File

1
-<?
1
+<?php
2
+
2
 $_SERVER['SCRIPT_FILENAME'] = 'tools.php'; // CLI fix
3
 $_SERVER['SCRIPT_FILENAME'] = 'tools.php'; // CLI fix
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

+ 2
- 1
top10.php View File

1
 <?php
1
 <?php
2
-require('classes/script_start.php');
2
+
3
+require 'classes/script_start.php';

+ 2
- 1
torrents.php View File

1
 <?php
1
 <?php
2
+
2
 define('ERROR_EXCEPTION', true);
3
 define('ERROR_EXCEPTION', true);
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

+ 2
- 1
upload.php View File

1
 <?php
1
 <?php
2
+
2
 define('ERROR_EXCEPTION', true);
3
 define('ERROR_EXCEPTION', true);
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

+ 2
- 1
user.php View File

1
 <?php
1
 <?php
2
+
2
 define('ERROR_EXCEPTION', true);
3
 define('ERROR_EXCEPTION', true);
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

+ 2
- 1
userhistory.php View File

1
 <?php
1
 <?php
2
+
2
 define('ERROR_EXCEPTION', true);
3
 define('ERROR_EXCEPTION', true);
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

+ 1
- 0
whitelist.php View File

1
 <?php
1
 <?php
2
+
2
 header('Location: rules.php?p=clients');
3
 header('Location: rules.php?p=clients');

+ 2
- 1
wiki.php View File

1
 <?php
1
 <?php
2
+
2
 define('ERROR_EXCEPTION', true);
3
 define('ERROR_EXCEPTION', true);
3
-require('classes/script_start.php');
4
+require 'classes/script_start.php';

Loading…
Cancel
Save