Advanced Database Cleaner - Version 1.1.1

Version Description

  • Some optimizations and style modifications
  • Adding "Donate link"
Download this release

Release Info

Developer symptote
Plugin Icon 128x128 Advanced Database Cleaner
Version 1.1.1
Comparing to
See all releases

Code changes from version 1.1.0 to 1.1.1

README.txt CHANGED
@@ -1,9 +1,10 @@
1
  === Advanced Database Cleaner ===
2
  Contributors: symptote
 
3
  Tags: plugin, plugins, plugin wordpress, wordpress, database cleaner, clean database, database clean, database, clean, cleaner, delete orphan data, delete revisions, delete draft, delete trash, delete spam, delete auto drfat, delete postmeta, delete commentmeta, delete relationships, delete transient feed, optimize database, database optimize, optimize, admin
4
  Requires at least: 2.7
5
  Tested up to: 4.3
6
- Stable tag: 1.1.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -34,7 +35,11 @@ This section describes how to install the plugin and get it working.
34
 
35
  == Changelog ==
36
 
37
- = 1.5.0 =
 
 
 
 
38
  * Some optimizations and style modifications
39
  * Adding "Optimize Database"
40
 
1
  === Advanced Database Cleaner ===
2
  Contributors: symptote
3
+ Donate Link: https://www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=Azq_P8u-Dy9AZSB3bmJFsrGWImHWiCoHtSE8KuC2SNdGQpreQxG8dl2tVZK&dispatch=5885d80a13c0db1f8e263663d3faee8d0b9dcb01a9b6dc564e45f62871326a5e
4
  Tags: plugin, plugins, plugin wordpress, wordpress, database cleaner, clean database, database clean, database, clean, cleaner, delete orphan data, delete revisions, delete draft, delete trash, delete spam, delete auto drfat, delete postmeta, delete commentmeta, delete relationships, delete transient feed, optimize database, database optimize, optimize, admin
5
  Requires at least: 2.7
6
  Tested up to: 4.3
7
+ Stable tag: 1.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
35
 
36
  == Changelog ==
37
 
38
+ = 1.1.1 =
39
+ * Some optimizations and style modifications
40
+ * Adding "Donate link"
41
+
42
+ = 1.1.0 =
43
  * Some optimizations and style modifications
44
  * Adding "Optimize Database"
45
 
advanced-db-cleaner-admin.php CHANGED
@@ -66,7 +66,7 @@ function adv_db_cleaner_page(){
66
  <div class="tab1">
67
  <form action="" method="post">
68
  <p>
69
- <table class="widefat" style="border: 0px; box-shadow: 0 1px 0px #ccc;">
70
  <thead>
71
  <tr>
72
  <th scope="col"><b><?php _e('Type','advanced-db-cleaner'); ?></b></th>
@@ -241,10 +241,37 @@ function adv_db_cleaner_page(){
241
  </form>
242
  </div>
243
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
244
 
245
- <br />
 
 
 
 
 
 
246
 
247
- <div style="text-align:center; clear: both">&copy; <?php echo date("Y"); ?> By Symptote</div>
248
  </div>
249
  <?php
250
  }
66
  <div class="tab1">
67
  <form action="" method="post">
68
  <p>
69
+ <table class="widefat" style="width: 400px; border: 0px; box-shadow: 0 1px 0px #ccc;">
70
  <thead>
71
  <tr>
72
  <th scope="col"><b><?php _e('Type','advanced-db-cleaner'); ?></b></th>
241
  </form>
242
  </div>
243
  </div>
244
+
245
+ <div class="aDBcSidebar">
246
+ <div>
247
+ <center><h2>Advanced Database Cleaner</h2></center>
248
+ <!--<p>See what is new in <a href="#">version 4.3.9</a></p>-->
249
+
250
+ <p>Please donate to keep the development alive. Every contribution will be more than welcome.</p>
251
+ <p style="text-align:right">Thank you!</p>
252
+ <center>
253
+ <!-- Donate -->
254
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
255
+ <input type="hidden" name="cmd" value="_donations">
256
+ <input type="hidden" name="business" value="younes.jfr@gmail.com">
257
+ <input type="hidden" name="lc" value="US">
258
+ <input type="hidden" name="item_name" value="Advanced Database Cleaner">
259
+ <input type="hidden" name="no_note" value="0">
260
+ <input type="hidden" name="currency_code" value="USD">
261
+ <input type="hidden" name="bn" value="PP-DonationsBF:btn_donate_LG.gif:NonHostedGuest">
262
+ <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
263
+ <img alt="" border="0" src="https://www.paypalobjects.com/fr_XC/i/scr/pixel.gif" width="1" height="1">
264
+ </form>
265
+ </center>
266
 
267
+
268
+
269
+ </div>
270
+ <div style="background: #1A9AC9; border-top: 1px solid #ccc; text-align: center; color: #fff">
271
+ &copy; <?php echo date("Y"); ?> Created by <b>Younes JFR</b>
272
+ </div>
273
+ </div>
274
 
 
275
  </div>
276
  <?php
277
  }
