Browse Source

Bring up to date with private repo

spaghetti 7 years ago
parent
commit
64fe216673
48 changed files with 122 additions and 170 deletions
  1. 17
    17
      sections/ajax/doujin.php
  2. 1
    1
      sections/ajax/forum/forum.php
  3. 1
    1
      sections/ajax/forum/thread.php
  4. 1
    1
      sections/ajax/inbox/inbox.php
  5. 5
    5
      sections/ajax/javfill.php
  6. 1
    1
      sections/artist/edit.php
  7. 1
    1
      sections/better/folders.php
  8. 1
    1
      sections/better/tags.php
  9. 1
    1
      sections/collages/all_comments.php
  10. 2
    2
      sections/comments/comments.php
  11. 1
    1
      sections/forums/forum.php
  12. 1
    1
      sections/forums/search.php
  13. 1
    1
      sections/forums/thread.php
  14. 1
    1
      sections/inbox/compose.php
  15. 1
    1
      sections/inbox/inbox.php
  16. 7
    9
      sections/index/private.php
  17. 1
    1
      sections/questions/ajax_get_answers.php
  18. 1
    1
      sections/questions/answer_question.php
  19. 1
    1
      sections/questions/popular_questions.php
  20. 1
    1
      sections/questions/view_answers.php
  21. 1
    1
      sections/register/step1.php
  22. 1
    1
      sections/reportsv2/ajax_create_report.php
  23. 2
    2
      sections/reportsv2/static.php
  24. 2
    2
      sections/reportsv2/takereport.php
  25. 2
    2
      sections/requests/new_edit.php
  26. 1
    1
      sections/requests/request.php
  27. 2
    2
      sections/requests/requests.php
  28. 2
    2
      sections/schedule/daily/delete_dead_torrents.php
  29. 2
    2
      sections/schedule/daily/disable_inactive_users.php
  30. 1
    1
      sections/schedule/daily/ratio_watch.php
  31. 2
    2
      sections/staffpm/common_responses.php
  32. 8
    8
      sections/staffpm/staff_inbox.php
  33. 1
    1
      sections/staffpm/viewconv.php
  34. 3
    3
      sections/tools/managers/ajax_get_calendar_event.php
  35. 10
    10
      sections/tools/tools.php
  36. 1
    1
      sections/torrents/download.php
  37. 3
    3
      sections/torrents/edit.php
  38. 1
    19
      sections/torrents/editgroup.php
  39. 1
    1
      sections/torrents/editgroupid.php
  40. 4
    4
      sections/torrents/takeedit.php
  41. 3
    3
      sections/torrents/takemasspm.php
  42. 1
    1
      sections/upload/upload.php
  43. 2
    2
      sections/user/invite.php
  44. 1
    1
      sections/user/linkedfunctions.php
  45. 8
    8
      sections/user/notify_edit.php
  46. 1
    1
      sections/user/user.php
  47. 5
    5
      sections/userhistory/post_history.php
  48. 4
    32
      static/styles/beluga/style.css

+ 17
- 17
sections/ajax/doujin.php View File

67
   preg_match($re, $gallery_page, $galmatch);
67
   preg_match($re, $gallery_page, $galmatch);
68
   // were we able to find the first page of the gallery?
68
   // were we able to find the first page of the gallery?
69
   if ($galmatch[1]) {
69
   if ($galmatch[1]) {
70
-	  $image_page = file_get_contents($galmatch[1]);
70
+    $image_page = file_get_contents($galmatch[1]);
71
     $re = '/'.preg_quote('"><img id="img" src="').'([^<]*)'.preg_quote('" style=').'/';
71
     $re = '/'.preg_quote('"><img id="img" src="').'([^<]*)'.preg_quote('" style=').'/';
72
-	  preg_match($re, $image_page, $imgmatch);
73
-	  // were we able to find the image url?
74
-	  if ($imgmatch[1]) {
75
-	    $cover = $imgmatch[1];
76
-	  }
72
+    preg_match($re, $image_page, $imgmatch);
73
+    // were we able to find the image url?
74
+    if ($imgmatch[1]) {
75
+      $cover = $imgmatch[1];
76
+    }
77
   }
77
   }
78
 
78
 
79
   $json_str = array(
79
   $json_str = array(
80
-    'id' => $gid,
81
-    'title' => html_entity_decode($json['title'], ENT_QUOTES),
82
-    'title_jp' => html_entity_decode($json['title_jpn'], ENT_QUOTES),
83
-    'artists' => $artists,
84
-    'circle' => $circle,
85
-    'censored' => $censored,
86
-    'year' => NULL,
87
-    'tags' => $tags,
88
-    'lang' => $lang,
89
-    'pages' => $json['filecount'],
80
+    'id'          => $gid,
81
+    'title'       => html_entity_decode($json['title'], ENT_QUOTES),
82
+    'title_jp'    => html_entity_decode($json['title_jpn'], ENT_QUOTES),
83
+    'artists'     => $artists,
84
+    'circle'      => $circle,
85
+    'censored'    => $censored,
86
+    'year'        => NULL,
87
+    'tags'        => $tags,
88
+    'lang'        => $lang,
89
+    'pages'       => $json['filecount'],
90
     'description' => '',
90
     'description' => '',
91
-    'cover' => $cover
91
+    'cover'       => $cover
92
   );
92
   );
93
 
93
 
94
   $Cache->cache_value('doujin_json_'.$gid, $json_str, 86400);
94
   $Cache->cache_value('doujin_json_'.$gid, $json_str, 86400);

+ 1
- 1
sections/ajax/forum/forum.php View File

5
 
5
 
6
 Things to expect in $_GET:
6
 Things to expect in $_GET:
7
   ForumID: ID of the forum curently being browsed
7
   ForumID: ID of the forum curently being browsed
8
-  page:  The page the user's on.
8
+  page: The page the user's on.
9
   page = 1 is the same as no page
9
   page = 1 is the same as no page
10
 
10
 
11
 ********************************************************************************/
11
 ********************************************************************************/

+ 1
- 1
sections/ajax/forum/thread.php View File

4
 
4
 
5
 Things to expect in $_GET:
5
 Things to expect in $_GET:
6
   ThreadID: ID of the forum curently being browsed
6
   ThreadID: ID of the forum curently being browsed
7
-  page:  The page the user's on.
7
+  page: The page the user's on.
8
   page = 1 is the same as no page
8
   page = 1 is the same as no page
9
 
9
 
10
 ********************************************************************************/
10
 ********************************************************************************/

+ 1
- 1
sections/ajax/inbox/inbox.php View File

47
     LEFT JOIN users_main AS um2 ON um2.ID = cu.ForwardedTo";
47
     LEFT JOIN users_main AS um2 ON um2.ID = cu.ForwardedTo";
48
 
48
 
49
 if (!empty($_GET['search']) && $_GET['searchtype'] === 'message') {
49
 if (!empty($_GET['search']) && $_GET['searchtype'] === 'message') {
50
-  $sql .=  ' JOIN pm_messages AS m ON c.ID = m.ConvID';
50
+  $sql .= ' JOIN pm_messages AS m ON c.ID = m.ConvID';
51
 }
51
 }
52
 $sql .= " WHERE ";
52
 $sql .= " WHERE ";
53
 if (!empty($_GET['search'])) {
53
 if (!empty($_GET['search'])) {

+ 5
- 5
sections/ajax/javfill.php View File

152
     'cn'          => $cn,
152
     'cn'          => $cn,
153
     'title'       => ($title ? $title : ''),
153
     'title'       => ($title ? $title : ''),
154
     'title_jp'    => ($title_jp ? $title_jp : ''),
154
     'title_jp'    => ($title_jp ? $title_jp : ''),
155
-    'idols'        => ($idols ? $idols : []),
155
+    'idols'       => ($idols ? $idols : []),
156
     'year'        => ($year ? $year : ''),
156
     'year'        => ($year ? $year : ''),
157
     'studio'      => ($studio ? $studio : ''),
157
     'studio'      => ($studio ? $studio : ''),
158
     'label'       => ($label ? $label : ''),
158
     'label'       => ($label ? $label : ''),
159
-    'image'        => ($image ? $image : ''),
160
-    'description'  => ($desc ? $desc : ''),
161
-    'tags'         => ($genres ? $genres : []),
162
-    'screens'      => ($screens ? $screens : []),
159
+    'image'       => ($image ? $image : ''),
160
+    'description' => ($desc ? $desc : ''),
161
+    'tags'        => ($genres ? $genres : []),
162
+    'screens'     => ($screens ? $screens : []),
163
     'degraded'    => $degraded
163
     'degraded'    => $degraded
164
   );
164
   );
