Browse Source

Remove label aliases and apply Skeleton to the Toolbox

biotorrents 4 years ago
parent
commit
da6d0c0cee
40 changed files with 74 additions and 213 deletions
  1. 2
    2
      classes/donationsview.class.php
  2. 1
    1
      classes/permissions_form.php
  3. 1
    1
      classes/torrent_form.class.php
  4. 0
    10
      gazelle.sql
  5. 1
    1
      sections/better/better.php
  6. 1
    1
      sections/collages/browse.php
  7. 1
    1
      sections/collages/recover.php
  8. 1
    1
      sections/forums/forum.php
  9. 1
    1
      sections/forums/newthread.php
  10. 5
    4
      sections/forums/thread.php
  11. 1
    1
      sections/requests/request.php
  12. 1
    1
      sections/tools/data/invite_pool.php
  13. 1
    1
      sections/tools/data/registration_log.php
  14. 1
    1
      sections/tools/development/clear_cache.php
  15. 1
    1
      sections/tools/development/service_stats.php
  16. 1
    1
      sections/tools/finances/donation_log.php
  17. 0
    4
      sections/tools/index.php
  18. 2
    2
      sections/tools/managers/bans.php
  19. 5
    5
      sections/tools/managers/email_blacklist.php
  20. 2
    2
      sections/tools/managers/global_notification.php
  21. 0
    114
      sections/tools/managers/label_aliases.php
  22. 1
    1
      sections/tools/managers/mass_pm.php
  23. 1
    1
      sections/tools/managers/multiple_freeleech.php
  24. 1
    1
      sections/tools/managers/news.php
  25. 1
    1
      sections/tools/managers/official_tags.php
  26. 1
    1
      sections/tools/managers/permissions_alter.php
  27. 1
    1
      sections/tools/managers/permissions_list.php
  28. 2
    2
      sections/tools/managers/sitewide_freeleech.php
  29. 2
    2
      sections/tools/managers/tag_aliases.php
  30. 1
    1
      sections/tools/managers/tokens.php
  31. 4
    2
      sections/tools/managers/whitelist_list.php
  32. 1
    1
      sections/tools/misc/create_user.php
  33. 1
    1
      sections/tools/misc/database_key.php
  34. 1
    1
      sections/tools/misc/manipulate_tree.php
  35. 1
    1
      sections/tools/misc/tags.php
  36. 9
    11
      sections/tools/tools.php
  37. 1
    1
      sections/user/permissions.php
  38. 6
    6
      sections/user/user.php
  39. 1
    1
      static/styles/bookish/scss/layout.scss
  40. 9
    21
      static/styles/global/scss/skeleton-fixes.scss

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

6
     public static function render_mod_donations($UserID)
6
     public static function render_mod_donations($UserID)
7
     {
7
     {
8
         ?>
8
         ?>
9
-<table class="layout box" id="donation_box">
9
+<table class="box skeleton-fix" id="donation_box">
10
   <tr class="colhead">
10
   <tr class="colhead">
11
     <td colspan="2">
11
     <td colspan="2">
12
       Donor System (add points)
12
       Donor System (add points)
34
   </tr>
34
   </tr>
35
 </table>
35
 </table>
36
 
36
 
37
-<table class="layout box" id="donor_points_box">
37
+<table class="box skeleton-fix" id="donor_points_box">
38
   <tr class="colhead">
38
   <tr class="colhead">
39
     <td colspan="3" class="tooltip"
39
     <td colspan="3" class="tooltip"
40
       title='Use this tool only when manually correcting values. If crediting donations normally, use the "Donor System (add points)" tool'>
40
       title='Use this tool only when manually correcting values. If crediting donations normally, use the "Donor System (add points)" tool'>

+ 1
- 1
classes/permissions_form.php View File

284
     </div>
284
     </div>
285
     
285
     
286
     <div class="submit_container">
286
     <div class="submit_container">
287
-      <input type="submit" name="submit" value="Save Permission Class" />
287
+      <input type="submit" name="submit" class ="button-primary" value="Save Permission Class" />
288
     </div>
288
     </div>
289
 HTML;
289
 HTML;
290
 }
290
 }

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

419
 
419
 
420
         # Start printing the form
420
         # Start printing the form
421
         echo '<h2 class="header">Torrent Form</h2>';
421
         echo '<h2 class="header">Torrent Form</h2>';
422
-        echo '<table class="torrent_form">';
422
+        echo '<table class="torrent_form skeleton-fix">';
423
 
423
 
424
         
424
         
