Browse Source

Whitespace fixes to bring inline with private repo

spaghetti 8 years ago
parent
commit
7fa01ea63e

+ 1
- 1
classes/artists.class.php View File

@@ -5,7 +5,7 @@ class Artists {
5 5
    *
6 6
    * @param array $GroupIDs
7 7
    * @return an array of the following form:
8
-   *   GroupID => {
8
+   *  GroupID => {
9 9
    *    [ArtistType] => {
10 10
    *      id, name, aliasid
11 11
    *    }

+ 4
- 4
classes/debug.class.php View File

@@ -460,7 +460,7 @@ class DEBUG {
460 460
     <tr>
461 461
       <td align="left" class="debug_data debug_constants_data">
462 462
         <pre>
463
-<?=          display_str(print_r($Constants, true))?>
463
+<?=         display_str(print_r($Constants, true))?>
464 464
         </pre>
465 465
       </td>
466 466
     </tr>
@@ -518,7 +518,7 @@ class DEBUG {
518 518
     </tr>
519 519
   </table>
520 520
   <table id="debug_cache" class="debug_table hidden" width="100%">
521
-<?     foreach ($CacheKeys as $Key) { ?>
521
+<?    foreach ($CacheKeys as $Key) { ?>
522 522
     <tr>
523 523
       <td class="label nobr debug_info debug_cache_key">
524 524
         <a href="#" onclick="$('#debug_cache_<?=$Key?>').gtoggle(); return false;"><?=display_str($Key)?></a>
@@ -526,7 +526,7 @@ class DEBUG {
526 526
       </td>
527 527
       <td align="left" class="debug_data debug_cache_data">
528 528
         <pre id="debug_cache_<?=$Key?>" class="hidden">
529
-<?=          display_str(print_r(G::$Cache->get_value($Key, true), true))?>
529
+<?=         display_str(print_r(G::$Cache->get_value($Key, true), true))?>
530 530
         </pre>
531 531
       </td>
532 532
     </tr>
@@ -664,7 +664,7 @@ class DEBUG {
664 664
       </td>
665 665
       <td class="debug_data debug_loggedvars_data" align="left">
666 666
         <pre id="debug_loggedvars_<?=$ID?>" class="hidden">
667
-<?=          display_str(print_r($Data['data'], true))?>
667
+<?=         display_str(print_r($Data['data'], true))?>
668 668
         </pre>
669 669
       </td>
670 670
     </tr>

+ 8
- 8
classes/format.class.php View File

@@ -21,16 +21,16 @@ class Format {
21 21
     'seeding'  => 'tl_seeding',
22 22
     'leeching' => 'tl_leeching',
23 23
 
24
-    'freeleech'      => 'tl_free',
25
-    'neutral leech'    => 'tl_free tl_neutral',
26
-    'personal freeleech'=> 'tl_free tl_personal',
24
+    'freeleech'          => 'tl_free',
25
+    'neutral leech'      => 'tl_free tl_neutral',
26
+    'personal freeleech' => 'tl_free tl_personal',
27 27
 
28
-    'reported'    => 'tl_reported',
29
-    'bad tags'    => 'tl_reported tl_bad_tags',
30
-    'bad folders'  => 'tl_reported tl_bad_folders',
31
-    'bad file names'=> 'tl_reported tl_bad_file_names',
28
+    'reported'       => 'tl_reported',
29
+    'bad tags'       => 'tl_reported tl_bad_tags',
30
+    'bad folders'    => 'tl_reported tl_bad_folders',
31
+    'bad file names' => 'tl_reported tl_bad_file_names',
32 32
 
33
-    'uncensored'  => 'tl_notice'
33
+    'uncensored' => 'tl_notice'
34 34
   );
35 35
 
36 36
   /**

+ 1
- 1
classes/invite_tree.class.php View File

@@ -236,7 +236,7 @@ class INVITE_TREE {
236 236
     }
237 237
 ?>
238 238
       <br />
239
-<?=      $Tree?>
239
+<?=     $Tree?>
240 240
     </div>
241 241
 <?
242 242
     G::$DB->set_query_id($QueryID);

+ 1
- 1
classes/notificationsmanagerview.class.php View File

@@ -103,7 +103,7 @@ class NotificationsManagerView {
103 103
 <?        self::render_checkbox(NotificationsManager::QUOTES); ?>
104 104
       </td>
105 105
     </tr>
106
-<?     if (check_perms('site_torrents_notify')) { ?>
106
+<?    if (check_perms('site_torrents_notify')) { ?>
107 107
       <tr>
108 108
         <td class="label tooltip" title="Enabling this will give you a notification when the torrent notification filters you have established are triggered.">
109 109
           <strong>Torrent notifications</strong>

+ 1
- 1
classes/permissions_form.php View File

@@ -4,7 +4,7 @@
4 4
  ************ Permissions form ********************** user.php and tools.php ****
5 5
  ********************************************************************************
6 6
  ** This function is used to create both the class permissions form, and the   **
7
- ** user custom permissions form.                        **
7
+ ** user custom permissions form.                                              **
8 8
  ********************************************************************************/
9 9
 
10 10
 $PermissionsArray = array(

+ 74
- 74
classes/text.class.php View File

@@ -13,112 +13,112 @@ class Text {
13 13
    */
14 14
   private static $Smileys = array(
15 15
     ':angry:'      => 'angry.gif',
16
-    ':-D'        => 'biggrin.gif',
17
-    ':D'        => 'biggrin.gif',
18
-    ':|'        => 'blank.gif',
19
-    ':-|'        => 'blank.gif',
16
+    ':-D'          => 'biggrin.gif',
17
+    ':D'           => 'biggrin.gif',
18
+    ':|'           => 'blank.gif',
19
+    ':-|'          => 'blank.gif',
20 20
     ':blush:'      => 'blush.gif',
21
-    ':cool:'      => 'cool.gif',
21
+    ':cool:'       => 'cool.gif',
22 22
     ':&#39;('      => 'crying.gif',
23
-    ':crying:'      => 'crying.gif',
24
-    '&gt;.&gt;'      => 'eyesright.gif',
23
+    ':crying:'     => 'crying.gif',
24
+    '&gt;.&gt;'    => 'eyesright.gif',
25 25
     ':frown:'      => 'frown.gif',
26 26
     '&lt;3'        => 'heart.gif',
27
-    ':unsure:'      => 'hmm.gif',
28
-    //':\\'        => 'hmm.gif',
29
-    ':whatlove:'    => 'ilu.gif',
27
+    ':unsure:'     => 'hmm.gif',
28
+  //':\\'          => 'hmm.gif',
29
+    ':whatlove:'   => 'ilu.gif',
30 30
     ':lol:'        => 'laughing.gif',
31
-    ':loveflac:'    => 'loveflac.gif',
32
-    ':flaclove:'    => 'loveflac.gif',
31
+    ':loveflac:'   => 'loveflac.gif',
32
+    ':flaclove:'   => 'loveflac.gif',
33 33
     ':ninja:'      => 'ninja.gif',
34
-    ':no:'        => 'no.gif',
34
+    ':no:'         => 'no.gif',
35 35
     ':nod:'        => 'nod.gif',
36
-    ':ohno:'      => 'ohnoes.gif',
37
-    ':ohnoes:'      => 'ohnoes.gif',
36
+    ':ohno:'       => 'ohnoes.gif',
37
+    ':ohnoes:'     => 'ohnoes.gif',
38 38
     ':omg:'        => 'omg.gif',
39
-    ':o'        => 'ohshit.gif',
40
-    ':O'        => 'ohshit.gif',
41
-    ':paddle:'      => 'paddle.gif',
42
-    ':('        => 'sad.gif',
43
-    ':-('        => 'sad.gif',
44
-    ':shifty:'      => 'shifty.gif',
45
-    ':sick:'      => 'sick.gif',
46
-    ':)'        => 'smile.gif',
47
-    ':-)'        => 'smile.gif',
39
+    ':o'           => 'ohshit.gif',
40
+    ':O'           => 'ohshit.gif',
41
+    ':paddle:'     => 'paddle.gif',
42
+    ':('           => 'sad.gif',
43
+    ':-('          => 'sad.gif',
44
+    ':shifty:'     => 'shifty.gif',
45
+    ':sick:'       => 'sick.gif',
46
+    ':)'           => 'smile.gif',
47
+    ':-)'          => 'smile.gif',
48 48
     ':sorry:'      => 'sorry.gif',
49
-    ':thanks:'      => 'thanks.gif',
50
-    ':P'        => 'tongue.gif',
51
-    ':p'        => 'tongue.gif',
52
-    ':-P'        => 'tongue.gif',
53
-    ':-p'        => 'tongue.gif',
54
-    ':wave:'      => 'wave.gif',
55
-    ';-)'        => 'wink.gif',
56
-    ':wink:'      => 'wink.gif',
57
-    ':creepy:'      => 'creepy.gif',
58
-    ':worried:'      => 'worried.gif',
49
+    ':thanks:'     => 'thanks.gif',
50
+    ':P'           => 'tongue.gif',
51
+    ':p'           => 'tongue.gif',
52
+    ':-P'          => 'tongue.gif',
53
+    ':-p'          => 'tongue.gif',
54
+    ':wave:'       => 'wave.gif',
55
+    ';-)'          => 'wink.gif',
56
+    ':wink:'       => 'wink.gif',
57
+    ':creepy:'     => 'creepy.gif',
58
+    ':worried:'    => 'worried.gif',
59 59
     ':wtf:'        => 'wtf.gif',
60 60
     ':wub:'        => 'wub.gif',
61
-    ':ban:'       => 'onion_ban.gif',
61
+    ':ban:'        => 'onion_ban.gif',
62 62
     ':oy:'         => 'onion_oy.gif',
63
-    ':laugh:'     => 'onion_laugh.gif',
64
-    ':snicker:'   => 'onion_snicker.gif',
63
+    ':laugh:'      => 'onion_laugh.gif',
64
+    ':snicker:'    => 'onion_snicker.gif',
65 65
     ':barf:'       => 'onion_barf.gif',
66 66
     ':dies:'       => 'onion_dies.gif',
67 67
     ':shiver:'     => 'onion_shiver.gif',
68 68
     ':frozen:'     => 'onion_frozen.gif',
69
-    ':relax:'     => 'onion_relax.gif',
70
-    ':hurry:'     => 'onion_hurry.gif',
71
-    ':whistle:'     => 'onion_whistle.gif',
72
-    ':negligent:'   => 'onion_negligent.gif',
69
+    ':relax:'      => 'onion_relax.gif',
70
+    ':hurry:'      => 'onion_hurry.gif',
71
+    ':whistle:'    => 'onion_whistle.gif',
72
+    ':negligent:'  => 'onion_negligent.gif',
73 73
     ':nice:'       => 'onion_nice.gif',
74
-    ':giveup:'    => 'onion_giveup.gif',
74
+    ':giveup:'     => 'onion_giveup.gif',
75 75
     ':hi:'         => 'onion_hi.gif',
76
-    ':bye:'       => 'onion_bye.gif',
77
-    ':dizzy:'     => 'onion_dizzy.gif',
76
+    ':bye:'        => 'onion_bye.gif',
77
+    ':dizzy:'      => 'onion_dizzy.gif',
78 78
     ':evil:'       => 'onion_evil.gif',
79 79
     ':distressed:' => 'onion_distressed.gif',
80
-    ':dunno:'     => 'onion_dunno.gif',
80
+    ':dunno:'      => 'onion_dunno.gif',
81 81
     ':sick:'       => 'onion_sick.gif',
82
-    ':why:'       => 'onion_why.gif',
83
-    ':full:'      => 'onion_full.gif',
84
-    ':zzz:'       => 'onion_zzz.gif',
85
-    ':whisper:'   => 'onion_whisper.gif',
82
+    ':why:'        => 'onion_why.gif',
83
+    ':full:'       => 'onion_full.gif',
84
+    ':zzz:'        => 'onion_zzz.gif',
85
+    ':whisper:'    => 'onion_whisper.gif',
86 86
     ':love:'       => 'onion_love.gif',
87 87
     ':nuts:'       => 'onion_nuts.gif',
88 88
     ':please:'     => 'onion_please.gif',
89 89
     ':unforgiven:' => 'onion_unforgiven.gif',
90
-    ':miserable:'   => 'onion_miserable.gif',
91
-    ':donotwant:'   => 'onion_donotwant.gif',
92
-    ':furious:'   => 'onion_furious.gif',
93
-    ':bow:'       => 'onion_bow.gif',
94
-    ':perfect:'   => 'onion_perfect.gif',
95
-    ':puzzled:'   => 'onion_puzzled.gif',
96
-    ':tired:'     => 'onion_tired.gif',
97
-    ':angry:'     => 'onion_angry.gif',
90
+    ':miserable:'  => 'onion_miserable.gif',
91
+    ':donotwant:'  => 'onion_donotwant.gif',
92
+    ':furious:'    => 'onion_furious.gif',
93
+    ':bow:'        => 'onion_bow.gif',
94
+    ':perfect:'    => 'onion_perfect.gif',
95
+    ':puzzled:'    => 'onion_puzzled.gif',
96
+    ':tired:'      => 'onion_tired.gif',
97
+    ':angry:'      => 'onion_angry.gif',
98 98
     ':inlove:'     => 'onion_inlove.gif',
99
-    ':fever:'     => 'onion_fever.gif',
99
+    ':fever:'      => 'onion_fever.gif',
100 100
     ':warn:'       => 'onion_warn.gif',
101
-    ':shy:'       => 'onion_shy.gif',
102
-    ':flattered:'   => 'onion_flattered.gif',
103
-    ':attention:' => 'onion_attention.gif',
104
-    ':payup:'     => 'onion_payup.gif',
105
-    ':exhausted:' => 'onion_exhausted.gif',
101
+    ':shy:'        => 'onion_shy.gif',
102
+    ':flattered:'  => 'onion_flattered.gif',
103
+    ':attention:'  => 'onion_attention.gif',
104
+    ':payup:'      => 'onion_payup.gif',
105
+    ':exhausted:'  => 'onion_exhausted.gif',
106 106
     ':nosepick:'   => 'onion_nosepick.gif',
107
-    ':blush:'     => 'onion_blush.gif',
107
+    ':blush:'      => 'onion_blush.gif',
108 108
     ':pissed:'     => 'onion_pissed.gif',
109
-    ':omg:'       => 'onion_omg.gif',
110
-    ':xd:'   => 'onion_xd.gif',
111
-    ':petrified:' => 'onion_petrified.gif',
112
-    ':innocence:' => 'onion_innocence.gif',
113
-    ':tantrum:'   => 'onion_tantrum.gif',
114
-    ':cry:'       => 'onion_cry.gif',
109
+    ':omg:'        => 'onion_omg.gif',
110
+    ':xd:'         => 'onion_xd.gif',
111
+    ':petrified:'  => 'onion_petrified.gif',
112
+    ':innocence:'  => 'onion_innocence.gif',
113
+    ':tantrum:'    => 'onion_tantrum.gif',
114
+    ':cry:'        => 'onion_cry.gif',
115 115
     ':hero:'       => 'onion_hero.gif',
116
-    ':abandoned:' => 'onion_abandoned.gif',
116
+    ':abandoned:'  => 'onion_abandoned.gif',
117 117
     ':notagain:'   => 'onion_notagain.gif',
118 118
     ':wait:'       => 'onion_wait.gif',
119
-    ':runaway:'   => 'onion_runaway.gif',
120
-    ':surprised:'   => 'onion_surprised.gif',
121
-    ':moe:'       => 'onion_moe.gif',
119
+    ':runaway:'    => 'onion_runaway.gif',
120
+    ':surprised:'  => 'onion_surprised.gif',
121
+    ':moe:'        => 'onion_moe.gif',
122 122
   );
123 123
 
124 124
   /**

+ 5
- 5
classes/textarea_preview.class.php View File

@@ -131,14 +131,14 @@ class TEXTAREA_PREVIEW extends TEXTAREA_PREVIEW_SUPER {
131 131
   /**
132 132
    * This method creates a textarea
133 133
    *
134
-   * @param string $Name    name attribute
135
-   * @param string $ID    id attribute
134
+   * @param string $Name     name attribute
135
+   * @param string $ID       id attribute
136 136
    * @param string $Value    default text attribute
137
-   * @param string $Cols    cols attribute
138
-   * @param string $Rows    rows attribute
137
+   * @param string $Cols     cols attribute
138
+   * @param string $Rows     rows attribute
139 139
    * @param bool   $Preview  add the preview divs near the textarea
140 140
    * @param bool   $Buttons  add the edit/preview buttons near the textarea
141
-   * @param bool   $Buffer  doesn't output the textarea, use getBuffer()
141
+   * @param bool   $Buffer   doesn't output the textarea, use getBuffer()
142 142
    * @param array  $ExtraAttributes  array of attribute="value"
143 143
    *
144 144
    * If false for $Preview, $Buttons, or $Buffer, use the appropriate

+ 1
- 1
classes/torrent.class.php View File

@@ -252,7 +252,7 @@ class TORRENT extends BENCODE_DICT {
252 252
   }
253 253
 
254 254
   // Returns an array of:
255
-  //   * the files in the torrent
255
+  //  * the files in the torrent
256 256
   //  * the total size of files described therein
257 257
   function file_list() {
258 258
     $FileList = array();

+ 1
- 1
classes/torrent_32bit.class.php View File

@@ -245,7 +245,7 @@ class TORRENT extends BENCODE_DICT {
245 245
   }
246 246
 
247 247
   // Returns an array of:
248
-  //   * the files in the torrent
248
+  //  * the files in the torrent
249 249
   //  * the total size of files described therein
250 250
   function file_list() {
251 251
     $FileList = array();

+ 1
- 1
classes/torrent_form.class.php View File

@@ -5,7 +5,7 @@
5 5
  ********************************************************************************
6 6
  ** This class is used to create both the upload form, and the 'edit torrent'  **
7 7
  ** form. It is broken down into several functions - head(), foot(),           **
8
- ** music_form() [music], audiobook_form() [Audiobooks and comedy], and         **
8
+ ** music_form() [music], audiobook_form() [Audiobooks and comedy], and        **
9 9
  ** simple_form() [everything else].                                           **
10 10
  **                                                                            **
11 11
  ** When it is called from the edit page, the forms are shortened quite a bit. **

+ 4
- 4
classes/torrentsdl.class.php View File

@@ -139,17 +139,17 @@ class TorrentsDL {
139 139
     return "Collector Download Summary for $this->Title - " . SITE_NAME . "\r\n"
140 140
       . "\r\n"
141 141
       . "User:    {$this->User[Username]}\r\n"
142
-      . "Passkey:  {$this->User[torrent_pass]}\r\n"
142
+      . "Passkey: {$this->User[torrent_pass]}\r\n"
143 143
       . "\r\n"
144 144
       . "Time:    $Time\r\n"
145 145
       . "Used:    $Used\r\n"
146 146
       . "Date:    $Date\r\n"
147 147
       . "\r\n"
148 148
       . ($FilterStats !== false
149
-        ? "Torrent groups analyzed:  $this->NumFound\r\n"
150
-          . "Torrent groups filtered:  $NumSkipped\r\n"
149
+        ? "Torrent groups analyzed: $this->NumFound\r\n"
150
+          . "Torrent groups filtered: $NumSkipped\r\n"
151 151
         : "")
152
-      . "Torrents downloaded:    $this->NumAdded\r\n"
152
+      . "Torrents downloaded:   $this->NumAdded\r\n"
153 153
       . "\r\n"
154 154
       . "Total size of torrents (ratio hit): ".Format::get_size($this->Size)."\r\n"
155 155
       . ($NumSkipped

+ 84
- 84
classes/useragent.class.php View File

@@ -2,119 +2,119 @@
2 2
 class UserAgent {
3 3
   private static $Browsers = array(
4 4
     //Less popular
5
-    'Shiira'      => 'Shiira',
6
-    'Songbird'      => 'Songbird',
7
-    'SeaMonkey'      => 'SeaMonkey',
8
-    'OmniWeb'      => 'OmniWeb',
9
-    'Camino'      => 'Camino',
10
-    'Chimera'      => 'Chimera',
11
-    'Epiphany'      => 'Epiphany',
12
-    'Konqueror'      => 'Konqueror',
13
-    'Iceweasel'      => 'Iceweasel',
14
-    'Lynx'        => 'Lynx',
15
-    'Links'        => 'Links',
16
-    'libcurl'      => 'cURL',
17
-    'midori'      => 'Midori',
18
-    'Blackberry'    => 'BlackBerry Browser',
5
+    'Shiira'     => 'Shiira',
6
+    'Songbird'   => 'Songbird',
7
+    'SeaMonkey'  => 'SeaMonkey',
8
+    'OmniWeb'    => 'OmniWeb',
9
+    'Camino'     => 'Camino',
10
+    'Chimera'    => 'Chimera',
11
+    'Epiphany'   => 'Epiphany',
12
+    'Konqueror'  => 'Konqueror',
13
+    'Iceweasel'  => 'Iceweasel',
14
+    'Lynx'       => 'Lynx',
15
+    'Links'      => 'Links',
16
+    'libcurl'    => 'cURL',
17
+    'midori'     => 'Midori',
18
+    'Blackberry' => 'BlackBerry Browser',
19 19
     //Big names
20
-    'Firefox'      => 'Firefox',
21
-    'OPR'        => 'Opera Blink', # Opera 15+ (the version running Blink)
22
-    'Opera'        => 'Opera',
23
-    'Chrome'      => 'Chrome',
24
-    'Safari'      => 'Safari',
20
+    'Firefox' => 'Firefox',
21
+    'OPR'     => 'Opera Blink', # Opera 15+ (the version running Blink)
22
+    'Opera'   => 'Opera',
23
+    'Chrome'  => 'Chrome',
24
+    'Safari'  => 'Safari',
25 25
     //Put Chrome Frame above IE
26
-    'chromeframe'    => 'Chrome Frame',
27
-    'x-clock'      => 'Chrome Frame',
26
+    'chromeframe' => 'Chrome Frame',
27
+    'x-clock'     => 'Chrome Frame',
28 28
     'MSIE'        => 'Internet Explorer',
29
-    'Trident'      => 'Internet Explorer',
29
+    'Trident'     => 'Internet Explorer',
30 30
     //Firefox versions
31
-    'Shiretoko'      => 'Firefox (Experimental)',
32
-    'Minefield'      => 'Firefox (Experimental)',
33
-    'GranParadiso'    => 'Firefox (Experimental)',
34
-    'Namoroka'      => 'Firefox (Experimental)',
35
-    'AppleWebKit'    => 'WebKit',
31
+    'Shiretoko'    => 'Firefox (Experimental)',
32
+    'Minefield'    => 'Firefox (Experimental)',
33
+    'GranParadiso' => 'Firefox (Experimental)',
34
+    'Namoroka'     => 'Firefox (Experimental)',
35
+    'AppleWebKit'  => 'WebKit',
36 36
     'Mozilla'      => 'Mozilla'
37 37
     //Weird shit
38 38
     /*
39
-    'WWW-Mechanize'    => 'Perl',
40
-    'Wget'        => 'Wget',
41
-    'BTWebClient'    => 'µTorrent',
42
-    'Transmission'    => 'Transmission',
43
-    'Java'        => 'Java',
44
-    'RSS'        => 'RSS Downloader'
39
+    'WWW-Mechanize' => 'Perl',
40
+    'Wget'          => 'Wget',
41
+    'BTWebClient'   => 'µTorrent',
42
+    'Transmission'  => 'Transmission',
43
+    'Java'          => 'Java',
44
+    'RSS'           => 'RSS Downloader'
45 45
     */
46 46
   );
47 47
 
48 48
   private static $OperatingSystems = array(
49 49
     //Mobile
50
-    'SymbianOS'      => 'Symbian',
51
-    'blackberry'    => 'BlackBerry',
52
-    'iphone'      => 'iPhone',
53
-    'ipod'        => 'iPhone',
50
+    'SymbianOS'    => 'Symbian',
51
+    'blackberry'   => 'BlackBerry',
52
+    'iphone'       => 'iPhone',
53
+    'ipod'         => 'iPhone',
54 54
     'android'      => 'Android',
55
-    'palm'        => 'Palm',
56
-    'mot-razr'      => 'Motorola Razr',
57
-    // 'tablet PC'      => 'Windows RT',
58
-    // 'ARM; Trident'    => 'Windows RT',
55
+    'palm'         => 'Palm',
56
+    'mot-razr'     => 'Motorola Razr',
57
+  //'tablet PC'    => 'Windows RT',
58
+  //'ARM; Trident' => 'Windows RT',
59 59
     //Windows
60
-    'Windows NT 10.0'  => 'Windows 10',
61
-    'Windows NT 6.4'    => 'Windows 10',
60
+    'Windows NT 10.0' => 'Windows 10',
61
+    'Windows NT 6.4'  => 'Windows 10',
62 62
     'Windows NT 6.3'  => 'Windows 8.1',
63
-    'Windows 8.1'    => 'Windows 8.1',
63
+    'Windows 8.1'     => 'Windows 8.1',
64 64
     'Windows NT 6.2'  => 'Windows 8',
65
-    'Windows 8'      => 'Windows 8',
65
+    'Windows 8'       => 'Windows 8',
66 66
     'Windows NT 6.1'  => 'Windows 7',
67
-    'Windows 7'      => 'Windows 7',
67
+    'Windows 7'       => 'Windows 7',
68 68
     'Windows NT 6.0'  => 'Windows Vista',
69
-    'Windows Vista'    => 'Windows Vista',
69
+    'Windows Vista'   => 'Windows Vista',
70 70
     'windows nt 5.2'  => 'Windows 2003',
71 71
     'windows 2003'    => 'Windows 2003',
72 72
     'windows nt 5.0'  => 'Windows 2000',
73 73
     'windows 2000'    => 'Windows 2000',
74 74
     'windows nt 5.1'  => 'Windows XP',
75
-    'windows xp'    => 'Windows XP',
76
-    'Win 9x 4.90'    => 'Windows ME',
77
-    'Windows Me'    => 'Windows ME',
78
-    'windows nt'    => 'Windows NT',
79
-    'winnt'        => 'Windows NT',
80
-    'windows 98'    => 'Windows 98',
81
-    'windows ce'    => 'Windows CE',
82
-    'win98'        => 'Windows 98',
83
-    'windows 95'    => 'Windows 95',
84
-    'windows 95'    => 'Windows 95',
85
-    'win95'        => 'Windows 95',
86
-    'win16'        => 'Windows 3.1',
87
-    //'windows'      => 'Windows',
88
-    'cros'        => 'Chrome OS',
75
+    'windows xp'      => 'Windows XP',
76
+    'Win 9x 4.90'     => 'Windows ME',
77
+    'Windows Me'      => 'Windows ME',
78
+    'windows nt'      => 'Windows NT',
79
+    'winnt'           => 'Windows NT',
80
+    'windows 98'      => 'Windows 98',
81
+    'windows ce'      => 'Windows CE',
82
+    'win98'           => 'Windows 98',
83
+    'windows 95'      => 'Windows 95',
84
+    'windows 95'      => 'Windows 95',
85
+    'win95'           => 'Windows 95',
86
+    'win16'           => 'Windows 3.1',
87
+  //'windows'         => 'Windows',
88
+    'cros'            => 'Chrome OS',
89 89
     //OS X
90
-    'os x'        => 'Mac OS X',
91
-    'macintosh'      => 'Mac OS X',
92
-    'darwin'      => 'Mac OS X',
90
+    'os x'      => 'Mac OS X',
91
+    'macintosh' => 'Mac OS X',
92
+    'darwin'    => 'Mac OS X',
93 93
     //Less popular
94
-    'ubuntu'      => 'Ubuntu',
95
-    'debian'      => 'Debian',
96
-    'fedora'      => 'Fedora',
97
-    'freebsd'      => 'FreeBSD',
98
-    'openbsd'      => 'OpenBSD',
99
-    'bsd'        => 'BSD',
100
-    'x11'        => 'Linux',
101
-    'gnu'        => 'Linux',
102
-    'linux'        => 'Linux',
103
-    'unix'        => 'Unix',
104
-    'Sun OS'      => 'Sun',
105
-    'Sun'        => 'Sun',
94
+    'ubuntu'  => 'Ubuntu',
95
+    'debian'  => 'Debian',
96
+    'fedora'  => 'Fedora',
97
+    'freebsd' => 'FreeBSD',
98
+    'openbsd' => 'OpenBSD',
99
+    'bsd'     => 'BSD',
100
+    'x11'     => 'Linux',
101
+    'gnu'     => 'Linux',
102
+    'linux'   => 'Linux',
103
+    'unix'    => 'Unix',
104
+    'Sun OS'  => 'Sun',
105
+    'Sun'     => 'Sun',
106 106
     //Weird shit
107 107
     /*
108
-    'WWW-Mechanize'    => 'Perl',
109
-    'Wget'        => 'Wget',
110
-    'BTWebClient'    => 'µTorrent',
111
-    'Transmission'    => 'Transmission',
112
-    'Java'        => 'Java',
113
-    'RSS'        => 'RSS Downloader',
108
+    'WWW-Mechanize' => 'Perl',
109
+    'Wget'          => 'Wget',
110
+    'BTWebClient'   => 'µTorrent',
111
+    'Transmission'  => 'Transmission',
112
+    'Java'          => 'Java',
113
+    'RSS'           => 'RSS Downloader',
114 114
     */
115 115
     //Catch-all
116
-    'win'        => 'Windows',
117
-    'mac'        => 'Mac OS X'
116
+    'win' => 'Windows',
117
+    'mac' => 'Mac OS X'
118 118
   );
119 119
 
120 120
   public static function operating_system(&$UserAgentString) {

+ 9
- 9
classes/users.class.php View File

@@ -31,20 +31,20 @@ class Users {
31 31
    *
32 32
    * @param $UserID int   The UserID to get info for
33 33
    * @return array with the following keys:
34
-   *  int  ID
34
+   *  int     ID
35 35
    *  string  Username
36
-   *  int  PermissionID
37
-   *  array  Paranoia - $Paranoia array sent to paranoia.class
38
-   *  boolean  Artist
39
-   *  boolean  Donor
36
+   *  int     PermissionID
37
+   *  array   Paranoia - $Paranoia array sent to paranoia.class
38
+   *  boolean Artist
39
+   *  boolean Donor
40 40
    *  string  Warned - When their warning expires in international time format
41 41
    *  string  Avatar - URL
42
-   *  boolean  Enabled
42
+   *  boolean Enabled
43 43
    *  string  Title
44 44
    *  string  CatchupTime - When they last caught up on forums
45
-   *  boolean  Visible - If false, they don't show up on peer lists
46
-   *  array ExtraClasses - Secondary classes.
47
-   *  int EffectiveClass - the highest level of their main and secondary classes
45
+   *  boolean Visible - If false, they don't show up on peer lists
46
+   *  array   ExtraClasses - Secondary classes.
47
+   *  int     EffectiveClass - the highest level of their main and secondary classes
48 48
    */
49 49
   public static function user_info($UserID) {
50 50
     global $Classes;

+ 2
- 2
classes/validate.class.php View File

@@ -268,7 +268,7 @@ class VALIDATE {
268 268
           }
269 269
           $ValItem .= ' || $(\'#'.$FieldKey.'year\').raw().value != "") {'."\r\n";
270 270
           $ValItem .= $ValItemHold;
271
-          $ValItem .= "  }\r\n";
271
+          $ValItem .= " }\r\n";
272 272
         } else {
273 273
           $ValItem .= $ValItemHold;
274 274
         }
@@ -281,7 +281,7 @@ class VALIDATE {
281 281
       }
282 282
 
283 283
       if (empty($Field['Required']) && $Field['Type'] != 'date') {
284
-        $ReturnJS .= '  if ($(\'#'.$FieldKey.'\').raw().value!="") {'."\r\n  ";
284
+        $ReturnJS .= '  if ($(\'#'.$FieldKey.'\').raw().value!="") {'."\r\n ";
285 285
         $ReturnJS .= $ValItem;
286 286
         $ReturnJS .= "  }\r\n";
287 287
       } else {

+ 2
- 2
classes/votes.class.php View File

@@ -93,7 +93,7 @@ class Votes {
93 93
     //Inverse ncdf approximation by Peter John Acklam, implementation adapted to
94 94
     //PHP by Michael Nickerson, using Dr. Thomas Ziegler's C implementation as
95 95
     //a guide.  http://home.online.no/~pjacklam/notes/invnorm/index.html
96
-    //I have not checked the accuracy of this implementation.  Be aware that PHP
96
+    //I have not checked the accuracy of this implementation. Be aware that PHP
97 97
     //will truncate the coeficcients to 14 digits.
98 98
 
99 99
     //You have permission to use and distribute this function freely for
@@ -120,7 +120,7 @@ class Votes {
120 120
 
121 121
     //Define break-points.
122 122
     $p_low  = 0.02425;                   //Use lower region approx. below this
123
-    $p_high = 1 - $p_low;                 //Use upper region approx. above this
123
+    $p_high = 1 - $p_low;                //Use upper region approx. above this
124 124
 
125 125
     //Define/list variables (doesn't really need a definition)
126 126
     //$p (probability), $sigma (std. deviation), and $mu (mean) are user inputs

+ 1
- 1
design/privatefooter.php View File

@@ -1,7 +1,7 @@
1 1
 </div>
2 2
 <?php TEXTAREA_PREVIEW::JavaScript(); ?>
3 3
 <div id="footer">
4
-<?   if (!empty($Options['disclaimer'])) { ?>
4
+<?  if (!empty($Options['disclaimer'])) { ?>
5 5
   <br /><br />
6 6
   <div id="disclaimer_container" class="thin" style="text-align: center; margin-bottom: 20px;">
7 7
     None of the files shown here are actually hosted on this server. The links are provided solely by this site's users. These BitTorrent files are meant for the distribution of backup files. By downloading the BitTorrent file, you are claiming that you own the original file. The administrator of this site (<?=site_url()?>) holds NO RESPONSIBILITY if these files are misused in any way and cannot be held responsible for what its users post, or any other actions of it.

+ 9
- 9
feeds.php View File

@@ -1,8 +1,8 @@
1 1
 <?
2 2
 /*-- Feed Start Class ----------------------------------*/
3 3
 /*------------------------------------------------------*/
4
-/* Simplified version of script_start, used for the   */
5
-/* sitewide RSS system.                 */
4
+/* Simplified version of script_start, used for the     */
5
+/* sitewide RSS system.                                 */
6 6
 /*------------------------------------------------------*/
7 7
 /********************************************************/
8 8
 
@@ -79,14 +79,14 @@ function make_utf8($Str) {
79 79
 
80 80
 function is_utf8($Str) {
81 81
   return preg_match('%^(?:
82
-    [\x09\x0A\x0D\x20-\x7E]       // ASCII
83
-    | [\xC2-\xDF][\x80-\xBF]      // non-overlong 2-byte
84
-    | \xE0[\xA0-\xBF][\x80-\xBF]    // excluding overlongs
82
+    [\x09\x0A\x0D\x20-\x7E]             // ASCII
83
+    | [\xC2-\xDF][\x80-\xBF]            // non-overlong 2-byte
84
+    | \xE0[\xA0-\xBF][\x80-\xBF]        // excluding overlongs
85 85
     | [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} // straight 3-byte
86
-    | \xED[\x80-\x9F][\x80-\xBF]    // excluding surrogates
87
-    | \xF0[\x90-\xBF][\x80-\xBF]{2}   // planes 1-3
88
-    | [\xF1-\xF3][\x80-\xBF]{3}     // planes 4-15
89
-    | \xF4[\x80-\x8F][\x80-\xBF]{2}   // plane 16
86
+    | \xED[\x80-\x9F][\x80-\xBF]        // excluding surrogates
87
+    | \xF0[\x90-\xBF][\x80-\xBF]{2}     // planes 1-3
88
+    | [\xF1-\xF3][\x80-\xBF]{3}         // planes 4-15
89
+    | \xF4[\x80-\x8F][\x80-\xBF]{2}     // plane 16
90 90
     )*$%xs', $Str
91 91
   );
92 92
 }

Loading…
Cancel
Save