Browse Source

Apply ugly but consistent PHP formatting rules

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

+ 2
- 1
ajax.php View File

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

+ 2
- 2
artist.php View File

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

+ 1
- 1
better.php View File

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

+ 2
- 1
blog.php View File

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

+ 1
- 1
bookmarks.php View File

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

+ 2
- 1
browse.php View File

@@ -1 +1,2 @@
1
-<? header('Location: torrents.php');
1
+<?php
2
+header('Location: torrents.php');

+ 2
- 2
chat.php View File

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

+ 2
- 2
collage.php View File

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

+ 1
- 1
collages.php View File

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

+ 1
- 1
comments.php View File

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

+ 1
- 1
contest.php View File

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

+ 2
- 1
delete.php View File

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

+ 2
- 1
donate.php View File

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

+ 2
- 1
enable.php View File

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

+ 2
- 1
error.php View File

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

+ 58
- 49
feeds.php View File

@@ -1,4 +1,4 @@
1
-<?
1
+<?php
2 2
 /*-- Feed Start Class ----------------------------------*/
3 3
 /*------------------------------------------------------*/
4 4
 /* Simplified version of script_start, used for the     */
@@ -8,7 +8,7 @@
8 8
 
9 9
 // Let's prevent people from clearing feeds
10 10
 if (isset($_GET['clearcache'])) {
11
-  unset($_GET['clearcache']);
11
+    unset($_GET['clearcache']);
12 12
 }
13 13
 
14 14
 require_once('classes/config.php'); // The config contains all site-wide configuration information as well as memcached rules
@@ -19,33 +19,36 @@ require_once(SERVER_ROOT.'/classes/feed.class.php'); // Require the feeds class
19 19
 $Cache = new Cache(MEMCACHED_SERVERS); // Load the caching class
20 20
 $Feed = new FEED; // Load the time class
21 21
 
