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,7 +6,7 @@ class DonationsView
6 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 10
   <tr class="colhead">
11 11
     <td colspan="2">
12 12
       Donor System (add points)
@@ -34,7 +34,7 @@ class DonationsView
34 34
   </tr>
35 35
 </table>
36 36
 
37
-<table class="layout box" id="donor_points_box">
37
+<table class="box skeleton-fix" id="donor_points_box">
38 38
   <tr class="colhead">
39 39
     <td colspan="3" class="tooltip"
40 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,7 +284,7 @@ HTML;
284 284
     </div>
285 285
     
286 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 288
     </div>
289 289
 HTML;
290 290
 }

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

@@ -419,7 +419,7 @@ HTML;
419 419
 
420 420
         # Start printing the form
421 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,17 +566,6 @@ CREATE TABLE `invite_tree` (
566 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 569
 -- 2020-03-09
580 570
 CREATE TABLE `last_sent_email` (
581 571
   `UserID` int NOT NULL,

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

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

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

@@ -180,7 +180,7 @@ View::show_header(($BookmarkView) ? 'Your bookmarked collections' : 'Collections
180 180
         <input type="hidden" name="action" value="search" />
181 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 184
         <tr id="search_terms">
185 185
           <td class="label"></td>
186 186
           <td>

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

@@ -39,7 +39,7 @@ View::show_header('Collage recovery!');
39 39
           <input type="text" name="collage_id" size="8" />
40 40
         </div>
41 41
         <div class="submit_div">
42
-          <input value="Recover!" type="submit" />
42
+          <input value="Recover" class="button-primary" type="submit" />
43 43
         </div>
44 44
       </form>
45 45
     </div>

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

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

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

@@ -103,7 +103,7 @@ View::show_header(
103 103
       <input type="hidden" name="auth"
104 104
         value="<?=$LoggedUser['AuthKey']?>" />
105 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 107
         <tr>
108 108
           <td class="label">Title</td>
109 109
           <td><input id="title" class="required" type="text" name="title" style="width: 98%;" /></td>

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

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

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

@@ -244,7 +244,7 @@ $encoded_artist = urlencode($encoded_artist);
244 244
     <div class="box">
245 245
       <div class="head"><strong>Info</strong></div>
246 246
       <div class="pad">
247
-        <table class="layout request_form">
247
+        <table class="request_form skeleton-fix">
248 248
           <tr>
249 249
             <td class="label">Created</td>
250 250
             <td>

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

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

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

@@ -80,7 +80,7 @@ $DB->set_query_id($QueryID);
80 80
   <input type="hidden" name="action" value="registration_log" />
81 81
   Joined after: <input type="date" name="after_date" />
82 82
   Joined before: <input type="date" name="before_date" />
83
-  <input type="submit" />
83
+  <input type="submit" class="button-primary" />
84 84
 </form>
85 85
 
86 86
 <?php

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

@@ -45,7 +45,7 @@ $MultiKeyTooltip = 'Enter cache keys delimited by any amount of whitespace.';
45 45
 
46 46
         <textarea type="text" name="key" id="key"
47 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 49
       </form>
50 50
     </td>
51 51
   </tr>

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

@@ -119,7 +119,7 @@ View::show_header("Service Stats"); ?>
119 119
             <input type="hidden" name="auth"
120 120
               value="<?=$LoggedUser['AuthKey']?>" />
121 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 123
           </form>
124 124
         </td>
125 125
       </tr>

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

@@ -145,7 +145,7 @@ if (empty($_GET['email']) && empty($_GET['source']) && empty($_GET['username'])
145 145
       </tr>
146 146
       <tr>
147 147
         <td>
148
-          <input type="submit" value="Search donation log" />
148
+          <input type="submit" class="button-primary" value="Search donation log" />
149 149
         </td>
150 150
       </tr>
151 151
     </table>

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

@@ -205,10 +205,6 @@ switch ($_REQUEST['action']) {
205 205
     include SERVER_ROOT.'/sections/tools/managers/tag_aliases.php';
206 206
     break;
207 207
 
208
-  case 'label_aliases':
209
-    include SERVER_ROOT.'/sections/tools/managers/label_aliases.php';
210
-    break;
211
-
212 208
   case 'global_notification':
213 209
     include SERVER_ROOT.'/sections/tools/managers/global_notification.php';
214 210
     break;

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

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

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

@@ -44,7 +44,7 @@ list ($NumResults) = $DB->next_record();
44 44
   <input type="hidden" name="action" value="email_blacklist" />
45 45
   <input type="email" name="email" size="30" placeholder="Email" />
46 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 48
 </form>
49 49
 <div class="linkbox pager">
50 50
   <br />
@@ -68,8 +68,8 @@ list ($NumResults) = $DB->next_record();
68 68
       <input type="hidden" name="action" value="email_blacklist_alter" />
69 69
       <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
70 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 73
     </form>
74 74
   </tr>
75 75
 <?
@@ -83,10 +83,10 @@ list ($NumResults) = $DB->next_record();
83 83
         <input type="hidden" name="id" value="<?=$Result['ID']?>" />
84 84
         <input type="email" name="email" value="<?=display_str($Result['Email'])?>" size="30" />
85 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 87
       <td><?=Users::format_username($Result ['UserID'], false, false, false)?><br /><?=time_diff($Result ['Time'], 1)?></td>
88 88
       <td>
89
-        <input type="submit" name="submit" value="Edit" />
89
+        <input type="submit" name="submit" class="button-primary" value="Edit" />
90 90
         <input type="submit" name="submit" value="Delete" />
91 91
       </td>
92 92
     </form>

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

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

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

@@ -1,114 +0,0 @@
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,7 +45,7 @@ View::show_header(
45 45
       <div id="preview" class="hidden"></div>
46 46
       <div id="buttons" class="center">
47 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 49
       </div>
50 50
     </div>
51 51
   </form>

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

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

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

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

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

@@ -120,7 +120,7 @@ for ($i = 0; $i < $TagCount / 3; $i++) {
120 120
         </tr>
121 121
         <tr style="border-top: thin solid;">
122 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 124
           </td>
125 125
         </tr>
126 126
 

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

@@ -25,7 +25,7 @@ View::show_header('Manage Permissions', 'validate');
25 25
     <a href="tools.php?action=permissions" class="brackets">Back to permission list</a>
26 26
     <a href="tools.php" class="brackets">Back to tools</a>
27 27
   </div>
28
-  <table class="permission_head layout box">
28
+  <table class="permission_head skeleton-fix">
29 29
     <tr>
30 30
       <td class="label">Permission name</td>
31 31
       <td><input type="text" name="name" id="name"

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

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

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

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

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

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

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

@@ -82,7 +82,7 @@ if (isset($_REQUEST['addtokens'])) {
82 82
     <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
83 83
     Tokens to add: <input type="text" name="numtokens" size="5" style="text-align: right;" value="0" /><br /><br />
84 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 86
   </form>
87 87
 </div>
88 88
 <br />

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

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

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

@@ -110,7 +110,7 @@ if (isset($_POST['Username'])) {
110 110
       </tr>
111 111
       <tr>
112 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 114
         </td>
115 115
       </tr>
116 116
     </table>

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

@@ -40,7 +40,7 @@ View::show_header('Database Encryption Key'); ?>
40 40
 
41 41
     <div style="display: flex;">
42 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 44
     </div>
45 45
 
46 46
   </form>

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

@@ -109,7 +109,7 @@ if ($_POST['id']) {
109 109
           if ($_POST['perform'] === 'inviteprivs') { echo ' selected="selected"'; } ?>>Disable invites privileges</option>
110 110
           </select>
111 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 113
       </tr>
114 114
     </table>
115 115
   </form>

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

@@ -40,7 +40,7 @@ define('MODE_DELETE', 2);
40 40
       </tr>
41 41
       <tr>
42 42
         <td class="center" colspan="5">
43
-          <input type="submit" value="Process Tag" />
43
+          <input type="submit" class="button-primary" value="Process Tag" />
44 44
         </td>
45 45
       </tr>
46 46
     </table>

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

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

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

@@ -100,7 +100,7 @@ View::show_header("$Username &gt; Permissions");
100 100
 </div>
101 101
 <br />
102 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 104
     <tr>
105 105
       <td class="label">Extra personal collages</td>
106 106
       <td><input type="text" name="maxcollages" size="5"

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

@@ -1180,7 +1180,7 @@ if (check_perms('users_mod', $Class)) { ?>
1180 1180
       </div>
1181 1181
     </div>
1182 1182
 
1183
-    <table class="layout box" id="user_info_box">
1183
+    <table class="box skeleton-fix" id="user_info_box">
1184 1184
       <tr class="colhead">
1185 1185
         <td colspan="2">
1186 1186
           User Information
@@ -1452,7 +1452,7 @@ if (!$DisablePoints) {
1452 1452
     </table>
1453 1453
 
1454 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 1456
       <tr class="colhead">
1457 1457
         <td colspan="2">
1458 1458
           Warnings
@@ -1514,7 +1514,7 @@ if (!$DisablePoints) {
1514 1514
       <?php } ?>
1515 1515
     </table>
1516 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 1518
       <tr class="colhead">
1519 1519
         <td colspan="2">
1520 1520
           Lock Account
@@ -1540,7 +1540,7 @@ if (!$DisablePoints) {
1540 1540
       </tr>
1541 1541
     </table>
1542 1542
     <?php }  ?>
1543
-    <table class="layout box" id="user_privs_box">
1543
+    <table class="box skeleton-fix" id="user_privs_box">
1544 1544
       <tr class="colhead">
1545 1545
         <td colspan="2">
1546 1546
           User Privileges
@@ -1661,7 +1661,7 @@ if (!$DisablePoints) {
1661 1661
   } ?>
1662 1662
     </table>
1663 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 1665
       <tr class="colhead">
1666 1666
         <td colspan="2">
1667 1667
           Session
@@ -1682,7 +1682,7 @@ if (!$DisablePoints) {
1682 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 1686
       <tr class="colhead">
1687 1687
         <td colspan="2">
1688 1688
           Submit

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

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

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

@@ -80,35 +80,16 @@ legend {
80 80
 }
81 81
 
82 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 83
 /* new request */ form#request_form,
90
-/* forum thread */ table.new_thread,
91
-/* toolbox */ table.admin_tools,
92 84
 /* BP */ table.store_table,
93 85
 /* rule sections */ div.rule_table,
94 86
 /* client rules */ table.clients_table,
95 87
 /* login */ table.login_form,
96 88
 /* requests? */form.create_form,
97
-/* top10 */ form.search_form,
89
+/* top10 and many */ form.search_form,
98 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 91
 /* notif filters */ form[name="notification"],
110
-/* wiki search */ table.wiki_browse,
111
-/* better.php */ table.better_list {
92
+/* GENERIC */ table.skeleton-fix {
112 93
     th,
113 94
     td {
114 95
         border-bottom: 0 !important;
@@ -152,6 +133,13 @@ ul {
152 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 143
 /* Nested lists */
156 144
 ul ul,
157 145
 ul ol,

Loading…
Cancel
Save