165
 
165
 

+ 1
- 1
sections/artist/edit.php View File

83
     </form>
83
     </form>
84
   </div>
84
   </div>
85
 
85
 
86
-<? /*  <h2>Make into non-redirecting alias</h2>
86
+<? /* <h2>Make into non-redirecting alias</h2>
87
   <div class="box pad">
87
   <div class="box pad">
88
     <form class="merge_form" name="artist" action="artist.php" method="post">
88
     <form class="merge_form" name="artist" action="artist.php" method="post">
89
       <input type="hidden" name="action" value="change_artistid" />
89
       <input type="hidden" name="action" value="change_artistid" />

+ 1
- 1
sections/better/folders.php View File

86
         <?=$DisplayName?>
86
         <?=$DisplayName?>
87
 <?  if (check_perms('admin_reports')) { ?>
87
 <?  if (check_perms('admin_reports')) { ?>
88
         <a href="better.php?method=folders&amp;remove=<?=$TorrentID?>" class="brackets">X</a>
88
         <a href="better.php?method=folders&amp;remove=<?=$TorrentID?>" class="brackets">X</a>
89
-<?   } ?>
89
+<?  } ?>
90
         <div class="tags"><?=$TorrentTags->format()?></div>
90
         <div class="tags"><?=$TorrentTags->format()?></div>
91
       </td>
91
       </td>
92
     </tr>
92
     </tr>

+ 1
- 1
sections/better/tags.php View File

87
         <?=$DisplayName?>
87
         <?=$DisplayName?>
88
 <?  if (check_perms('admin_reports')) { ?>
88
 <?  if (check_perms('admin_reports')) { ?>
89
         <a href="better.php?method=tags&amp;remove=<?=$TorrentID?>" class="brackets">X</a>
89
         <a href="better.php?method=tags&amp;remove=<?=$TorrentID?>" class="brackets">X</a>
90
-<?   } ?>
90
+<?  } ?>
91
         <div class="tags"><?=$TorrentTags->format()?></div>
91
         <div class="tags"><?=$TorrentTags->format()?></div>
92
       </td>
92
       </td>
93
     </tr>
93
     </tr>

+ 1
- 1
sections/collages/all_comments.php View File

3
 
3
 
4
 Things to expect in $_GET:
4
 Things to expect in $_GET:
5
   ThreadID: ID of the forum curently being browsed
5
   ThreadID: ID of the forum curently being browsed
6
-  page:  The page the user's on.
6
+  page: The page the user's on.
7
   page = 1 is the same as no page
7
   page = 1 is the same as no page
8
 
8
 
9
 ********************************************************************************/
9
 ********************************************************************************/

+ 2
- 2
sections/comments/comments.php View File

116
   default:
116
   default:
117
     $Action = 'torrents';
117
     $Action = 'torrents';
118
     $Field1 = 'torrents.GroupID';
118
     $Field1 = 'torrents.GroupID';
119
-    $Field2 = 'torrents_group.Name';
119
+    $Field2 = "COALESCE(NULLIF(tg.Name,''),NULLIF(tg.NameRJ,''),tg.NameJP) AS Name";
120
     $Table = 'torrents';
120
     $Table = 'torrents';
121
-    $Join[] = 'JOIN torrents_group ON torrents.GroupID = torrents_group.ID';
121
+    $Join[] = 'JOIN torrents_group AS tg ON torrents.GroupID = tg.ID';
122
     if ($Type == 'uploaded') {
122
     if ($Type == 'uploaded') {
123
       $Conditions[] = "torrents.UserID = $UserID";
123
       $Conditions[] = "torrents.UserID = $UserID";
124
       $Conditions[] = 'comments.AddedTime > torrents.Time';
124
       $Conditions[] = 'comments.AddedTime > torrents.Time';

+ 1
- 1
sections/forums/forum.php View File

3
 
3
 
4
 Things to expect in $_GET:
4
 Things to expect in $_GET:
5
   ForumID: ID of the forum curently being browsed
5
   ForumID: ID of the forum curently being browsed
6
-  page:  The page the user's on.
6
+  page: The page the user's on.
7
   page = 1 is the same as no page
7
   page = 1 is the same as no page
8
 
8
 
9
 ********************************************************************************/
9
 ********************************************************************************/

+ 1
- 1
sections/forums/search.php View File

186
           <input type="checkbox" name="forums[]" value="<?=$Forum['ID']?>" data-category="forum_category_<?=$i?>" id="forum_<?=$Forum['ID']?>"<? if (isset($_GET['forums']) && in_array($Forum['ID'], $_GET['forums'])) { echo ' checked="checked"';} ?> />
186
           <input type="checkbox" name="forums[]" value="<?=$Forum['ID']?>" data-category="forum_category_<?=$i?>" id="forum_<?=$Forum['ID']?>"<? if (isset($_GET['forums']) && in_array($Forum['ID'], $_GET['forums'])) { echo ' checked="checked"';} ?> />
187
           <label for="forum_<?=$Forum['ID']?>"><?=htmlspecialchars($Forum['Name'])?></label>
187
           <label for="forum_<?=$Forum['ID']?>"><?=htmlspecialchars($Forum['Name'])?></label>
188
         </td>
188
         </td>
189
-<?   }
189
+<?  }
190
   if ($Columns % 5) { ?>
190
   if ($Columns % 5) { ?>
191
         <td colspan="<?=(5 - ($Columns % 5))?>"></td>
191
         <td colspan="<?=(5 - ($Columns % 5))?>"></td>
192
 <?  } ?>
192
 <?  } ?>

+ 1
- 1
sections/forums/thread.php View File

4
 
4
 
5
 Things to expect in $_GET:
5
 Things to expect in $_GET:
6
   ThreadID: ID of the forum curently being browsed
6
   ThreadID: ID of the forum curently being browsed
7
-  page:  The page the user's on.
7
+  page: The page the user's on.
8
   page = 1 is the same as no page
8
   page = 1 is the same as no page
9
 
9
 
10
 ********************************************************************************/
10
 ********************************************************************************/

+ 1
- 1
sections/inbox/compose.php View File