22
-function check_perms() {
23
-  return false;
22
+function check_perms()
23
+{
24
+    return false;
24 25
 }
25 26
 
26
-function is_number($Str) {
27
-  if ($Str < 0) {
28
-    return false;
29
-  }
30
-  // We're converting input to an int, then string, and comparing to the original
31
-  return ($Str == strval(intval($Str)));
27
+function is_number($Str)
28
+{
29
+    if ($Str < 0) {
30
+        return false;
31
+    }
32
+    // We're converting input to an int, then string, and comparing to the original
33
+    return ($Str === strval(intval($Str)));
32 34
 }
33 35
 
34
-function display_str($Str) {
35
-  if ($Str != '') {
36
-    $Str = make_utf8($Str);
37
-    $Str = mb_convert_encoding($Str, 'HTML-ENTITIES', 'UTF-8');
38
-    $Str = preg_replace("/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,5};)/m", '&amp;', $Str);
36
+function display_str($Str)
37
+{
38
+    if ($Str !== '') {
39
+        $Str = make_utf8($Str);
40
+        $Str = mb_convert_encoding($Str, 'HTML-ENTITIES', 'UTF-8');
41
+        $Str = preg_replace('/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,5};)/m', '&amp;', $Str);
39 42
 
40
-    $Replace = array(
41
-      "'",'"',"<",">",
43
+        $Replace = array(
44
+      "'",'"','<','>',
42 45
       '&#128;','&#130;','&#131;','&#132;','&#133;','&#134;','&#135;','&#136;',
43 46
       '&#137;','&#138;','&#139;','&#140;','&#142;','&#145;','&#146;','&#147;',
44 47
       '&#148;','&#149;','&#150;','&#151;','&#152;','&#153;','&#154;','&#155;',
45 48
       '&#156;','&#158;','&#159;'
46 49
     );
47 50
 
48
-    $With = array(
51
+        $With = array(
49 52
       '&#39;','&quot;','&lt;','&gt;',
50 53
       '&#8364;','&#8218;','&#402;','&#8222;','&#8230;','&#8224;','&#8225;','&#710;',
51 54
       '&#8240;','&#352;','&#8249;','&#338;','&#381;','&#8216;','&#8217;','&#8220;',
@@ -53,32 +56,35 @@ function display_str($Str) {
53 56
       '&#339;','&#382;','&#376;'
54 57
     );
55 58
 
56
-    $Str = str_replace($Replace, $With, $Str);
57
-  }
58
-  return $Str;
59
+        $Str = str_replace($Replace, $With, $Str);
60
+    }
61
+    return $Str;
59 62
 }
60 63
 
61
-function make_utf8($Str) {
62
-  if ($Str != '') {
63
-    if (is_utf8($Str)) {
64
-      $Encoding = 'UTF-8';
64
+function make_utf8($Str)
65
+{
66
+    if ($Str !== '') {
67
+        if (is_utf8($Str)) {
68
+            $Encoding = 'UTF-8';
69
+        }
70
+        if (empty($Encoding)) {
71
+            $Encoding = mb_detect_encoding($Str, 'UTF-8, ISO-8859-1');
72
+        }
73
+        if (empty($Encoding)) {
74
+            $Encoding = 'ISO-8859-1';
75
+        }
76
+        if ($Encoding === 'UTF-8') {
77
+            return $Str;
78
+        } else {
79
+            return @mb_convert_encoding($Str, 'UTF-8', $Encoding);
80
+        }
65 81
     }
66
-    if (empty($Encoding)) {
67
-      $Encoding = mb_detect_encoding($Str, 'UTF-8, ISO-8859-1');
68
-    }
69
-    if (empty($Encoding)) {
70
-      $Encoding = 'ISO-8859-1';
71
-    }
72
-    if ($Encoding == 'UTF-8') {
73
-      return $Str;
74
-    } else {
75
-      return @mb_convert_encoding($Str, 'UTF-8', $Encoding);
76
-    }
77
-  }
78 82
 }
79 83
 
80
-function is_utf8($Str) {
81
-  return preg_match('%^(?:
84
+function is_utf8($Str)
85
+{
86
+    return preg_match(
87
+        '%^(?:
82 88
     [\x09\x0A\x0D\x20-\x7E]             // ASCII
83 89
     | [\xC2-\xDF][\x80-\xBF]            // non-overlong 2-byte
84 90
     | \xE0[\xA0-\xBF][\x80-\xBF]        // excluding overlongs
@@ -87,24 +93,27 @@ function is_utf8($Str) {
87 93
     | \xF0[\x90-\xBF][\x80-\xBF]{2}     // planes 1-3
88 94
     | [\xF1-\xF3][\x80-\xBF]{3}         // planes 4-15
89 95
     | \xF4[\x80-\x8F][\x80-\xBF]{2}     // plane 16
90
-    )*$%xs', $Str
91
-  );
96
+    )*$%xs',
97
+        $Str
98
+    );
92 99
 }
93 100
 
94
-function display_array($Array, $Escape = []) {
95
-  foreach ($Array as $Key => $Val) {
96
-    if ((!is_array($Escape) && $Escape == true) || !in_array($Key, $Escape)) {
97
-      $Array[$Key] = display_str($Val);
101
+function display_array($Array, $Escape = [])
102
+{
103
+    foreach ($Array as $Key => $Val) {
104
+        if ((!is_array($Escape) && $Escape === true) || !in_array($Key, $Escape)) {
105
+            $Array[$Key] = display_str($Val);
106
+        }
98 107
     }
99
-  }
100
-  return $Array;
108
+    return $Array;
101 109
 }
102 110
 
103 111
 /**
104 112
  * Print the site's URL including the appropriate URI scheme, including the trailing slash
105 113
  */
106
-function site_url() {
107
-  return 'https://' . SITE_DOMAIN . '/';
114
+function site_url()
115
+{
116
+    return 'https://' . SITE_DOMAIN . '/';
108 117
 }
109 118
 
110 119
 header('Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0');

+ 1
- 2
flush.php View File

@@ -1,4 +1,4 @@
1
-<?
1
+<?php
2 2
 ob_start();
3 3
 
4 4
 echo '0';
@@ -15,4 +15,3 @@ sleep(20);
15 15
 
16 16
 echo '60';
17 17
 ob_end_flush();
18
-

+ 1
- 1
forums.php View File

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

+ 1
- 1
friends.php View File

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

+ 58
- 55
image.php View File

@@ -1,67 +1,71 @@
1
-<?
1
+<?php
2 2
 // Functions and headers needed by the image proxy
3 3
 error_reporting(E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR);
4 4
 
5 5
 if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) {
6
-  header("HTTP/1.1 304 Not Modified");
7
-  die();
6
+    header('HTTP/1.1 304 Not Modified');
7
+    die();
8 8
 }
9 9
 
10 10
 header('Expires: '.date('D, d-M-Y H:i:s \U\T\C', time() + 3600 * 24 * 120)); // 120 days
11 11
 header('Last-Modified: '.date('D, d-M-Y H:i:s \U\T\C', time()));
12 12
 
13 13
 if (!extension_loaded('gd')) {
14
-  error('nogd');
14
+    error('nogd');
15 15
 }
16 16
 
17
-function img_error($Type) {
18
-  header('Content-type: image/gif');
19
-  die(file_get_contents(SERVER_ROOT.'/sections/image/err_imgs/'.$Type.'.png'));
17
+function img_error($Type)
18
+{
19
+    header('Content-type: image/gif');
20
+    die(file_get_contents(SERVER_ROOT.'/sections/image/err_imgs/'.$Type.'.png'));
20 21
 }
21 22
 
22
-function invisible($Image) {
23
-  $Count = imagecolorstotal($Image);
24
-  if ($Count == 0) {
25
-    return false;
26
-  }
27
-  $TotalAlpha = 0;
28
-  for ($i = 0; $i < $Count; ++$i) {
29
-    $Color = imagecolorsforindex($Image, $i);
30
-    $TotalAlpha += $Color['alpha'];
31
-  }
32
-  return (($TotalAlpha / $Count) == 127);
33
-
23
+function invisible($Image)
24
+{
25
+    $Count = imagecolorstotal($Image);
26
+    if ($Count === 0) {
27
+        return false;
28
+    }
29
+    $TotalAlpha = 0;
30
+    for ($i = 0; $i < $Count; ++$i) {
31
+        $Color = imagecolorsforindex($Image, $i);
32
+        $TotalAlpha += $Color['alpha'];
33
+    }
34
+    return (($TotalAlpha / $Count) === 127);
34 35
 }
35 36
 
36
-function verysmall($Image) {
37
-  return ((imagesx($Image) * imagesy($Image)) < 25);
37
+function verysmall($Image)
38
+{
39
+    return ((imagesx($Image) * imagesy($Image)) < 25);
38 40
 }
39 41
 
40
-function image_type($Data) {
41
-  if (!strncmp($Data, 'GIF', 3)) {
42
-    return 'gif';
43
-  }
44
-  if (!strncmp($Data, pack('H*', '89504E47'), 4)) {
45
-    return 'png';
46
-  }
47
-  if (!strncmp($Data, pack('H*', 'FFD8'), 2)) {
48
-    return 'jpeg';
49
-  }
50
-  if (!strncmp($Data, 'BM', 2)) {
51
-    return 'bmp';
52
-  }
53
-  if (!strncmp($Data, 'II', 2) || !strncmp($Data, 'MM', 2)) {
54
-    return 'tiff';
55
-  }
56
-  if (!substr_compare($Data, 'webm', 31, 4)) {
57
-    return 'webm';
58
-  }
42
+function image_type($Data)
43
+{
44
+    if (!strncmp($Data, 'GIF', 3)) {
45
+        return 'gif';
46
+    }
47
+    if (!strncmp($Data, pack('H*', '89504E47'), 4)) {
48
+        return 'png';
49
+    }
50
+    if (!strncmp($Data, pack('H*', 'FFD8'), 2)) {
51
+        return 'jpeg';
52
+    }
53
+    if (!strncmp($Data, 'BM', 2)) {
54
+        return 'bmp';
55
+    }
56
+    if (!strncmp($Data, 'II', 2) || !strncmp($Data, 'MM', 2)) {
57
+        return 'tiff';
58
+    }
59
+    if (!substr_compare($Data, 'webm', 31, 4)) {
60
+        return 'webm';
61
+    }
59 62
 }
60 63
 
61
-function image_height($Type, $Data) {
62
-  $Length = strlen($Data);
63
-  global $URL, $_GET;
64
-  switch ($Type) {
64
+function image_height($Type, $Data)
65
+{
66
+    $Length = strlen($Data);
67
+    global $URL, $_GET;
68
+    switch ($Type) {
65 69
     case 'jpeg':
66 70
       // See http://www.obrador.com/essentialjpeg/headerinfo.htm
67 71
       $i = 4;
@@ -69,22 +73,22 @@ function image_height($Type, $Data) {
69 73
       $Block = unpack('nLength', $Data);
70 74
       $Data = substr($Data, $Block['Length']);
71 75
       $i += $Block['Length'];
72
-      $Str []= "Started 4, + ".$Block['Length'];
73
-      while ($Data != '') { // iterate through the blocks until we find the start of frame marker (FFC0)
76
+      $Str []= 'Started 4, + '.$Block['Length'];
77
+      while ($Data !== '') { // Iterate through the blocks until we find the start of frame marker (FFC0)
74 78
         $Block = unpack('CBlock/CType/nLength', $Data); // Get info about the block
75
-        if ($Block['Block'] != '255') { // We should be at the start of a new block
79
+        if ($Block['Block'] !== '255') { // We should be at the start of a new block
76 80
           break;
77 81
         }
78
-        if ($Block['Type'] != '192') { // C0
82
+          if ($Block['Type'] !== '192') { // C0
79 83
           $Data = substr($Data, $Block['Length'] + 2); // Next block
80
-          $Str []= "Started $i, + ".($Block['Length'] + 2);
81
-          $i += ($Block['Length'] + 2);
82
-        } else { // We're at the FFC0 block
84
+          $Str []= 'Started $i, + '.($Block['Length'] + 2);
85
+              $i += ($Block['Length'] + 2);
86
+          } else { // We're at the FFC0 block
83 87
           $Data = substr($Data, 5); // Skip FF C0 Length(2) precision(1)
84 88
           $i += 5;
85
-          $Height = unpack('nHeight', $Data);
86
-          return $Height['Height'];
87
-        }
89
+              $Height = unpack('nHeight', $Data);
90
+              return $Height['Height'];
91
+          }
88 92
       }
89 93
       break;
90 94
     case 'gif':
@@ -102,4 +106,3 @@ function image_height($Type, $Data) {
102 106
 
103 107
 define('SKIP_NO_CACHE_HEADERS', 1);
104 108
 require('classes/script_start.php'); // script_start contains all we need and includes sections/image/index.php
105
-?>

+ 2
- 1
inbox.php View File

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

+ 2
- 1
index.php View File

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

+ 2
- 2
irc.php View File

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

+ 2
- 1
locked.php View File

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

+ 1
- 2
log.php View File

@@ -1,3 +1,2 @@
1
-<?
1
+<?php
2 2
 require 'classes/script_start.php';
3
-?>

+ 2
- 1
login.php View File

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

+ 2
- 3
logout.php View File

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

+ 5
- 3
manifest.php View File

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

+ 2
- 1
questions.php View File

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

+ 2
- 1
register.php View File

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

+ 2
- 1
reports.php View File

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

+ 2
- 1
reportsv2.php View File

@@ -1 +1,2 @@
1
-<? require 'classes/script_start.php';
1
+<?php
2
+require 'classes/script_start.php';

+ 2
- 1
requests.php View File

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

+ 2
- 1
rules.php View File

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

+ 2
- 2
schedule.php View File

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

+ 2
- 1
signup.php View File

@@ -1 +1,2 @@
1
-<? header('Location: register.php');
1
+<?php
2
+header('Location: register.php');

+ 1
- 1
sitehistory.php View File

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

+ 1
- 1
slaves.php View File

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

+ 1
- 1
snatchlist.php View File

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

+ 2
- 2
staff.php View File

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

+ 1
- 1
staffblog.php View File

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

+ 2
- 2
staffpm.php View File

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

+ 2
- 1
stats.php View File

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

+ 1
- 1
store.php View File

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

+ 1
- 1
testing.php View File

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

+ 2
- 1
top10.php View File

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

+ 1
- 1
torrents.php View File

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

+ 1
- 1
upload.php View File

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

+ 1
- 1
user.php View File

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

+ 1
- 1
userhistory.php View File

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

+ 2
- 2
whitelist.php View File

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

+ 1
- 1
wiki.php View File

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

Loading…
Cancel
Save