425
         /**
425
         /**

+ 0
- 10
gazelle.sql View File

566
 ) ENGINE=InnoDB CHARSET=utf8mb4;
566
 ) ENGINE=InnoDB CHARSET=utf8mb4;
567
 
567
 
568
 
568
 
569
-CREATE TABLE `label_aliases` (
570
-  `ID` int NOT NULL AUTO_INCREMENT,
571
-  `BadLabel` varchar(100) NOT NULL, -- todo: 100 vs. 255?
572
-  `AliasLabel` varchar(100) NOT NULL, -- todo
573
-  PRIMARY KEY (`ID`),
574
-  KEY `BadLabel` (`BadLabel`),
575
-  KEY `AliasLabel` (`AliasLabel`)
576
-) ENGINE=InnoDB CHARSET=utf8mb4;
577
-
578
-
579
 -- 2020-03-09
569
 -- 2020-03-09
580
 CREATE TABLE `last_sent_email` (
570
 CREATE TABLE `last_sent_email` (
581
   `UserID` int NOT NULL,
571
   `UserID` int NOT NULL,

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

24
 </h3>
24
 </h3>
25
 
25
 
26
 <div class="box pad">
26
 <div class="box pad">
27
-  <table class="better_list">
27
+  <table class="skeleton-fix">
28
     <tr class="colhead">
28
     <tr class="colhead">
29
       <td style="width: 150px;">Method</td>
29
       <td style="width: 150px;">Method</td>
30
       <td style="width: 400px;">Additional Information</td>
30
       <td style="width: 400px;">Additional Information</td>

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

180
         <input type="hidden" name="action" value="search" />
180
         <input type="hidden" name="action" value="search" />
181
       </div>
181
       </div>
182
 
182
 
183
-      <table cellpadding="6" cellspacing="1" border="0" class="layout torrent_search" width="100%">
183
+      <table cellpadding="6" cellspacing="1" border="0" class="skeleton-fix" width="100%">
184
         <tr id="search_terms">
184
         <tr id="search_terms">
185
           <td class="label"></td>
185
           <td class="label"></td>
186
           <td>
186
           <td>

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

39
           <input type="text" name="collage_id" size="8" />
39
           <input type="text" name="collage_id" size="8" />
40
         </div>
40
         </div>
41
         <div class="submit_div">
41
         <div class="submit_div">
42
-          <input value="Recover!" type="submit" />
42
+          <input value="Recover" class="button-primary" type="submit" />
43
         </div>
43
         </div>
44
       </form>
44
       </form>
45
     </div>
45
     </div>

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

186
   </div>
186
   </div>
187
 </div>
187
 </div>
188
 
188
 
189
-<table class="forum_index alternate_rows" width="100%">
189
+<table class="forum_index skeleton-fix">
190
   <tr class="colhead">
190
   <tr class="colhead">
191
     <td style="width: 2%;"></td>
191
     <td style="width: 2%;"></td>
192
     <td>Latest</td>
192
     <td>Latest</td>

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

103
       <input type="hidden" name="auth"
103
       <input type="hidden" name="auth"
104
         value="<?=$LoggedUser['AuthKey']?>" />
104
         value="<?=$LoggedUser['AuthKey']?>" />
105
       <input type="hidden" name="forum" value="<?=$ForumID?>" />
105
       <input type="hidden" name="forum" value="<?=$ForumID?>" />
106
-      <table id="newthreadtext" class="layout new_thread">
106
+      <table id="newthreadtext" class="new_thread skeleton-fix">
107
         <tr>
107
         <tr>
108
           <td class="label">Title</td>
108
           <td class="label">Title</td>
109
           <td><input id="title" class="required" type="text" name="title" style="width: 98%;" /></td>
109
           <td><input id="title" class="required" type="text" name="title" style="width: 98%;" /></td>

+ 5
- 4
sections/forums/thread.php View File

435
         <br />
435
         <br />
436
         <br />
436
         <br />
437
         <?php } ?>
437
         <?php } ?>
438
-        <input type="button"
438
+        <input type="button" class="button-primary"
439
           onclick="ajax.post('index.php','poll',function(response) { $('#poll_container').raw().innerHTML = response});"
439
           onclick="ajax.post('index.php','poll',function(response) { $('#poll_container').raw().innerHTML = response});"
440
           value="Vote" />
440
           value="Vote" />
441
       </form>
441
       </form>
470
   </div>
470
   </div>
471
 </div>
471
 </div>
472
 <?php
472
 <?php
473
-} //End Polls
473
+} // End Polls
474
 
474
 
475
-//Sqeeze in stickypost
475
+// Sqeeze in stickypost
476
 if ($ThreadInfo['StickyPostID']) {
476
 if ($ThreadInfo['StickyPostID']) {
477
     if ($ThreadInfo['StickyPostID'] != $Thread[0]['ID']) {
477
     if ($ThreadInfo['StickyPostID'] != $Thread[0]['ID']) {
478
         array_unshift($Thread, $ThreadInfo['StickyPost']);
478
         array_unshift($Thread, $ThreadInfo['StickyPost']);
634
     ));
634
     ));
635
       }
635
       }
636
   }
636
   }
637
+
637
 if (check_perms('site_moderate_forums')) {
638
 if (check_perms('site_moderate_forums')) {
638
     G::$DB->query("
639
     G::$DB->query("
639
       SELECT ID, AuthorID, AddedTime, Body
640
       SELECT ID, AuthorID, AddedTime, Body
670
           $ID = 'topic_notes',
671
           $ID = 'topic_notes',
671
       ); ?>
672
       ); ?>
672
         </div>
673
         </div>
673
-        <input type="submit" value="Save" />
674
+        <input type="submit" class="button-primary" value="Save" />
674
       </td>
675
       </td>
675
     </tr>
676
     </tr>
676
   </table>
677
   </table>

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

244
     <div class="box">
244
     <div class="box">
245
       <div class="head"><strong>Info</strong></div>
245
       <div class="head"><strong>Info</strong></div>
246
       <div class="pad">
246
       <div class="pad">
247
-        <table class="layout request_form">
247
+        <table class="request_form skeleton-fix">
248
           <tr>
248
           <tr>
249
             <td class="label">Created</td>
249
             <td class="label">Created</td>
250
             <td>
250
             <td>

+ 1
- 1
sections/tools/data/invite_pool.php View File

76
           <input type="email" name="search" size="60"
76
           <input type="email" name="search" size="60"
77
             value="<?=display_str($Search)?>" />
77
             value="<?=display_str($Search)?>" />
78
           &nbsp;
78
           &nbsp;
79
-          <input type="submit" value="Search log" />
79
+          <input type="submit" class="button-primary" value="Search log" />
80
         </td>
80
         </td>
81
       </tr>
81
       </tr>
82
     </table>
82
     </table>

+ 1
- 1
sections/tools/data/registration_log.php View File

80
   <input type="hidden" name="action" value="registration_log" />
80
   <input type="hidden" name="action" value="registration_log" />
81
   Joined after: <input type="date" name="after_date" />
81
   Joined after: <input type="date" name="after_date" />
82
   Joined before: <input type="date" name="before_date" />
82
   Joined before: <input type="date" name="before_date" />
83
-  <input type="submit" />
83
+  <input type="submit" class="button-primary" />
84
 </form>
84
 </form>
85
 
85
 
86
 <?php
86
 <?php

+ 1
- 1
sections/tools/development/clear_cache.php View File

45
 
45
 
46
         <textarea type="text" name="key" id="key"
46
         <textarea type="text" name="key" id="key"
47
           class="inputtext"><?=((isset($_GET['key']) && (isset($_GET['submit']))) ? display_str($_GET['key']) : '')?></textarea>
47
           class="inputtext"><?=((isset($_GET['key']) && (isset($_GET['submit']))) ? display_str($_GET['key']) : '')?></textarea>
48
-        <input type="submit" name="submit" class="submit" />
48
+        <input type="submit" name="submit" class="submit button-primary" />
49
       </form>
49
       </form>
50
     </td>
50
     </td>
51
   </tr>
51
   </tr>

+ 1
- 1
sections/tools/development/service_stats.php View File

119
             <input type="hidden" name="auth"
119
             <input type="hidden" name="auth"
120
               value="<?=$LoggedUser['AuthKey']?>" />
120
               value="<?=$LoggedUser['AuthKey']?>" />
121
             <input type="hidden" name="global_flush" value="1" />
121
             <input type="hidden" name="global_flush" value="1" />
122
-            <input type="submit" value="Flush" />
122
+            <input type="submit" class="button-primary" value="Flush" />
123
           </form>
123
           </form>
124
         </td>
124
         </td>
125
       </tr>
125
       </tr>

+ 1
- 1
sections/tools/finances/donation_log.php View File

145
       </tr>
145
       </tr>
146
       <tr>
146
       <tr>
147
         <td>
147
         <td>
148
-          <input type="submit" value="Search donation log" />
148
+          <input type="submit" class="button-primary" value="Search donation log" />
149
         </td>
149
         </td>
150
       </tr>
150
       </tr>
151
     </table>
151
     </table>

+ 0
- 4
sections/tools/index.php View File

205
     include SERVER_ROOT.'/sections/tools/managers/tag_aliases.php';
205
     include SERVER_ROOT.'/sections/tools/managers/tag_aliases.php';
206
     break;
206
     break;
207
 
207
 
208
-  case 'label_aliases':
209
-    include SERVER_ROOT.'/sections/tools/managers/label_aliases.php';
210
-    break;
211
-
212
   case 'global_notification':
208
   case 'global_notification':
213
     include SERVER_ROOT.'/sections/tools/managers/global_notification.php';
209
     include SERVER_ROOT.'/sections/tools/managers/global_notification.php';
214
     break;
210
     break;

+ 2
- 2
sections/tools/managers/bans.php View File

109
             value="<?=(!empty($_GET['notes']) ? display_str($_GET['notes']) : '')?>" />
109
             value="<?=(!empty($_GET['notes']) ? display_str($_GET['notes']) : '')?>" />
110
         </td>
110
         </td>
111
         <td>
111
         <td>
112
-          <input type="submit" value="Search" />
112
+          <input type="submit" class="button-primary" value="Search" />
113
         </td>
113
         </td>
114
       </tr>
114
       </tr>
115
     </table>
115
     </table>
143
         <input type="text" size="72" name="notes" />
143
         <input type="text" size="72" name="notes" />
144
       </td>
144
       </td>
145
       <td>
145
       <td>
146
-        <input type="submit" name="submit" value="Create" />
146
+        <input type="submit" name="submit" class="button-primary" value="Create" />
147
       </td>
147
       </td>
148
     </form>
148
     </form>
149
   </tr>
149
   </tr>

+ 5
- 5
sections/tools/managers/email_blacklist.php View File

44
   <input type="hidden" name="action" value="email_blacklist" />
44
   <input type="hidden" name="action" value="email_blacklist" />
45
   <input type="email" name="email" size="30" placeholder="Email" />
45
   <input type="email" name="email" size="30" placeholder="Email" />
46
   <input type="search" name="comment" size="60" placeholder="Comment" />
46
   <input type="search" name="comment" size="60" placeholder="Comment" />
47
-  <input type="submit" value="Search" />
47
+  <input type="submit" class="button-primary" value="Search" />
48
 </form>
48
 </form>
49
 <div class="linkbox pager">
49
 <div class="linkbox pager">
50
   <br />
50
   <br />
68
       <input type="hidden" name="action" value="email_blacklist_alter" />
68
       <input type="hidden" name="action" value="email_blacklist_alter" />
69
       <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
69
       <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
70
       <td><input type="text" name="email" size="30" /></td>
70
       <td><input type="text" name="email" size="30" /></td>
71
-      <td colspan="2"><input type="text" name="comment" size="60" /></td>
72
-      <td><input type="submit" value="Create" /></td>
71
+      <td colspan="2"><input type="text" name="comment" size="50" /></td>
72
+      <td><input type="submit" class="button-primary" value="Create" /></td>
73
     </form>
73
     </form>
74
   </tr>
74
   </tr>
75
 <?
75
 <?
83
         <input type="hidden" name="id" value="<?=$Result['ID']?>" />
83
         <input type="hidden" name="id" value="<?=$Result['ID']?>" />
84
         <input type="email" name="email" value="<?=display_str($Result['Email'])?>" size="30" />
84
         <input type="email" name="email" value="<?=display_str($Result['Email'])?>" size="30" />
85
       </td>
85
       </td>
86
-      <td><input type="text" name="comment" value="<?=display_str($Result['Comment'])?>" size="60" /></td>
86
+      <td><input type="text" name="comment" value="<?=display_str($Result['Comment'])?>" size="50" /></td>
87
       <td><?=Users::format_username($Result ['UserID'], false, false, false)?><br /><?=time_diff($Result ['Time'], 1)?></td>
87
       <td><?=Users::format_username($Result ['UserID'], false, false, false)?><br /><?=time_diff($Result ['Time'], 1)?></td>
88
       <td>
88
       <td>
89
-        <input type="submit" name="submit" value="Edit" />
89
+        <input type="submit" name="submit" class="button-primary" value="Edit" />
90
         <input type="submit" name="submit" value="Delete" />
90
         <input type="submit" name="submit" value="Delete" />
91
       </td>
91
       </td>
92
     </form>
92
     </form>

+ 2
- 2
sections/tools/managers/global_notification.php View File

18
   <form action="tools.php" method="post">
18
   <form action="tools.php" method="post">
19
     <input type="hidden" name="action" value="take_global_notification" />
19
     <input type="hidden" name="action" value="take_global_notification" />
20
     <input type="hidden" name="type" value="set" />
20
     <input type="hidden" name="type" value="set" />
21
-    <table align="center">
21
+    <table class="skeleton-fix">
22
       <tr>
22
       <tr>
23
         <td class="label">
23
         <td class="label">
24
           Message
24
           Message
69
 
69
 
70
       <tr>
70
       <tr>
71
         <td>
71
         <td>
72
-          <input type="submit" name="set" value="Create Notification" />
72
+          <input type="submit" name="set" class="button-primary" value="Create Notification" />
73
         </td>
73
         </td>
74
 
74
 
75
         <?php if ($GlobalNotification) { ?>
75
         <?php if ($GlobalNotification) { ?>

+ 0
- 114
sections/tools/managers/label_aliases.php View File

1
-<?php
2
-/*
3
-if (!check_perms('torrents_edit') || $LoggedUser['DisableWiki']) {
4
-  error(403);
5
-}
6
-*/
7
-
8
-if (!check_perms('users_mod') && !$LoggedUser['ExtraClasses'][DELTA_TEAM]) {
9
-  error(403);
10
-}
11
-
12
-View::show_header('Label Aliases');
13
-
14
-$OrderBy = $_GET['order'] === 'BadLabels' ? 'BadLabel' : 'AliasLabel';
15
-/*
16
-$LabelID = (int)$_GET['id'];
17
-$LabelNameSQL = '';
18
-//TODO join with labels table to get label name
19
-if (!empty($LabelID)) {
20
-  $DB->query("
21
-    SELECT name
22
-    FROM labels
23
-    WHERE ID = '$LabelID'");
24
-  if ($DB->has_results()) {
25
-    list($LabelName) = $DB->next_record();
26
-  }
27
-  $LabelNameSQL = " WHERE AliasLabel = '$LabelName'";
28
-}
29
-*/
30
-
31
-if (isset($_POST['newalias'])) {
32
-  $BadLabel = db_string($_POST['BadLabel']);
33
-  $AliasLabel = db_string($_POST['AliasLabel']);
34
-
35
-  $DB->query("
36
-    INSERT INTO label_aliases (BadLabel, AliasLabel)
37
-    VALUES ('$BadLabel', '$AliasLabel')");
38
-}
39
-
40
-if (isset($_POST['changealias']) && is_number($_POST['aliasid'])) {
41
-  $AliasID = $_POST['aliasid'];
42
-  $BadLabel = db_string($_POST['BadLabel']);
43
-  $AliasLabel = db_string($_POST['AliasLabel']);
44
-
45
-  if ($_POST['save']) {
46
-    $DB->query("
47
-      UPDATE label_aliases
48
-      SET BadLabel = '$BadLabel', AliasLabel = '$AliasLabel'
49
-      WHERE ID = '$AliasID' ");
50
-  }
51
-  if ($_POST['delete']) {
52
-    $DB->query("
53
-      DELETE FROM label_aliases
54
-      WHERE ID = '$AliasID'");
55
-  }
56
-}
57
-?>
58
-<div class="header">
59
-  <h2>Label Aliases<?=($LabelName ? " for <a href=\"labels.php?id=$LabelID\">$LabelName</a>" : '')?></h2>
60
-  <div class="linkbox">
61
-    <a href="tools.php?action=label_aliases&amp;order=GoodLabels" class="brackets">Sort by good labels</a>
62
-    <a href="tools.php?action=label_aliases&amp;order=BadLabels" class="brackets">Sort by bad labels</a>
63
-  </div>
64
-</div>
65
-<table width="100%">
66
-  <tr class="colhead">
67
-    <td>Label</td>
68
-    <td>Renamed from</td>
69
-    <td>Submit</td>
70
-  </tr>
71
-  <tr />
72
-  <tr>
73
-    <form method="post" action="">
74
-      <input type="hidden" name="newalias" value="1" />
75
-      <td>
76
-        <input type="text" name="AliasLabel" />
77
-      </td>
78
-      <td>
79
-        <input type="text" name="BadLabel" />
80
-      </td>
81
-      <td>
82
-        <input type="submit" value="Add alias" />
83
-      </td>
84
-    </form>
85
-  </tr>
86
-<?
87
-$DB->query("
88
-  SELECT ID, BadLabel, AliasLabel
89
-  FROM label_aliases
90
-  $LabelNameSQL
91
-  ORDER BY $OrderBy");
92
-while (list($ID, $BadLabel, $AliasLabel) = $DB->next_record()) {
93
-?>
94
-  <tr>
95
-    <form method="post" action="">
96
-      <input type="hidden" name="changealias" value="1" />
97
-      <input type="hidden" name="aliasid" value="<?=$ID?>" />
98
-      <td>
99
-        <input type="text" name="AliasLabel" value="<?=$AliasLabel?>" />
100
-      </td>
101
-      <td>
102
-        <input type="text" name="BadLabel" value="<?=$BadLabel?>" />
103
-      </td>
104
-      <td>
105
-        <input type="submit" name="save" value="Save alias" />
106
-        <input type="submit" name="delete" value="Delete alias" />
107
-      </td>
108
-    </form>
109
-  </tr>
110
-<?
111
-}
112
-?>
113
-</table>
114
-<? View::show_footer(); ?>

+ 1
- 1
sections/tools/managers/mass_pm.php View File

45
       <div id="preview" class="hidden"></div>
45
       <div id="preview" class="hidden"></div>
46
       <div id="buttons" class="center">
46
       <div id="buttons" class="center">
47
         <input type="button" value="Preview" onclick="Quick_Preview();" />
47
         <input type="button" value="Preview" onclick="Quick_Preview();" />
48
-        <input type="submit" value="Send message" />
48
+        <input type="submit" class="button-primary" value="Send message" />
49
       </div>
49
       </div>
50
     </div>
50
     </div>
51
   </form>
51
   </form>

+ 1
- 1
sections/tools/managers/multiple_freeleech.php View File

112
                 <option value="m" <?=$_POST['scale'] == 'm' ? 'selected' : ''?>>MB</option>
112
                 <option value="m" <?=$_POST['scale'] == 'm' ? 'selected' : ''?>>MB</option>
113
                 <option value="g" <?=!isset($_POST['scale']) || $_POST['scale'] == 'g' ? 'selected' : ''?>>GB</option>
113
                 <option value="g" <?=!isset($_POST['scale']) || $_POST['scale'] == 'g' ? 'selected' : ''?>>GB</option>
114
             </select><br /><br />
114
             </select><br /><br />
115
-            <input type="submit" value="Submit" />
115
+            <input type="submit" class="button-primary" value="Submit" />
116
         </form>
116
         </form>
117
     </div>
117
     </div>
118
 </div>
118
 </div>

+ 1
- 1
sections/tools/managers/news.php View File

78
 ); ?>
78
 ); ?>
79
 
79
 
80
       <div class="center">
80
       <div class="center">
81
-        <input type="submit"
81
+        <input type="submit" class="button-primary"
82
           value="<?= ($_GET['action'] === 'news') ? 'Create news post' : 'Edit news post';?>">
82
           value="<?= ($_GET['action'] === 'news') ? 'Create news post' : 'Edit news post';?>">
83
       </div>
83
       </div>
84
     </div>
84
     </div>

+ 1
- 1
sections/tools/managers/official_tags.php View File

120
         </tr>
120
         </tr>
121
         <tr style="border-top: thin solid;">
121
         <tr style="border-top: thin solid;">
122
           <td colspan="11" style="text-align: center;">
122
           <td colspan="11" style="text-align: center;">
123
-            <input type="submit" value="Submit changes" />
123
+            <input type="submit" class="button-primary" value="Submit changes" />
124
           </td>
124
           </td>
125
         </tr>
125
         </tr>
126
 
126
 

+ 1
- 1
sections/tools/managers/permissions_alter.php View File

25
     <a href="tools.php?action=permissions" class="brackets">Back to permission list</a>
25
     <a href="tools.php?action=permissions" class="brackets">Back to permission list</a>
26
     <a href="tools.php" class="brackets">Back to tools</a>
26
     <a href="tools.php" class="brackets">Back to tools</a>
27
   </div>
27
   </div>
28
-  <table class="permission_head layout box">
28
+  <table class="permission_head skeleton-fix">
29
     <tr>
29
     <tr>
30
       <td class="label">Permission name</td>
30
       <td class="label">Permission name</td>
31
       <td><input type="text" name="name" id="name"
31
       <td><input type="text" name="name" id="name"

+ 1
- 1
sections/tools/managers/permissions_list.php View File

33
 if ($DB->has_results()) {
33
 if ($DB->has_results()) {
34
 ?>
34
 ?>
35
   <div class="box">
35
   <div class="box">
36
-  <table width="100%">
36
+  <table class="skeleton-fix">
37
     <tr class="colhead">
37
     <tr class="colhead">
38
       <td>Name</td>
38
       <td>Name</td>
39
       <td>Level</td>
39
       <td>Level</td>

+ 2
- 2
sections/tools/managers/sitewide_freeleech.php View File

94
         <br />
94
         <br />
95
         <input id="tag_duration" type="number" name="duration" placeholder="Duration (hours)" value="" />
95
         <input id="tag_duration" type="number" name="duration" placeholder="Duration (hours)" value="" />
96
         <br />
96
         <br />
97
-        <input type="submit" value="RELEASE THE LEECH" />
97
+        <input type="submit" class="button-primary" value="RELEASE THE LEECH" />
98
       </form>
98
       </form>
99
     </div>
99
     </div>
100
     <div class="box text-align: center;">
100
     <div class="box text-align: center;">
106
         <br />
106
         <br />
107
         <input id="global_duration" type="number" name="duration" placeholder="Duration (hours)" value="" />
107
         <input id="global_duration" type="number" name="duration" placeholder="Duration (hours)" value="" />
108
         <br />
108
         <br />
109
-        <input type="submit" value="RELEASE THE LEECH" />
109
+        <input type="submit" class="button-primary" value="RELEASE THE LEECH" />
110
     </div>
110
     </div>
111
   </div>
111
   </div>
112
   <? View::show_footer();
112
   <? View::show_footer();

+ 2
- 2
sections/tools/managers/tag_aliases.php View File

64
       </td>
64
       </td>
65
 <?php if (check_perms('users_mod')) { ?>
65
 <?php if (check_perms('users_mod')) { ?>
66
       <td>
66
       <td>
67
-        <input type="submit" value="Add alias" />
67
+        <input type="submit" class="button-primary" value="Add alias" />
68
       </td>
68
       </td>
69
 <?php } ?>
69
 <?php } ?>
70
     </form>
70
     </form>
88
       </td>
88
       </td>
89
 <?php if (check_perms('users_mod')) { ?>
89
 <?php if (check_perms('users_mod')) { ?>
90
       <td>
90
       <td>
91
-        <input type="submit" name="save" value="Save alias" />
91
+        <input type="submit" name="save" class="button-primary" value="Save alias" />
92
         <input type="submit" name="delete" value="Delete alias" />
92
         <input type="submit" name="delete" value="Delete alias" />
93
       </td>
93
       </td>
94
 <?php } ?>
94
 <?php } ?>

+ 1
- 1
sections/tools/managers/tokens.php View File

82
     <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
82
     <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
83
     Tokens to add: <input type="text" name="numtokens" size="5" style="text-align: right;" value="0" /><br /><br />
83
     Tokens to add: <input type="text" name="numtokens" size="5" style="text-align: right;" value="0" /><br /><br />
84
     <label for="leechdisabled">Grant tokens to leech disabled users: </label><input type="checkbox" id="leechdisabled" name="leechdisabled" value="1" /><br /><br />
84
     <label for="leechdisabled">Grant tokens to leech disabled users: </label><input type="checkbox" id="leechdisabled" name="leechdisabled" value="1" /><br /><br />
85
-    <input type="submit" name="addtokens" value="Add tokens" />
85
+    <input type="submit" name="addtokens" class="button-primary" value="Add tokens" />
86
   </form>
86
   </form>
87
 </div>
87
 </div>
88
 <br />
88
 <br />

+ 4
- 2
sections/tools/managers/whitelist_list.php View File

1
 <?
1
 <?
2
+#declare(strict_types = 1);
3
+
2
 if (!check_perms('admin_whitelist')) {
4
 if (!check_perms('admin_whitelist')) {
3
   error(403);
5
   error(403);
4
 }
6
 }
28
         <input type="text" size="10" name="peer_id" placeholder="Peer ID" />
30
         <input type="text" size="10" name="peer_id" placeholder="Peer ID" />
29
       </td>
31
       </td>
30
       <td>
32
       <td>
31
-        <input type="submit" value="Create" />
33
+        <input type="submit" class="button-primary" value="Create" />
32
       </td>
34
       </td>
33
     </tr>
35
     </tr>
34
   </table>
36
   </table>
56
         <input type="text" size="10" name="peer_id" value="<?=$Peer_ID?>" />
58
         <input type="text" size="10" name="peer_id" value="<?=$Peer_ID?>" />
57
       </td>
59
       </td>
58
       <td>
60
       <td>
59
-        <input type="submit" name="submit" value="Edit" />
61
+        <input type="submit" name="submit" class="button-primary" value="Edit" />
60
         <input type="submit" name="submit" value="Delete" />
62
         <input type="submit" name="submit" value="Delete" />
61
       </td>
63
       </td>
62
     </tr>
64
     </tr>

+ 1
- 1
sections/tools/misc/create_user.php View File

110
       </tr>
110
       </tr>
111
       <tr>
111
       <tr>
112
         <td colspan="2" align="right">
112
         <td colspan="2" align="right">
113
-          <input type="submit" name="submit" value="Create User" class="submit" />
113
+          <input type="submit" name="submit" value="Create User" class="submit button-primary" />
114
         </td>
114
         </td>
115
       </tr>
115
       </tr>
116
     </table>
116
     </table>

+ 1
- 1
sections/tools/misc/database_key.php View File

40
 
40
 
41
     <div style="display: flex;">
41
     <div style="display: flex;">
42
       <input type="text" name="dbkey" style="flex-grow: 1;" />
42
       <input type="text" name="dbkey" style="flex-grow: 1;" />
43
-      <input type="submit" name="submit" value="Update key" />
43
+      <input type="submit" name="submit" class="button-primary" value="Update key" />
44
     </div>
44
     </div>
45
 
45
 
46
   </form>
46
   </form>

+ 1
- 1
sections/tools/misc/manipulate_tree.php View File

109
           if ($_POST['perform'] === 'inviteprivs') { echo ' selected="selected"'; } ?>>Disable invites privileges</option>
109
           if ($_POST['perform'] === 'inviteprivs') { echo ' selected="selected"'; } ?>>Disable invites privileges</option>
110
           </select>
110
           </select>
111
         </td>
111
         </td>
112
-        <td align="left"><input type="submit" value="Go" /></td>
112
+        <td align="left"><input type="submit" class="button-primary" value="Go" /></td>
113
       </tr>
113
       </tr>
114
     </table>
114
     </table>
115
   </form>
115
   </form>

+ 1
- 1
sections/tools/misc/tags.php View File

40
       </tr>
40
       </tr>
41
       <tr>
41
       <tr>
42
         <td class="center" colspan="5">
42
         <td class="center" colspan="5">
43
-          <input type="submit" value="Process Tag" />
43
+          <input type="submit" class="button-primary" value="Process Tag" />
44
         </td>
44
         </td>
45
       </tr>
45
       </tr>
46
     </table>
46
     </table>

+ 9
- 11
sections/tools/tools.php View File

53
   if ($ToolsHTML) {
53
   if ($ToolsHTML) {
54
       ?>
54
       ?>
55
     <div class="permission_subcontainer">
55
     <div class="permission_subcontainer">
56
-      <table class="layout admin_tools">
56
+      <table class="admin-tools skeleton-fix">
57
         <tr class="colhead">
57
         <tr class="colhead">
58
           <td>Administration</td>
58
           <td>Administration</td>
59
         </tr>
59
         </tr>
72
   if ($ToolsHTML) {
72
   if ($ToolsHTML) {
73
       ?>
73
       ?>
74
     <div class="permission_subcontainer">
74
     <div class="permission_subcontainer">
75
-      <table class="layout admin_tools">
75
+      <table class="admin-tools skeleton-fix">
76
         <tr class="colhead">
76
         <tr class="colhead">
77
           <td>Announcements</td>
77
           <td>Announcements</td>
78
         </tr>
78
         </tr>
89
   if ($ToolsHTML) {
89
   if ($ToolsHTML) {
90
       ?>
90
       ?>
91
     <div class="permission_subcontainer">
91
     <div class="permission_subcontainer">
92
-      <table class="layout admin_tools">
92
+      <table class="admin-tools skeleton-fix">
93
         <tr class="colhead">
93
         <tr class="colhead">
94
           <td>Community</td>
94
           <td>Community</td>
95
         </tr>
95
         </tr>
107
   if ($ToolsHTML) {
107
   if ($ToolsHTML) {
108
       ?>
108
       ?>
109
     <div class="permission_subcontainer">
109
     <div class="permission_subcontainer">
110
-      <table class="layout admin_tools">
110
+      <table class="admin-tools skeleton-fix">
111
         <tr class="colhead">
111
         <tr class="colhead">
112
           <td>Finances</td>
112
           <td>Finances</td>
113
         </tr>
113
         </tr>
124
   // begin Queue category
124
   // begin Queue category
125
   $ToolsHTML = "";
125
   $ToolsHTML = "";
126
   create_row("Auto-Enable requests", "tools.php?action=enable_requests", check_perms("users_mod"));
126
   create_row("Auto-Enable requests", "tools.php?action=enable_requests", check_perms("users_mod"));
127
-  create_row("Email deletion requests", "tools.php?action=delete_email", check_perms("users_mod"));
128
   create_row("Login watch", "tools.php?action=login_watch", check_perms("admin_login_watch"));
127
   create_row("Login watch", "tools.php?action=login_watch", check_perms("admin_login_watch"));
129
 
128
 
130
   if ($ToolsHTML) {
129
   if ($ToolsHTML) {
131
       ?>
130
       ?>
132
     <div class="permission_subcontainer">
131
     <div class="permission_subcontainer">
133
-      <table class="layout admin_tools">
132
+      <table class="admin-tools skeleton-fix">
134
         <tr class="colhead">
133
         <tr class="colhead">
135
           <td>Queue</td>
134
           <td>Queue</td>
136
         </tr>
135
         </tr>
149
   if ($ToolsHTML) {
148
   if ($ToolsHTML) {
150
       ?>
149
       ?>
151
     <div class="permission_subcontainer">
150
     <div class="permission_subcontainer">
152
-      <table class="layout admin_tools">
151
+      <table class="admin-tools skeleton-fix">
153
         <tr class="colhead">
152
         <tr class="colhead">
154
           <td>Managers</td>
153
           <td>Managers</td>
155
         </tr>
154
         </tr>
171
   if ($ToolsHTML) {
170
   if ($ToolsHTML) {
172
       ?>
171
       ?>
173
     <div class="permission_subcontainer">
172
     <div class="permission_subcontainer">
174
-      <table class="layout admin_tools">
173
+      <table class="admin-tools skeleton-fix">
175
         <tr class="colhead">
174
         <tr class="colhead">
176
           <td>Development</td>
175
           <td>Development</td>
177
         </tr>
176
         </tr>
200
   if ($ToolsHTML) {
199
   if ($ToolsHTML) {
201
       ?>
200
       ?>
202
     <div class="permission_subcontainer">
201
     <div class="permission_subcontainer">
203
-      <table class="layout admin_tools">
202
+      <table class="admin-tools skeleton-fix">
204
         <tr class="colhead">
203
         <tr class="colhead">
205
           <td>Site Information</td>
204
           <td>Site Information</td>
206
         </tr>
205
         </tr>
215
   create_row("Collage recovery", "collages.php?action=recover", check_perms("site_collages_recover"));
214
   create_row("Collage recovery", "collages.php?action=recover", check_perms("site_collages_recover"));
216
   create_row("Manage freeleech tokens", "tools.php?action=tokens", check_perms("users_mod"));
215
   create_row("Manage freeleech tokens", "tools.php?action=tokens", check_perms("users_mod"));
217
   create_row("Multiple freeleech", "tools.php?action=multiple_freeleech", check_perms("users_mod"));
216
   create_row("Multiple freeleech", "tools.php?action=multiple_freeleech", check_perms("users_mod"));
218
-  create_row("Label aliases", "tools.php?action=label_aliases", check_perms("users_mod"));
219
   create_row("Tag aliases", "tools.php?action=tag_aliases", check_perms("users_mod"));
217
   create_row("Tag aliases", "tools.php?action=tag_aliases", check_perms("users_mod"));
220
   create_row("Batch tag editor", "tools.php?action=edit_tags", check_perms("users_mod"));
218
   create_row("Batch tag editor", "tools.php?action=edit_tags", check_perms("users_mod"));
221
   create_row("Official tags manager", "tools.php?action=official_tags", check_perms("users_mod"));
219
   create_row("Official tags manager", "tools.php?action=official_tags", check_perms("users_mod"));
224
   if ($ToolsHTML) {
222
   if ($ToolsHTML) {
225
       ?>
223
       ?>
226
     <div class="permission_subcontainer">
224
     <div class="permission_subcontainer">
227
-      <table class="layout admin_tools">
225
+      <table class="admin-tools skeleton-fix">
228
         <tr class="colhead">
226
         <tr class="colhead">
229
           <td>Torrents</td>
227
           <td>Torrents</td>
230
         </tr>
228
         </tr>

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

100
 </div>
100
 </div>
101
 <br />
101
 <br />
102
 <form class="manage_form" name="permissions" id="permissionsform" method="post" action="">
102
 <form class="manage_form" name="permissions" id="permissionsform" method="post" action="">
103
-  <table class="layout permission_head">
103
+  <table class="permission_head skeleton-fix">
104
     <tr>
104
     <tr>
105
       <td class="label">Extra personal collages</td>
105
       <td class="label">Extra personal collages</td>
106
       <td><input type="text" name="maxcollages" size="5"
106
       <td><input type="text" name="maxcollages" size="5"

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

1180
       </div>
1180
       </div>
1181
     </div>
1181
     </div>
1182
 
1182
 
1183
-    <table class="layout box" id="user_info_box">
1183
+    <table class="box skeleton-fix" id="user_info_box">
1184
       <tr class="colhead">
1184
       <tr class="colhead">
1185
         <td colspan="2">
1185
         <td colspan="2">
1186
           User Information
1186
           User Information
1452
     </table>
1452
     </table>
1453
 
1453
 
1454
     <?php if (check_perms('users_warn')) { ?>
1454
     <?php if (check_perms('users_warn')) { ?>
1455
-    <table class="layout box" id="warn_user_box">
1455
+    <table class="box skeleton-fix" id="warn_user_box">
1456
       <tr class="colhead">
1456
       <tr class="colhead">
1457
         <td colspan="2">
1457
         <td colspan="2">
1458
           Warnings
1458
           Warnings
1514
       <?php } ?>
1514
       <?php } ?>
1515
     </table>
1515
     </table>
1516
     <?php if (check_perms('users_disable_any')) { ?>
1516
     <?php if (check_perms('users_disable_any')) { ?>
1517
-    <table class="layout box" id="user_lock_account">
1517
+    <table class="box skeleton-fix" id="user_lock_account">
1518
       <tr class="colhead">
1518
       <tr class="colhead">
1519
         <td colspan="2">
1519
         <td colspan="2">
1520
           Lock Account
1520
           Lock Account
1540
       </tr>
1540
       </tr>
1541
     </table>
1541
     </table>
1542
     <?php }  ?>
1542
     <?php }  ?>
1543
-    <table class="layout box" id="user_privs_box">
1543
+    <table class="box skeleton-fix" id="user_privs_box">
1544
       <tr class="colhead">
1544
       <tr class="colhead">
1545
         <td colspan="2">
1545
         <td colspan="2">
1546
           User Privileges
1546
           User Privileges
1661
   } ?>
1661
   } ?>
1662
     </table>
1662
     </table>
1663
     <?php if (check_perms('users_logout')) { ?>
1663
     <?php if (check_perms('users_logout')) { ?>
1664
-    <table class="layout box" id="session_box">
1664
+    <table class="box skeleton-fix" id="session_box">
1665
       <tr class="colhead">
1665
       <tr class="colhead">
1666
         <td colspan="2">
1666
         <td colspan="2">
1667
           Session
1667
           Session
1682
       DonationsView::render_mod_donations($UserID);
1682
       DonationsView::render_mod_donations($UserID);
1683
   }
1683
   }
1684
 ?>
1684
 ?>
1685
-    <table class="layout box" id="submit_box">
1685
+    <table class="box skeleton-fix" id="submit_box">
1686
       <tr class="colhead">
1686
       <tr class="colhead">
1687
         <td colspan="2">
1687
         <td colspan="2">
1688
           Submit
1688
           Submit

+ 1
- 1
static/styles/bookish/scss/layout.scss View File

166
 
166
 
167
 .permission_head {
167
 .permission_head {
168
     width: 50%;
168
     width: 50%;
169
-    margin: 1em auto;
169
+    margin: auto;
170
 }
170
 }
171
 
171
 
172
 .permission_container {
172
 .permission_container {

+ 9
- 21
static/styles/global/scss/skeleton-fixes.scss View File

80
 }
80
 }
81
 
81
 
82
 /* Tables usually containing forms */
82
 /* Tables usually containing forms */
83
-/* browse */
84
-table.torrent_search,
85
-/* request search */ table.torrent_requests,
86
-/* forum list */ table.forum_index,
87
-/* upload form */ table.torrent_form,
88
-/* requests? */ table.request_form,
89
 /* new request */ form#request_form,
83
 /* new request */ form#request_form,
90
-/* forum thread */ table.new_thread,
91
-/* toolbox */ table.admin_tools,
92
 /* BP */ table.store_table,
84
 /* BP */ table.store_table,
93
 /* rule sections */ div.rule_table,
85
 /* rule sections */ div.rule_table,
94
 /* client rules */ table.clients_table,
86
 /* client rules */ table.clients_table,
95
 /* login */ table.login_form,
87
 /* login */ table.login_form,
96
 /* requests? */form.create_form,
88
 /* requests? */form.create_form,
97
-/* top10 */ form.search_form,
89
+/* top10 and many */ form.search_form,
98
 /* edit collage */ table.collage_edit,
90
 /* edit collage */ table.collage_edit,
99
-/* start user management */
100
-table#user_info_box,
101
-table#warn_user_box,
102
-table#user_lock_account,
103
-table#user_privs_box,
104
-table#session_box,
105
-table#donation_box,
106
-table#donor_points_box,
107
-table#submit_box,
108
-/* end user management */
109
 /* notif filters */ form[name="notification"],
91
 /* notif filters */ form[name="notification"],
110
-/* wiki search */ table.wiki_browse,
111
-/* better.php */ table.better_list {
92
+/* GENERIC */ table.skeleton-fix {
112
     th,
93
     th,
113
     td {
94
     td {
114
         border-bottom: 0 !important;
95
         border-bottom: 0 !important;
152
     list-style: circle outside !important;
133
     list-style: circle outside !important;
153
 }
134
 }
154
 
135
 
136
+/* Poll options */
137
+ul#poll_options {
138
+    list-style: none !important;
139
+    margin-left: 0 !important;
140
+    margin-bottom: 0.5rem !important;
141
+}
142
+
155
 /* Nested lists */
143
 /* Nested lists */
156
 ul ul,
144
 ul ul,
157
 ul ol,
145
 ul ol,

Loading…
Cancel
Save