3
 if (empty($Return)) {
3
 if (empty($Return)) {
4
   $ToID = $_GET['to'];
4
   $ToID = $_GET['to'];
5
 /*
5
 /*
6
-   if ($ToID == $LoggedUser['ID']) {
6
+  if ($ToID == $LoggedUser['ID']) {
7
     error('You cannot start a conversation with yourself!');
7
     error('You cannot start a conversation with yourself!');
8
     header('Location: ' . Inbox::get_inbox_link());
8
     header('Location: ' . Inbox::get_inbox_link());
9
   }
9
   }

+ 1
- 1
sections/inbox/inbox.php View File

51
     LEFT JOIN users_main AS um ON um.ID = cu2.UserID";
51
     LEFT JOIN users_main AS um ON um.ID = cu2.UserID";
52
 
52
 
53
 if (!empty($_GET['search']) && $_GET['searchtype'] === 'message') {
53
 if (!empty($_GET['search']) && $_GET['searchtype'] === 'message') {
54
-  $sql .=  ' JOIN pm_messages AS m ON c.ID = m.ConvID';
54
+  $sql .= ' JOIN pm_messages AS m ON c.ID = m.ConvID';
55
 }
55
 }
56
 $sql .= ' WHERE ';
56
 $sql .= ' WHERE ';
57
 if (!empty($_GET['search'])) {
57
 if (!empty($_GET['search'])) {

+ 7
- 9
sections/index/private.php View File

131
     SELECT
131
     SELECT
132
       TorrentID,
132
       TorrentID,
133
       UNIX_TIMESTAMP(ExpiryTime),
133
       UNIX_TIMESTAMP(ExpiryTime),
134
-      Name,
135
-      NameRJ,
136
-      NameJP,
134
+      COALESCE(NULLIF(Name,''), NULLIF(NameRJ,''), NameJP) AS Name,
137
       WikiImage
135
       WikiImage
138
     FROM shop_freeleeches AS sf
136
     FROM shop_freeleeches AS sf
139
     LEFT JOIN torrents AS t on sf.TorrentID=t.ID
137
     LEFT JOIN torrents AS t on sf.TorrentID=t.ID
150
       <ul class="stats nobullet">
148
       <ul class="stats nobullet">
151
 <?
149
 <?
152
   for ($i = 0; $i < count($Freeleeches); $i++) {
150
   for ($i = 0; $i < count($Freeleeches); $i++) {
153
-    list($ID, $ExpiryTime, $Name, $NameRJ, $NameJP, $Image) = $Freeleeches[$i];
151
+    list($ID, $ExpiryTime, $Name, $Image) = $Freeleeches[$i];
154
     if ($ExpiryTime < time()) { continue; }
152
     if ($ExpiryTime < time()) { continue; }
155
     $DisplayTime = '('.str_replace(['week','day','hour','min','Just now','s',' '],['w','d','h','m','0m'],time_diff($ExpiryTime, 1, false)).') ';
153
     $DisplayTime = '('.str_replace(['week','day','hour','min','Just now','s',' '],['w','d','h','m','0m'],time_diff($ExpiryTime, 1, false)).') ';
156
     $DisplayName = '<a href="torrents.php?torrentid='.$ID.'"';
154
     $DisplayName = '<a href="torrents.php?torrentid='.$ID.'"';
157
     if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
155
     if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
158
       $DisplayName .= " onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($Image)."\" onmouseleave=\"ungetCover(event)\"";
156
       $DisplayName .= " onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($Image)."\" onmouseleave=\"ungetCover(event)\"";
159
     }
157
     }
160
-    $DisplayName .= '>'.($Name?$Name:($NameRJ?$NameRJ:$NameJP)).'</a>';
158
+    $DisplayName .= '>'.$Name.'</a>';
161
 ?>
159
 ?>
162
         <li>
160
         <li>
163
           <strong class="fl_time"><?=$DisplayTime?></strong>
161
           <strong class="fl_time"><?=$DisplayTime?></strong>
412
 <?    } ?>
410
 <?    } ?>
413
         </ul>
411
         </ul>
414
         <strong>Votes:</strong> <?=number_format($TotalVotes)?><br />
412
         <strong>Votes:</strong> <?=number_format($TotalVotes)?><br />
415
-<?   } else { ?>
413
+<?  } else { ?>
416
         <div id="poll_container">
414
         <div id="poll_container">
417
         <form class="vote_form" name="poll" id="poll" action="">
415
         <form class="vote_form" name="poll" id="poll" action="">
418
           <input type="hidden" name="action" value="poll" />
416
           <input type="hidden" name="action" value="poll" />
419
           <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
417
           <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
420
           <input type="hidden" name="topicid" value="<?=$TopicID?>" />
418
           <input type="hidden" name="topicid" value="<?=$TopicID?>" />
421
-<?     foreach ($Answers as $i => $Answer) { ?>
419
+<?    foreach ($Answers as $i => $Answer) { ?>
422
           <input type="radio" name="vote" id="answer_<?=$i?>" value="<?=$i?>" />
420
           <input type="radio" name="vote" id="answer_<?=$i?>" value="<?=$i?>" />
423
           <label for="answer_<?=$i?>"><?=display_str($Answers[$i])?></label><br />
421
           <label for="answer_<?=$i?>"><?=display_str($Answers[$i])?></label><br />
424
-<?     } ?>
422
+<?    } ?>
425
           <br /><input type="radio" name="vote" id="answer_0" value="0" /> <label for="answer_0">Blank&#8202;&mdash;&#8202;Show the results!</label><br /><br />
423
           <br /><input type="radio" name="vote" id="answer_0" value="0" /> <label for="answer_0">Blank&#8202;&mdash;&#8202;Show the results!</label><br /><br />
426
           <input type="button" onclick="ajax.post('index.php', 'poll', function(response) { $('#poll_container').raw().innerHTML = response } );" value="Vote" />
424
           <input type="button" onclick="ajax.post('index.php', 'poll', function(response) { $('#poll_container').raw().innerHTML = response } );" value="Vote" />
427
         </form>
425
         </form>
428
         </div>
426
         </div>
429
-<?   } ?>
427
+<?  } ?>
430
         <br /><strong>Topic:</strong> <a href="forums.php?action=viewthread&amp;threadid=<?=$TopicID?>">Visit</a>
428
         <br /><strong>Topic:</strong> <a href="forums.php?action=viewthread&amp;threadid=<?=$TopicID?>">Visit</a>
431
       </div>
429
       </div>
432
     </div>
430
     </div>

+ 1
- 1
sections/questions/ajax_get_answers.php View File

27
       </span>
27
       </span>
28
     </div>
28
     </div>
29
     <div class="pad">
29
     <div class="pad">
30
-<?=      Text::full_format($Answer['Answer'])?>
30
+<?=     Text::full_format($Answer['Answer'])?>
31
     </div>
31
     </div>
32
   </div>
32
   </div>
33
 <?
33
 <?

+ 1
- 1
sections/questions/answer_question.php View File

34
       </span>
34
       </span>
35
     </div>
35
     </div>
36
     <div class="pad">
36
     <div class="pad">
37
-<?=      Text::full_format($Question['Question'])?>
37
+<?=     Text::full_format($Question['Question'])?>
38
     </div>
38
     </div>
39
   </div>
39
   </div>
40
   <div class="center box pad">
40
   <div class="center box pad">

+ 1
- 1
sections/questions/popular_questions.php View File

55
         </span>
55
         </span>
56
       </div>
56
       </div>
57
       <div class="pad">
57
       <div class="pad">
58
-<?=        Text::full_format($Question['Question'])?>
58
+<?=       Text::full_format($Question['Question'])?>
59
       </div>
59
       </div>
60
     </div>
60
     </div>
61
 <?  } ?>
61
 <?  } ?>

+ 1
- 1
sections/questions/view_answers.php View File

78
       </span>
78
       </span>
79
     </div>
79
     </div>
80
     <div class="pad">
80
     <div class="pad">
81
-<?=      Text::full_format("[quote=" . $Question['Username'] . "]". $Question['Question'] . "[/quote]\n". $Question['Answer'])?>
81
+<?=     Text::full_format("[quote=" . $Question['Username'] . "]". $Question['Question'] . "[/quote]\n". $Question['Answer'])?>
82
     </div>
82
     </div>
83
   </div>
83
   </div>
84
 <?  } ?>
84
 <?  } ?>

+ 1
- 1
sections/register/step1.php View File

75
 <? } else { ?>
75
 <? } else { ?>
76
   An email has been sent to the address that you provided. After you confirm your email address, you will be able to log into your account.
76
   An email has been sent to the address that you provided. After you confirm your email address, you will be able to log into your account.
77
 
77
 
78
-<?     if ($NewInstall) {
78
+<?  if ($NewInstall) {
79
       echo "Since this is a new installation, you can log in directly without having to confirm your account.";
79
       echo "Since this is a new installation, you can log in directly without having to confirm your account.";
80
     }
80
     }
81
 } ?>
81
 } ?>

+ 1
- 1
sections/reportsv2/ajax_create_report.php View File

2
 /*
2
 /*
3
  * This page is for creating a report using AJAX.
3
  * This page is for creating a report using AJAX.
4
  * It should have the following posted fields:
4
  * It should have the following posted fields:
5
- *   [auth] => AUTH_KEY
5
+ *  [auth] => AUTH_KEY
6
  *  [torrentid] => TORRENT_ID
6
  *  [torrentid] => TORRENT_ID
7
  *  [type] => TYPE
7
  *  [type] => TYPE
8
  *  [otherid] => OTHER_ID
8
  *  [otherid] => OTHER_ID

+ 2
- 2
sections/reportsv2/static.php View File

684
             | <input type="button" value="Unclaim" onclick="GiveBack(<?=$ReportID?>);" />
684
             | <input type="button" value="Unclaim" onclick="GiveBack(<?=$ReportID?>);" />
685
 <?          } else { ?>
685
 <?          } else { ?>
686
             | <input id="grab<?=$ReportID?>" type="button" value="Claim" onclick="Grab(<?=$ReportID?>);" />
686
             | <input id="grab<?=$ReportID?>" type="button" value="Claim" onclick="Grab(<?=$ReportID?>);" />
687
-<?          }  ?>
687
+<?          } ?>
688
             | Multi-resolve <input type="checkbox" name="multi" id="multi<?=$ReportID?>" checked="checked" />
688
             | Multi-resolve <input type="checkbox" name="multi" id="multi<?=$ReportID?>" checked="checked" />
689
             | <input type="button" id="submit_<?=$ReportID?>" value="Submit" onclick="TakeResolve(<?=$ReportID?>);" />
689
             | <input type="button" id="submit_<?=$ReportID?>" value="Submit" onclick="TakeResolve(<?=$ReportID?>);" />
690
           </td>
690
           </td>
716
         </tr>
716
         </tr>
717
 <?          if ($GroupID) { ?>
717
 <?          if ($GroupID) { ?>
718
         <tr>
718
         <tr>
719
-          <td  colspan="4" style="text-align: center;">
719
+          <td colspan="4" style="text-align: center;">
720
             <input id="grab<?=$ReportID?>" type="button" value="Claim" onclick="Grab(<?=$ReportID?>);" />
720
             <input id="grab<?=$ReportID?>" type="button" value="Claim" onclick="Grab(<?=$ReportID?>);" />
721
           </td>
721
           </td>
722
         </tr>
722
         </tr>

+ 2
- 2
sections/reportsv2/takereport.php View File

4
  * It checks for (in order):
4
  * It checks for (in order):
5
  * 1. The usual POST injections, then checks that things.
5
  * 1. The usual POST injections, then checks that things.
6
  * 2. Things that are required by the report type are filled
6
  * 2. Things that are required by the report type are filled
7
- *   ('1' in the report_fields array).
7
+ *    ('1' in the report_fields array).
8
  * 3. Things that are filled are filled with correct things.
8
  * 3. Things that are filled are filled with correct things.
9
  * 4. That the torrent you're reporting still exists.
9
  * 4. That the torrent you're reporting still exists.
10
  *
10
  *
62
 
62
 
63
 if (!empty($_POST['link'])) {
63
 if (!empty($_POST['link'])) {
64
   //resource_type://domain:port/filepathname?query_string#anchor
64
   //resource_type://domain:port/filepathname?query_string#anchor
65
-  //          http://    www      .foo.com                /bar
65
+  //          http://   www     .foo.com                /bar
66
   if (preg_match_all('/'.URL_REGEX.'/is', $_POST['link'], $Matches)) {
66
   if (preg_match_all('/'.URL_REGEX.'/is', $_POST['link'], $Matches)) {
67
     $Links = implode(' ', $Matches[0]);
67
     $Links = implode(' ', $Matches[0]);
68
   } else {
68
   } else {

+ 2
- 2
sections/requests/new_edit.php View File

255
           <td>
255
           <td>
256
             <a href="torrents.php?id=<?=$GroupID?>"><?=site_url()?>torrents.php?id=<?=$GroupID?></a><br />
256
             <a href="torrents.php?id=<?=$GroupID?>"><?=site_url()?>torrents.php?id=<?=$GroupID?></a><br />
257
             This request <?=($NewRequest ? 'will be' : 'is')?> associated with the above torrent group.
257
             This request <?=($NewRequest ? 'will be' : 'is')?> associated with the above torrent group.
258
-<?    if (!$NewRequest) {  ?>
258
+<?    if (!$NewRequest) { ?>
259
             If this is incorrect, please <a href="reports.php?action=report&amp;type=request&amp;id=<?=$RequestID?>">report this request</a> so that staff can fix it.
259
             If this is incorrect, please <a href="reports.php?action=report&amp;type=request&amp;id=<?=$RequestID?>">report this request</a> so that staff can fix it.
260
-<?     }  ?>
260
+<?    } ?>
261
             <input type="hidden" name="groupid" value="<?=$GroupID?>" />
261
             <input type="hidden" name="groupid" value="<?=$GroupID?>" />
262
           </td>
262
           </td>
263
         </tr>
263
         </tr>

+ 1
- 1
sections/requests/request.php View File

370
     <div class="box box2 box_request_desc">
370
     <div class="box box2 box_request_desc">
371
       <div class="head"><strong>Description</strong></div>
371
       <div class="head"><strong>Description</strong></div>
372
       <div class="pad">
372
       <div class="pad">
373
-<?=        Text::full_format($Request['Description']);?>
373
+<?=       Text::full_format($Request['Description']);?>
374
       </div>
374
       </div>
375
     </div>
375
     </div>
376
   <div id="request_comments">
376
   <div id="request_comments">

+ 2
- 2
sections/requests/requests.php View File

422
   </form>
422
   </form>
423
 <?    if (isset($PageLinks)) { ?>
423
 <?    if (isset($PageLinks)) { ?>
424
   <div class="linkbox">
424
   <div class="linkbox">
425
-    <?=  $PageLinks?>
425
+    <?= $PageLinks?>
426
   </div>
426
   </div>
427
 <?    } ?>
427
 <?    } ?>
428
   <table id="request_table" class="request_table border" cellpadding="6" cellspacing="1" border="0" width="100%">
428
   <table id="request_table" class="request_table border" cellpadding="6" cellspacing="1" border="0" width="100%">
535
       </td>
535
       </td>
536
       <td class="nobr">
536
       <td class="nobr">
537
         <span id="vote_count_<?=$RequestID?>"><?=number_format($VoteCount)?></span>
537
         <span id="vote_count_<?=$RequestID?>"><?=number_format($VoteCount)?></span>
538
-<?     if (!$IsFilled && check_perms('site_vote')) { ?>
538
+<?    if (!$IsFilled && check_perms('site_vote')) { ?>
539
         &nbsp;&nbsp; <a href="javascript:Vote(0, <?=$RequestID?>)" class="brackets"><strong>+</strong></a>
539
         &nbsp;&nbsp; <a href="javascript:Vote(0, <?=$RequestID?>)" class="brackets"><strong>+</strong></a>
540
 <?    } ?>
540
 <?    } ?>
541
       </td>
541
       </td>

+ 2
- 2
sections/schedule/daily/delete_dead_torrents.php View File

12
   FROM torrents AS t
12
   FROM torrents AS t
13
     JOIN torrents_group AS tg ON tg.ID = t.GroupID
13
     JOIN torrents_group AS tg ON tg.ID = t.GroupID
14
   WHERE
14
   WHERE
15
-    (t.last_action < '".time_minus(3600 * 24 * 28)."' AND t.last_action != 0)
15
+    (t.last_action < '".time_minus(3600 * 24 * 28)."' AND t.last_action IS NOT NULL)
16
     OR
16
     OR
17
-    (t.Time < '".time_minus(3600 * 24 * 2)."' AND t.last_action = 0)");
17
+    (t.Time < '".time_minus(3600 * 24 * 2)."' AND t.last_action IS NULL)");
18
 $Torrents = $DB->to_array(false, MYSQLI_NUM, false);
18
 $Torrents = $DB->to_array(false, MYSQLI_NUM, false);
19
 echo 'Found '.count($Torrents)." inactive torrents to be deleted.\n";
19
 echo 'Found '.count($Torrents)." inactive torrents to be deleted.\n";
20
 
20
 

+ 2
- 2
sections/schedule/daily/disable_inactive_users.php View File

8
     FROM users_info AS ui
8
     FROM users_info AS ui
9
       JOIN users_main AS um ON um.ID = ui.UserID
9
       JOIN users_main AS um ON um.ID = ui.UserID
10
       LEFT JOIN users_levels AS ul ON ul.UserID = um.ID AND ul.PermissionID = '".CELEB."'
10
       LEFT JOIN users_levels AS ul ON ul.UserID = um.ID AND ul.PermissionID = '".CELEB."'
11
-    WHERE um.PermissionID IN ('".USER."', '".MEMBER  ."')
11
+    WHERE um.PermissionID IN ('".USER."', '".MEMBER ."')
12
       AND um.LastAccess < '".time_minus(3600 * 24 * 110, true)."'
12
       AND um.LastAccess < '".time_minus(3600 * 24 * 110, true)."'
13
       AND um.LastAccess > '".time_minus(3600 * 24 * 111, true)."'
13
       AND um.LastAccess > '".time_minus(3600 * 24 * 111, true)."'
14
       AND um.LastAccess IS NOT NULL
14
       AND um.LastAccess IS NOT NULL
27
     FROM users_info AS ui
27
     FROM users_info AS ui
28
       JOIN users_main AS um ON um.ID = ui.UserID
28
       JOIN users_main AS um ON um.ID = ui.UserID
29
       LEFT JOIN users_levels AS ul ON ul.UserID = um.ID AND ul.PermissionID = '".CELEB."'
29
       LEFT JOIN users_levels AS ul ON ul.UserID = um.ID AND ul.PermissionID = '".CELEB."'
30
-    WHERE um.PermissionID IN ('".USER."', '".MEMBER  ."')
30
+    WHERE um.PermissionID IN ('".USER."', '".MEMBER ."')
31
       AND um.LastAccess < '".time_minus(3600 * 24 * 30 * 4)."'
31
       AND um.LastAccess < '".time_minus(3600 * 24 * 30 * 4)."'
32
       AND um.LastAccess IS NOT NULL
32
       AND um.LastAccess IS NOT NULL
33
       AND ui.Donor = '0'
33
       AND ui.Donor = '0'

+ 1
- 1
sections/schedule/daily/ratio_watch.php View File

124
   $DB->query("
124
   $DB->query("
125
     UPDATE users_info AS i
125
     UPDATE users_info AS i
126
       JOIN users_main AS m ON m.ID = i.UserID
126
       JOIN users_main AS m ON m.ID = i.UserID
127
-    SET  m.can_leech = '0',
127
+    SET m.can_leech = '0',
128
       i.AdminComment = CONCAT('$sqltime - Leeching ability disabled by ratio watch system - required ratio: ', m.RequiredRatio, '\n\n', i.AdminComment)
128
       i.AdminComment = CONCAT('$sqltime - Leeching ability disabled by ratio watch system - required ratio: ', m.RequiredRatio, '\n\n', i.AdminComment)
129
     WHERE m.ID IN(".implode(',', $UserIDs).')');
129
     WHERE m.ID IN(".implode(',', $UserIDs).')');
130
 
130
 

+ 2
- 2
sections/staffpm/common_responses.php View File

11
   <div class="header">
11
   <div class="header">
12
     <h2>Staff PMs - Manage common responses</h2>
12
     <h2>Staff PMs - Manage common responses</h2>
13
     <div class="linkbox">
13
     <div class="linkbox">
14
-<?   if ($IsStaff) { ?>
14
+<?  if ($IsStaff) { ?>
15
       <a href="staffpm.php" class="brackets">View your unanswered</a>
15
       <a href="staffpm.php" class="brackets">View your unanswered</a>
16
-<?   } ?>
16
+<?  } ?>
17
       <a href="staffpm.php?view=unanswered" class="brackets">View all unanswered</a>
17
       <a href="staffpm.php?view=unanswered" class="brackets">View all unanswered</a>
18
       <a href="staffpm.php?view=open" class="brackets">View unresolved</a>
18
       <a href="staffpm.php?view=open" class="brackets">View unresolved</a>
19
       <a href="staffpm.php?view=resolved" class="brackets">View resolved</a>
19
       <a href="staffpm.php?view=resolved" class="brackets">View resolved</a>

+ 8
- 8
sections/staffpm/staff_inbox.php View File

94
   <div class="header">
94
   <div class="header">
95
     <h2><?=$ViewString?> Staff PMs</h2>
95
     <h2><?=$ViewString?> Staff PMs</h2>
96
     <div class="linkbox">
96
     <div class="linkbox">
97
-<?   if ($IsStaff) { ?>
97
+<?  if ($IsStaff) { ?>
98
       <a href="staffpm.php" class="brackets">View your unanswered</a>
98
       <a href="staffpm.php" class="brackets">View your unanswered</a>
99
-<?   } ?>
99
+<?  } ?>
100
       <a href="staffpm.php?view=unanswered" class="brackets">View all unanswered</a>
100
       <a href="staffpm.php?view=unanswered" class="brackets">View all unanswered</a>
101
       <a href="staffpm.php?view=open" class="brackets">View unresolved</a>
101
       <a href="staffpm.php?view=open" class="brackets">View unresolved</a>
102
       <a href="staffpm.php?view=resolved" class="brackets">View resolved</a>
102
       <a href="staffpm.php?view=resolved" class="brackets">View resolved</a>
103
-<?   if ($IsStaff) { ?>
103
+<?  if ($IsStaff) { ?>
104
       <a href="staffpm.php?action=scoreboard" class="brackets">View scoreboard</a>
104
       <a href="staffpm.php?action=scoreboard" class="brackets">View scoreboard</a>
105
 <?  } ?>
105
 <?  } ?>
106
     </div>
106
     </div>
134
 ?>
134
 ?>
135
       <table class="message_table<?=($ViewString != 'Resolved' && $IsStaff) ? ' checkboxes' : '' ?>">
135
       <table class="message_table<?=($ViewString != 'Resolved' && $IsStaff) ? ' checkboxes' : '' ?>">
136
         <tr class="colhead">
136
         <tr class="colhead">
137
-<?   if ($ViewString != 'Resolved' && $IsStaff) { ?>
137
+<?  if ($ViewString != 'Resolved' && $IsStaff) { ?>
138
           <td width="10"><input type="checkbox" onclick="toggleChecks('messageform', this);" /></td>
138
           <td width="10"><input type="checkbox" onclick="toggleChecks('messageform', this);" /></td>
139
-<?   } ?>
139
+<?  } ?>
140
           <td>Subject</td>
140
           <td>Subject</td>
141
           <td>Sender</td>
141
           <td>Sender</td>
142
           <td>Date</td>
142
           <td>Date</td>
179
     // Table row
179
     // Table row
180
 ?>
180
 ?>
181
         <tr class="row">
181
         <tr class="row">
182
-<?     if ($ViewString != 'Resolved' && $IsStaff) { ?>
182
+<?    if ($ViewString != 'Resolved' && $IsStaff) { ?>
183
           <td class="center"><input type="checkbox" name="id[]" value="<?=$ID?>" /></td>
183
           <td class="center"><input type="checkbox" name="id[]" value="<?=$ID?>" /></td>
184
-<?     } ?>
184
+<?    } ?>
185
           <td><a href="staffpm.php?action=viewconv&amp;id=<?=$ID?>"><?=display_str($Subject)?></a></td>
185
           <td><a href="staffpm.php?action=viewconv&amp;id=<?=$ID?>"><?=display_str($Subject)?></a></td>
186
           <td><?=$UserStr?></td>
186
           <td><?=$UserStr?></td>
187
           <td><?=time_diff($Date, 2, true)?></td>
187
           <td><?=time_diff($Date, 2, true)?></td>
199
   // Close table and multiresolve form
199
   // Close table and multiresolve form
200
 ?>
200
 ?>
201
       </table>
201
       </table>
202
-<?   if ($ViewString != 'Resolved' && $IsStaff) { ?>
202
+<?  if ($ViewString != 'Resolved' && $IsStaff) { ?>
203
       <div class="submit_div">
203
       <div class="submit_div">
204
         <input type="submit" value="Resolve selected" />
204
         <input type="submit" value="Resolve selected" />
205
       </div>
205
       </div>

+ 1
- 1
sections/staffpm/viewconv.php View File

223
             </optgroup>
223
             </optgroup>
224
           </select>
224
           </select>
225
           <input type="button" onclick="Assign();" value="Assign" />
225
           <input type="button" onclick="Assign();" value="Assign" />
226
-<?  } elseif ($IsFLS) {  // FLS assign button ?>
226
+<?  } elseif ($IsFLS) { // FLS assign button ?>
227
           <input type="button" value="Assign to staff" onclick="location.href='staffpm.php?action=assign&amp;to=staff&amp;convid=<?=$ConvID?>';" />
227
           <input type="button" value="Assign to staff" onclick="location.href='staffpm.php?action=assign&amp;to=staff&amp;convid=<?=$ConvID?>';" />
228
           <input type="button" value="Assign to forum staff" onclick="location.href='staffpm.php?action=assign&amp;to=forum&amp;convid=<?=$ConvID?>';" />
228
           <input type="button" value="Assign to forum staff" onclick="location.href='staffpm.php?action=assign&amp;to=forum&amp;convid=<?=$ConvID?>';" />
229
 <?
229
 <?

+ 3
- 3
sections/tools/managers/ajax_get_calendar_event.php View File

41
   $Categories = Calendar::$Categories;
41
   $Categories = Calendar::$Categories;
42
   foreach ($Categories as $Key => $Value) {
42
   foreach ($Categories as $Key => $Value) {
43
 ?>
43
 ?>
44
-          <option  value="<?=$Key?>"<?=$Key == $Event['Category'] ? ' selected="selected"' : ''?>><?=$Value?></option>
44
+          <option value="<?=$Key?>"<?=$Key == $Event['Category'] ? ' selected="selected"' : ''?>><?=$Value?></option>
45
 <?  } ?>
45
 <?  } ?>
46
         </select>
46
         </select>
47
       </td>
47
       </td>
54
   $Importances = Calendar::$Importances;
54
   $Importances = Calendar::$Importances;
55
   foreach ($Importances as $Key => $Value) {
55
   foreach ($Importances as $Key => $Value) {
56
 ?>
56
 ?>
57
-          <option  value="<?=$Key?>"<?=$Key == $Event['Importance'] ? ' selected="selected"' : ''?>><?=$Value?></option>
57
+          <option value="<?=$Key?>"<?=$Key == $Event['Importance'] ? ' selected="selected"' : ''?>><?=$Value?></option>
58
 <?  } ?>
58
 <?  } ?>
59
         </select>
59
         </select>
60
       </td>
60
       </td>
67
   $Teams = Calendar::$Teams;
67
   $Teams = Calendar::$Teams;
68
   foreach ($Teams as $Key => $Value) {
68
   foreach ($Teams as $Key => $Value) {
69
 ?>
69
 ?>
70
-          <option  value="<?=$Key?>"<?=$Key == $Event['Team'] ? ' selected="selected"' : ''?>><?=$Value?></option>
70
+          <option value="<?=$Key?>"<?=$Key == $Event['Team'] ? ' selected="selected"' : ''?>><?=$Value?></option>
71
 <?  } ?>
71
 <?  } ?>
72
         </select>
72
         </select>
73
       </td>
73
       </td>

+ 10
- 10
sections/tools/tools.php View File

52
     <div class="permission_subcontainer">
52
     <div class="permission_subcontainer">
53
       <table class="layout">
53
       <table class="layout">
54
         <tr class="colhead"><td>Administration</td></tr>
54
         <tr class="colhead"><td>Administration</td></tr>
55
-<?=        $ToolsHTML ?>
55
+<?=       $ToolsHTML ?>
56
       </table>
56
       </table>
57
     </div>
57
     </div>
58
 <?
58
 <?
71
     <div class="permission_subcontainer">
71
     <div class="permission_subcontainer">
72
       <table class="layout">
72
       <table class="layout">
73
         <tr class="colhead"><td>Announcements</td></tr>
73
         <tr class="colhead"><td>Announcements</td></tr>
74
-<?=        $ToolsHTML ?>
74
+<?=       $ToolsHTML ?>
75
       </table>
75
       </table>
76
     </div>
76
     </div>
77
 <?
77
 <?
86
     <div class="permission_subcontainer">
86
     <div class="permission_subcontainer">
87
       <table class="layout">
87
       <table class="layout">
88
         <tr class="colhead"><td>Community</td></tr>
88
         <tr class="colhead"><td>Community</td></tr>
89
-<?=        $ToolsHTML ?>
89
+<?=       $ToolsHTML ?>
90
       </table>
90
       </table>
91
     </div>
91
     </div>
92
 <?
92
 <?
104
     <div class="permission_subcontainer">
104
     <div class="permission_subcontainer">
105
       <table class="layout">
105
       <table class="layout">
106
         <tr class="colhead"><td>Finances</td></tr>
106
         <tr class="colhead"><td>Finances</td></tr>
107
-<?=        $ToolsHTML ?>
107
+<?=       $ToolsHTML ?>
108
       </table>
108
       </table>
109
     </div>
109
     </div>
110
 <?  } ?>
110
 <?  } ?>
124
     <div class="permission_subcontainer">
124
     <div class="permission_subcontainer">
125
       <table class="layout">
125
       <table class="layout">
126
         <tr class="colhead"><td>Queue</td></tr>
126
         <tr class="colhead"><td>Queue</td></tr>
127
-<?=        $ToolsHTML ?>
127
+<?=       $ToolsHTML ?>
128
       </table>
128
       </table>
129
     </div>
129
     </div>
130
 <?
130
 <?
142
     <div class="permission_subcontainer">
142
     <div class="permission_subcontainer">
143
       <table class="layout">
143
       <table class="layout">
144
         <tr class="colhead"><td>Managers</td></tr>
144
         <tr class="colhead"><td>Managers</td></tr>
145
-<?=        $ToolsHTML ?>
145
+<?=       $ToolsHTML ?>
146
       </table>
146
       </table>
147
     </div>
147
     </div>
148
 <?
148
 <?
163
     <div class="permission_subcontainer">
163
     <div class="permission_subcontainer">
164
       <table class="layout">
164
       <table class="layout">
165
         <tr class="colhead"><td>Developer Sandboxes</td></tr>
165
         <tr class="colhead"><td>Developer Sandboxes</td></tr>
166
-<?=        $ToolsHTML ?>
166
+<?=       $ToolsHTML ?>
167
       </table>
167
       </table>
168
     </div>
168
     </div>
169
 <?  } ?>
169
 <?  } ?>
188
     <div class="permission_subcontainer">
188
     <div class="permission_subcontainer">
189
       <table class="layout">
189
       <table class="layout">
190
         <tr class="colhead"><td>Site Information</td></tr>
190
         <tr class="colhead"><td>Site Information</td></tr>
191
-<?=        $ToolsHTML ?>
191
+<?=       $ToolsHTML ?>
192
       </table>
192
       </table>
193
     </div>
193
     </div>
194
 <?
194
 <?
211
     <div class="permission_subcontainer">
211
     <div class="permission_subcontainer">
212
       <table class="layout">
212
       <table class="layout">
213
         <tr class="colhead"><td>Torrents</td></tr>
213
         <tr class="colhead"><td>Torrents</td></tr>
214
-<?=        $ToolsHTML ?>
214
+<?=       $ToolsHTML ?>
215
       </table>
215
       </table>
216
     </div>
216
     </div>
217
 <?
217
 <?
233
     <div class="permission_subcontainer">
233
     <div class="permission_subcontainer">
234
       <table class="layout">
234
       <table class="layout">
235
         <tr class="colhead"><td>Development</td></tr>
235
         <tr class="colhead"><td>Development</td></tr>
236
-<?=        $ToolsHTML ?>
236
+<?=       $ToolsHTML ?>
237
       </table>
237
       </table>
238
     </div>
238
     </div>
239
 <?  } ?>
239
 <?  } ?>

+ 1
- 1
sections/torrents/download.php View File

69
       t.Codec,
69
       t.Codec,
70
       tg.Year,
70
       tg.Year,
71
       tg.ID AS GroupID,
71
       tg.ID AS GroupID,
72
-      tg.Name,
72
+      COALESCE(NULLIF(tg.Name,''), NULLIF(tg.NameRJ,''), tg.NameJP) AS Name,
73
       tg.WikiImage,
73
       tg.WikiImage,
74
       tg.CategoryID,
74
       tg.CategoryID,
75
       t.Size,
75
       t.Size,

+ 3
- 3
sections/torrents/edit.php View File

1
 <?
1
 <?
2
 //**********************************************************************//
2
 //**********************************************************************//
3
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Edit form ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
3
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Edit form ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
4
-// This page relies on the TORRENT_FORM class. All it does is call    //
5
-// the necessary functions.                        //
4
+// This page relies on the TORRENT_FORM class. All it does is call      //
5
+// the necessary functions.                                             //
6
 //----------------------------------------------------------------------//
6
 //----------------------------------------------------------------------//
7
 // At the bottom, there are grouping functions which are off limits to  //
7
 // At the bottom, there are grouping functions which are off limits to  //
8
-// most members.                            //
8
+// most members.                                                        //
9
 //**********************************************************************//
9
 //**********************************************************************//
10
 
10
 
11
 require(SERVER_ROOT.'/classes/torrent_form.class.php');
11
 require(SERVER_ROOT.'/classes/torrent_form.class.php');

+ 1
- 19
sections/torrents/editgroup.php View File

19
 }
19
 }