advanced-db-cleaner.php CHANGED
@@ -2,8 +2,8 @@
2
  /*
3
  Plugin Name: Advanced Database Cleaner
4
  Description: Clean your database and save space by removing unused data such as "draft", "Spam Comments", "Orphan Postmeta", etc.
5
- Version: 1.1.0
6
- Author: Jaafar Y.
7
  Contributors: symptote
8
  Text Domain: advanced-db-cleaner
9
  Domain Path: /languages/
2
  /*
3
  Plugin Name: Advanced Database Cleaner
4
  Description: Clean your database and save space by removing unused data such as "draft", "Spam Comments", "Orphan Postmeta", etc.
5
+ Version: 1.1.1
6
+ Author: Younes JFR.
7
  Contributors: symptote
8
  Text Domain: advanced-db-cleaner
9
  Domain Path: /languages/
css/style.css CHANGED
@@ -1,50 +1,37 @@
1
- /* Set the size and font of the tab widget */
2
  .tabBox {
3
  border-radius: 4px;
4
  margin: 10px 0 40px 0;
5
- width: 550px;
6
  height: auto;
7
  float: left;
8
  }
9
-
10
- /* Configure the radio buttons to hide off screen */
11
  .tabBox > input[type="radio"] {
12
  position: absolute;
13
  left:-100px;
14
  top:-100px;
15
  }
16
-
17
- /* Configure labels to look like tabs */
18
  .tabBox > input[type="radio"] + label {
19
- /* inline-block such that the label can be given dimensions */
20
  display: inline-block;
21
-
22
- /* A nice curved border around the tab */
23
  border: 1px solid #DEDBD1;
24
  border-radius: 5px 5px 0 0;
25
  -moz-border-radius: 5px 5px 0 0;
26
  -webkit-border-radius: 5px 5px 0 0;
27
-
28
- /* the bottom border is handled by the tab content div */
29
  border-bottom: 0;
30
-
31
- /* Padding around tab text */
32
- padding: 5px 10px;
33
-
34
- /* Set the background color to default gray (non-selected tab) */
35
  background-color:#ddd;
36
- color: black;
 
37
  }
38
-
39
- /* Checked tabs must be white with the bottom border removed */
40
  .tabBox > input[type="radio"]:checked + label {
41
  background-color:white;
42
  font-weight: bold;
43
- border-bottom: 1px solid white;
44
  margin-bottom: -1px;
 
 
45
  }
46
 
47
- /* The tab content must fill the widgets size and have a nice border */
48
  .tabBox > div {
49
  display: none;
50
  border: 1px solid #DEDBD1;
@@ -59,12 +46,10 @@
59
  -webkit-border-radius: 0 5px 5px 5px;
60
  }
61
 
62
- /* This matchs tabs displaying to thier associated radio inputs */
63
  #aDBc-clean:checked ~ .tab1, #aDBc-optimize:checked ~ .tab2, #aDBc-stats:checked ~ .tab3{
64
  display: block;
65
  }
66
 
67
-
68
  /* style for count numbers */
69
  .aDBcCount {
70
  text-align:center;
@@ -73,7 +58,6 @@
73
 
74
 
75
  /* Style for check box */
76
-
77
  input[type=checkbox] {
78
  visibility: hidden;
79
  }
@@ -127,3 +111,22 @@ input[type=checkbox] {
127
  opacity: 1;
128
  }
129
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  .tabBox {
2
  border-radius: 4px;
3
  margin: 10px 0 40px 0;
 
4
  height: auto;
5
  float: left;
6
  }
7
+
 
8
  .tabBox > input[type="radio"] {
9
  position: absolute;
10
  left:-100px;
11
  top:-100px;
12
  }
13
+
 
14
  .tabBox > input[type="radio"] + label {
 
15
  display: inline-block;
 
 
16
  border: 1px solid #DEDBD1;
17
  border-radius: 5px 5px 0 0;
18
  -moz-border-radius: 5px 5px 0 0;
19
  -webkit-border-radius: 5px 5px 0 0;
 
 
20
  border-bottom: 0;
21
+ padding: 10px 10px;
 
 
 
 
22
  background-color:#ddd;
23
+ color: #555;
24
+ font-size: 14px;
25
  }
26
+
 
27
  .tabBox > input[type="radio"]:checked + label {
28
  background-color:white;
29
  font-weight: bold;
 
30
  margin-bottom: -1px;
31
+ color: #0073aa;
32
+ border-top: 1px solid #1A9AC9;
33
  }
34
 
 
35
  .tabBox > div {
36
  display: none;
37
  border: 1px solid #DEDBD1;
46
  -webkit-border-radius: 0 5px 5px 5px;
47
  }
48
 
 
49
  #aDBc-clean:checked ~ .tab1, #aDBc-optimize:checked ~ .tab2, #aDBc-stats:checked ~ .tab3{
50
  display: block;
51
  }
52
 
 
53
  /* style for count numbers */
54
  .aDBcCount {
55
  text-align:center;
58
 
59
 
60
  /* Style for check box */
 
61
  input[type=checkbox] {
62
  visibility: hidden;
63
  }
111
  opacity: 1;
112
  }
113
 
114
+ /* Style for sidebar */
115
+ .aDBcSidebar {
116
+ float:right;
117
+ border: 1px solid #ccc;
118
+ background: #fff;
119
+ margin: 10px 0 0 0;
120
+ width: 280px;
121
+ border-radius: 5px 5px 0 0;
122
+ -moz-border-radius: 5px 5px 0 0;
123
+ -webkit-border-radius: 5px 5px 0 0;
124
+ }
125
+
126
+ .aDBcSidebar > div{
127
+ padding: 15px;
128
+ }
129
+
130
+ .aDBcSidebar h2{
131
+ font-size:20px;
132
+ }