20
 
20
 
21
 // Get the torrent group name and the body of the last revision
21
 // Get the torrent group name and the body of the last revision
22
-/*
23
-$DB->query("
24
-  SELECT
25
-    tg.Name,
26
-    wt.Image,
27
-    wt.Body,
28
-    tg.WikiImage,
29
-    tg.WikiBody,
30
-    tg.Year,
31
-    tg.RecordLabel,
32
-    tg.CatalogueNumber,
33
-    tg.ReleaseType,
34
-    tg.CategoryID,
35
-    tg.VanityHouse
36
-  FROM torrents_group AS tg
37
-    LEFT JOIN wiki_torrents AS wt ON wt.RevisionID = tg.RevisionID
38
-  WHERE tg.ID = '$GroupID'");
39
-  */
40
 $DB->query("
22
 $DB->query("
41
   SELECT
23
   SELECT
42
     tg.Name,
24
     tg.Name,
216
         <tr>
198
         <tr>
217
           <td class="label">
199
           <td class="label">
218
 <? if ($CategoryID == 1) {
200
 <? if ($CategoryID == 1) {
219
-    echo "Studio:";
201
+     echo "Studio:";
220
    } else {
202
    } else {
221
      echo "Publisher:";
203
      echo "Publisher:";
222
    }
204
    }

+ 1
- 1
sections/torrents/editgroupid.php View File

75
 
75
 
76
   $DB->query("
76
   $DB->query("
77
     UPDATE torrents
77
     UPDATE torrents
78
-    SET  GroupID = '$GroupID'
78
+    SET GroupID = '$GroupID'
79
     WHERE ID = $TorrentID");
79
     WHERE ID = $TorrentID");
80
 
80
 
81
   // Delete old torrent group if it's empty now
81
   // Delete old torrent group if it's empty now

+ 4
- 4
sections/torrents/takeedit.php View File

1
 <?
1
 <?
2
 //******************************************************************************//
2
 //******************************************************************************//
3
 //--------------- Take edit ----------------------------------------------------//
3
 //--------------- Take edit ----------------------------------------------------//
4
-// This pages handles the backend of the 'edit torrent' function. It checks    //
5
-// the data, and if it all validates, it edits the values in the database    //
6
-// that correspond to the torrent in question.                  //
4
+// This pages handles the backend of the 'edit torrent' function. It checks     //
5
+// the data, and if it all validates, it edits the values in the database       //
6
+// that correspond to the torrent in question.                                  //
7
 //******************************************************************************//
7
 //******************************************************************************//
8
 
8
 
9
 enforce_login();
9
 enforce_login();
16
 //******************************************************************************//
16
 //******************************************************************************//
17
 //--------------- Set $Properties array ----------------------------------------//
17
 //--------------- Set $Properties array ----------------------------------------//
18
 // This is used if the form doesn't validate, and when the time comes to enter  //
18
 // This is used if the form doesn't validate, and when the time comes to enter  //
19
-// it into the database.                            //
19
+// it into the database.                                                        //
20
 //******************************************************************************//
20
 //******************************************************************************//
21
 
21
 
22
 $Properties=[];
22
 $Properties=[];

+ 3
- 3
sections/torrents/takemasspm.php View File

1
 <?
1
 <?
2
 //******************************************************************************//
2
 //******************************************************************************//
3
 //--------------- Take mass PM -------------------------------------------------//
3
 //--------------- Take mass PM -------------------------------------------------//
4
-// This pages handles the backend of the 'Send Mass PM' function. It checks      //
5
-// the data, and if it all validates, it sends a PM to everyone who snatched  //
6
-// the torrent.                                    //
4
+// This pages handles the backend of the 'Send Mass PM' function. It checks     //
5
+// the data, and if it all validates, it sends a PM to everyone who snatched    //
6
+// the torrent.                                                                 //
7
 //******************************************************************************//
7
 //******************************************************************************//
8
 
8
 
9
 authorize();
9
 authorize();

+ 1
- 1
sections/upload/upload.php View File

120
       <td width="50%"><strong>Name</strong></td>
120
       <td width="50%"><strong>Name</strong></td>
121
       <td><strong>Comment</strong></td>
121
       <td><strong>Comment</strong></td>
122
     </tr>
122
     </tr>
123
-<?   $TimeDiff = strtotime('-1 month', strtotime('now'));
123
+<?  $TimeDiff = strtotime('-1 month', strtotime('now'));
124
   foreach ($DNU as $BadUpload) {
124
   foreach ($DNU as $BadUpload) {
125
     list($Name, $Comment, $Updated) = $BadUpload;
125
     list($Name, $Comment, $Updated) = $BadUpload;
126
 ?>
126
 ?>

+ 2
- 2
sections/user/invite.php View File

28
   FROM invites
28
   FROM invites
29
   WHERE InviterID = '$UserID'
29
   WHERE InviterID = '$UserID'
30
   ORDER BY Expires");
30
   ORDER BY Expires");
31
-$Pending =   $DB->to_array();
31
+$Pending = $DB->to_array();
32
 
32
 
33
-$OrderWays = array('username', 'email',  'joined', 'lastseen', 'uploaded', 'downloaded', 'ratio');
33
+$OrderWays = array('username', 'email', 'joined', 'lastseen', 'uploaded', 'downloaded', 'ratio');
34
 
34
 
35
 if (empty($_GET['order'])) {
35
 if (empty($_GET['order'])) {
36
   $CurrentOrder = 'id';
36
   $CurrentOrder = 'id';

+ 1
- 1
sections/user/linkedfunctions.php View File

225
     }
225
     }
226
 ?>
226
 ?>
227
           </tr>
227
           </tr>
228
-<?  }  ?>
228
+<?  } ?>
229
           <tr>
229
           <tr>
230
             <td colspan="5" align="left" style="border-top: thin solid;"><strong>Comments:</strong></td>
230
             <td colspan="5" align="left" style="border-top: thin solid;"><strong>Comments:</strong></td>
231
           </tr>
231
           </tr>

+ 8
- 8
sections/user/notify_edit.php View File

57
 foreach ($Notifications as $N) { // $N stands for Notifications
57
 foreach ($Notifications as $N) { // $N stands for Notifications
58
   $i++;
58
   $i++;
59
   $NewFilter = $N['ID'] === false;
59
   $NewFilter = $N['ID'] === false;
60
-  $N['Artists']    = implode(', ', explode('|', substr($N['Artists'], 1, -1)));
61
-  $N['Tags']      = implode(', ', explode('|', substr($N['Tags'], 1, -1)));
62
-  $N['NotTags']    = implode(', ', explode('|', substr($N['NotTags'], 1, -1)));
63
-  $N['ReleaseTypes']   = explode('|', substr($N['ReleaseTypes'], 1, -1));
60
+  $N['Artists']      = implode(', ', explode('|', substr($N['Artists'], 1, -1)));
61
+  $N['Tags']         = implode(', ', explode('|', substr($N['Tags'], 1, -1)));
62
+  $N['NotTags']      = implode(', ', explode('|', substr($N['NotTags'], 1, -1)));
63
+  $N['ReleaseTypes'] = explode('|', substr($N['ReleaseTypes'], 1, -1));
64
   $N['Categories']   = explode('|', substr($N['Categories'], 1, -1));
64
   $N['Categories']   = explode('|', substr($N['Categories'], 1, -1));
65
-  $N['Formats']     = explode('|', substr($N['Formats'], 1, -1));
66
-  $N['Encodings']   = explode('|', substr($N['Encodings'], 1, -1));
67
-  $N['Media']     = explode('|', substr($N['Media'], 1, -1));
68
-  $N['Users']     = explode('|', substr($N['Users'], 1, -1));
65
+  $N['Formats']      = explode('|', substr($N['Formats'], 1, -1));
66
+  $N['Encodings']    = explode('|', substr($N['Encodings'], 1, -1));
67
+  $N['Media']        = explode('|', substr($N['Media'], 1, -1));
68
+  $N['Users']        = explode('|', substr($N['Users'], 1, -1));
69
 
69
 
70
   $Usernames = '';
70
   $Usernames = '';
71
   foreach ($N['Users'] as $UserID) {
71
   foreach ($N['Users'] as $UserID) {

+ 1
- 1
sections/user/user.php View File

272
     <div class="box box_image box_image_avatar">
272
     <div class="box box_image box_image_avatar">
273
       <div class="head colhead_dark">User</div>
273
       <div class="head colhead_dark">User</div>
274
       <div class="avatar" align="center">
274
       <div class="avatar" align="center">
275
-<?=        Users::show_avatar($Avatar, $UserID, $Username, $HeavyInfo['DisableAvatars'])?>
275
+<?=       Users::show_avatar($Avatar, $UserID, $Username, $HeavyInfo['DisableAvatars'])?>
276
       </div>
276
       </div>
277
     </div>
277
     </div>
278
 <? }
278
 <? }

+ 5
- 5
sections/userhistory/post_history.php View File

123
 
123
 
124
   if ($ShowUnread) {
124
   if ($ShowUnread) {
125
     $sql .= '
125
     $sql .= '
126
-      AND (  (t.IsLocked = \'0\' OR t.IsSticky = \'1\')
126
+      AND ( (t.IsLocked = \'0\' OR t.IsSticky = \'1\')
127
           AND (l.PostID < t.LastPostID OR l.PostID IS NULL)
127
           AND (l.PostID < t.LastPostID OR l.PostID IS NULL)
128
         ) ';
128
         ) ';
129
   }
129
   }
218
     <colgroup>
218
     <colgroup>
219
 <?    if (Users::has_avatars_enabled()) { ?>
219
 <?    if (Users::has_avatars_enabled()) { ?>
220
       <col class="col_avatar" />
220
       <col class="col_avatar" />
221
-<?     } ?>
221
+<?    } ?>
222
       <col class="col_post_body" />
222
       <col class="col_post_body" />
223
     </colgroup>
223
     </colgroup>
224
     <tr class="colhead_dark">
224
     <tr class="colhead_dark">
248
 <?    if ($ViewingOwn && !in_array($TopicID, $UserSubscriptions)) { ?>
248
 <?    if ($ViewingOwn && !in_array($TopicID, $UserSubscriptions)) { ?>
249
           <a href="#" onclick="Subscribe(<?=$TopicID?>); $('.subscribelink<?=$TopicID?>').remove(); return false;" class="brackets subscribelink<?=$TopicID?>">Subscribe</a>
249
           <a href="#" onclick="Subscribe(<?=$TopicID?>); $('.subscribelink<?=$TopicID?>').remove(); return false;" class="brackets subscribelink<?=$TopicID?>">Subscribe</a>
250
           &nbsp;
250
           &nbsp;
251
-<?     } ?>
251
+<?    } ?>
252
           <a href="#">&uarr;</a>
252
           <a href="#">&uarr;</a>
253
         </span>
253
         </span>
254
       </td>
254
       </td>
270
           <br />
270
           <br />
271
 <?        if (check_perms('site_moderate_forums')) { ?>
271
 <?        if (check_perms('site_moderate_forums')) { ?>
272
           <a href="#content<?=$PostID?>" onclick="LoadEdit(<?=$PostID?>, 1);">&laquo;</a>
272
           <a href="#content<?=$PostID?>" onclick="LoadEdit(<?=$PostID?>, 1);">&laquo;</a>
273
-<?         } ?>
273
+<?        } ?>
274
           Last edited by
274
           Last edited by
275
           <?=Users::format_username($EditedUserID, false, false, false) ?> <?=time_diff($EditedTime, 2, true, true)?>
275
           <?=Users::format_username($EditedUserID, false, false, false) ?> <?=time_diff($EditedTime, 2, true, true)?>
276
 <?      } ?>
276
 <?      } ?>
281
   $DB->set_query_id($QueryID);
281
   $DB->set_query_id($QueryID);
282
 ?>
282
 ?>
283
   </table>
283
   </table>
284
-<?   } ?>
284
+<?  } ?>
285
   <div class="linkbox">
285
   <div class="linkbox">
286
 <?=$Pages?>
286
 <?=$Pages?>
287
   </div>
287
   </div>

+ 4
- 32
static/styles/beluga/style.css View File

99
   font-size: 23px;
99
   font-size: 23px;
100
 }
100
 }
101
 
101
 
102
+#torrents .header h2 {
103
+  text-align: center;
104
+}
105
+
102
 h3,h4 {
106
 h3,h4 {
103
   font-size: 18px;
107
   font-size: 18px;
104
 }
108
 }
1188
   white-space: nowrap
1192
   white-space: nowrap
1189
 }
1193
 }
1190
 
1194
 
1191
-form[action="inbox.php"] .box.pad.center {
1192
-  margin: 0;
1193
-  width: 900px;
1194
-  padding: 0;
1195
-  margin-top: 10px!important;
1196
-  background: none!important
1197
-}
1198
-
1199
-form[action="inbox.php"] .box.pad table {
1200
-  background: initial!important
1201
-}
1202
-
1203
-#kb .sidebar .box.pad {
1204
-  margin-top: 2px
1205
-}
1206
-
1207
-#tvnews .head {
1208
-  height: initial
1209
-}
1210
-
1211
-#tvnews .sidebar {
1212
-  margin-top: 27px
1213
-}
1214
-
1215
-#tvschedule td {
1216
-  border: none
1217
-}
1218
-
1219
-#collages td {
1220
-  padding: 3px
1221
-}
1222
-
1223
 #collages .sign,#torrents .sign {
1195
 #collages .sign,#torrents .sign {
1224
   padding: 5px;
1196
   padding: 5px;
1225
   position: relative;
1197
   position: relative;

Loading…
Cancel
Save