WP htaccess Control - Version 1.1.4

Version Description

  • Confirmed compatibility with WP 2.9.1;
  • Fixed "Current htaccess file as it is generated by Wordpress" which was not being printed;
  • Minor gui changes;
Download this release

Release Info

Developer andrad
Plugin Icon wp plugin WP htaccess Control
Version 1.1.4
Comparing to
See all releases

Code changes from version 1.1.3 to 1.1.4

gfx/index.php ADDED
File without changes
index.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5
+ <style>
6
+ html{background-color:#E4F2FD;}
7
+ body{color:#333;font-family:Verdana;font-size:0.8em;width:600px;margin:75px auto;padding:30px;background:white;}
8
+ h1,h2{font-family:Georgia;}
9
+ a{color:#21759B;text-decoration:none;cursor:pointer;}
10
+ a:hover{color:#D54E21;text-decoration:underline;}
11
+ </style>
12
+ <title>WP htaccess Control Plugin</title>
13
+ </head>
14
+ <body>
15
+ <h1>WP htaccess Control</h1>
16
+ <p><strong>Plugin Author:</strong> <a href="http://dardna.com/" title="Visit the Author">dardna</a></p>
17
+ <h2>Features</h2>
18
+ <ol>
19
+ <li>Adding custom redirect rules to the htaccess file generated by Wordpress;</li>
20
+ <li>Customizing the Author Permalink Base.</li>
21
+ </ol>
22
+ <h2>Links</h2>
23
+ <ul>
24
+ <li><a href="http://wordpress.org/extend/plugins/wp-htaccess-control/" title="Visit this Plugin at the Wordpress Plugin Directory">WP htaccess Control at the Plugin Directory</a></li>
25
+ <li><a href="http://dardna.com/wp-htaccess-control" title="Visit the Plugin Homepage">Plugin Homepage</a></li>
26
+ <li><a href="http://dardna.com/" title="Visit the Author">Author Homepage</a></li>
27
+ </ul>
28
+ </body>
29
+ </html>
readme.txt CHANGED
@@ -5,8 +5,8 @@ Plugin URI: http://dardna.com/wp-htaccess-control
5
  Donate link:
6
  Tags: permalinks, author, htaccess
7
  Requires at least: 2.7
8
- Tested up to: 2.8
9
- Stable tag: 1.1.3
10
 
11
  Provides an interface to add custom htaccess rules to the htaccess file generated by Wordpress. It also includes Custom Author Permalink.
12
 
@@ -38,13 +38,18 @@ Provides an interface to add custom htaccess rules to the htaccess file generate
38
 
39
  == Changelog ==
40
 
 
 
 
 
 
41
  = 1.1.3 =
42
- * fixing error on wphtc_cap's preg_replace commited on 1.1.2 (thank you mattcav!);
43
- * fixing php warning on update without htaccess rules;
44
 
45
  = 1.1.2 =
46
  * No longer creating empty option array on install or reset (globally better option array handling);
47
- * Confirmed compatibility with WP 2.8
48
  * Still some work to do on the interface;
49
 
50
  = 1.1.1 =
5
  Donate link:
6
  Tags: permalinks, author, htaccess
7
  Requires at least: 2.7
8
+ Tested up to: 2.9.1
9
+ Stable tag: 1.1.4
10
 
11
  Provides an interface to add custom htaccess rules to the htaccess file generated by Wordpress. It also includes Custom Author Permalink.
12
 
38
 
39
  == Changelog ==
40
 
41
+ = 1.1.4 =
42
+ * Confirmed compatibility with WP 2.9.1;
43
+ * Fixed "Current htaccess file as it is generated by Wordpress" which was not being printed;
44
+ * Minor gui changes;
45
+
46
  = 1.1.3 =
47
+ * Fixing error on wphtc_cap's preg_replace commited on 1.1.2 (thank you mattcav for the report!);
48
+ * Fixing php warning on update without htaccess rules;
49
 
50
  = 1.1.2 =
51
  * No longer creating empty option array on install or reset (globally better option array handling);
52
+ * Confirmed compatibility with WP 2.8;
53
  * Still some work to do on the interface;
54
 
55
  = 1.1.1 =
wp-htaccess-control-gui.php CHANGED
@@ -86,6 +86,8 @@ jQuery(document).ready(function(){
86
  </script>
87
  <style>
88
  h2,h3,.wphtc-menu {float:left;}
 
 
89
  .wphtc-menu {margin:1em;}
90
  .wphtc-menu li{display:inline;margin-right:20px;}
91
  .wphtc-menu img{position:relative;top:2px;}
@@ -104,12 +106,15 @@ jQuery(document).ready(function(){
104
  <div class="updated fade" id="message" style="background-color: rgb(255, 251, 204);"><p><?php echo $echo;?></p></div>
105
  <?php }?>
106
  <form method="post" action="<?php echo $purl?>">
 
107
  <table class="form-table">
108
  <tr valign="top">
109
- <th scope="row"><label for="blogdescription">Custom Author Permalink</label></th>
110
  <td>
111
  <input type="text" name="WPhtc_cap" value="<?php echo $WPhtc_data['cap']; ?>" /> <code><?php bloginfo('home')?>/<em>(your-base)</em>/admin</code><br/>
112
- <span class="description">If you do not want to use a custom Author Permalink base just leave the field empty. Otherwise, if set, the base will be used as shown next to the form field.</span>
 
 
113
  <p></p>
114
  </td>
115
  </tr>
@@ -136,6 +141,6 @@ jQuery(document).ready(function(){
136
  <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
137
  </p>
138
  </form>
139
- <?php if(isset($WPhtc_data['cur_hta'],$WPhtc_data['pats1'])){echo'<h3>Current htaccess file as it is generated by Wordpress</h3><p><code>'.$WPhtc_data['cur_hta'].'</code></p>';}?>
140
  </div>
141
  <p class="setting-description alignright"><small><a href="http://dardna.com/wp-htaccess-control" title="Visit WP htaccess Control page at dardna.com">WP htaccess Control</a> by <a href="http://dardna.com" title="Visit dardna.com">dardna</a>, thanks to <a href="http://www.famfamfam.com/lab/icons/mini/" title="Visit 'Mini iconset' page at FamFamFam.com">FamFamFam</a> for the icons.</small></p>
86
  </script>
87
  <style>
88
  h2,h3,.wphtc-menu {float:left;}
89
+ h3{clear:left;}
90
+ span.description{display:block}
91
  .wphtc-menu {margin:1em;}
92
  .wphtc-menu li{display:inline;margin-right:20px;}
93
  .wphtc-menu img{position:relative;top:2px;}
106
  <div class="updated fade" id="message" style="background-color: rgb(255, 251, 204);"><p><?php echo $echo;?></p></div>
107
  <?php }?>
108
  <form method="post" action="<?php echo $purl?>">
109
+ <h3>Custom Author Permalink</h3>
110
  <table class="form-table">
111
  <tr valign="top">
112
+ <th scope="row"><label for="blogdescription">Author Base</label></th>
113
  <td>
114
  <input type="text" name="WPhtc_cap" value="<?php echo $WPhtc_data['cap']; ?>" /> <code><?php bloginfo('home')?>/<em>(your-base)</em>/admin</code><br/>
115
+ <span class="description">Permalink settings must be set and not Default (/?p=123).</span>
116
+ <span class="description">If set, the author base will be used as shown next to the form field.</span>
117
+ <span class="description">If you do not want to use a custom Author Permalink base just leave the field empty.</span>
118
  <p></p>
119
  </td>
120
  </tr>
141
  <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
142
  </p>
143
  </form>
144
+ <?php if(isset($WPhtc_data['cur_hta'],$WPhtc_data['pats'][0])){echo'<h3>Current htaccess file as it is generated by Wordpress</h3><p><code>'.$WPhtc_data['cur_hta'].'</code></p>';}?>
145
  </div>
146
  <p class="setting-description alignright"><small><a href="http://dardna.com/wp-htaccess-control" title="Visit WP htaccess Control page at dardna.com">WP htaccess Control</a> by <a href="http://dardna.com" title="Visit dardna.com">dardna</a>, thanks to <a href="http://www.famfamfam.com/lab/icons/mini/" title="Visit 'Mini iconset' page at FamFamFam.com">FamFamFam</a> for the icons.</small></p>
wp-htaccess-control.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP htaccess Control
4
  Plugin URI: http://dardna.com/wp-htaccess-control
5
  Description: Provides an interface to add custom htaccess rules to the htaccess file generated by wordpress. Also includes an improved and much more stable version of Custom Author Permalink
6
- Version: 1.1.3
7
  Author: dardna
8
  Author URI: http://dardna.com
9
  */
@@ -26,12 +26,31 @@ Author URI: http://dardna.com
26
  */
27
  /*
28
 
29
- 1.1.3 - fixing error on wphtc_cap's preg_replace commited on 1.1.2, fixing php warning on update without htaccess rules;
30
- 1.1.2 - no longer creating empty option array on install or reset (globally better option array handling), confirmed compatibility with WP 2.8, some work on the gui to-do;
31
- 1.1.1 - fixing screenshot mistake;
32
- 1.1 - separated gui, improved management and gui;
33
- 1.0.1 - added GNU license;
34
- 1.0 - initial release (poor interface).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
  */
37
  if (!class_exists("WPhtc")) {
@@ -43,7 +62,6 @@ if (!class_exists("WPhtc")) {
43
  function wphtc_cap($rules){
44
  $WPhtc_data=get_option('WPhtc_data');
45
  if(isset($WPhtc_data['cap']) && $WPhtc_data['cap']!=''){
46
- //$rules=unserialize(preg_replace('!s:(\d+):"(.*?)";!se', '"s:".strlen("$2").":\"$2\";"',str_replace('author/',$WPhtc_data['cap'].'/',serialize($rules))));
47
  $rules=unserialize(preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'",str_replace('author/',$WPhtc_data['cap'].'/',serialize($rules))));
48
  }
49
  return $rules;
3
  Plugin Name: WP htaccess Control
4
  Plugin URI: http://dardna.com/wp-htaccess-control
5
  Description: Provides an interface to add custom htaccess rules to the htaccess file generated by wordpress. Also includes an improved and much more stable version of Custom Author Permalink
6
+ Version: 1.1.4
7
  Author: dardna
8
  Author URI: http://dardna.com
9
  */
26
  */
27
  /*
28
 
29
+ = 1.1.4 =
30
+ * Confirmed compatibility with WP 2.9.1;
31
+ * Minor gui changes;
32
+
33
+ = 1.1.3 =
34
+ * Fixing error on wphtc_cap's preg_replace commited on 1.1.2 (thank you mattcav for the report!);
35
+ * Fixing php warning on update without htaccess rules;
36
+
37
+ = 1.1.2 =
38
+ * No longer creating empty option array on install or reset (globally better option array handling);
39
+ * Confirmed compatibility with WP 2.8;
40
+ * Still some work to do on the interface;
41
+
42
+ = 1.1.1 =
43
+ * Fixing screenshot mistake;
44
+
45
+ = 1.1 =
46
+ * Separated gui file;
47
+ * Improved management and gui;
48
+
49
+ = 1.0.1 =
50
+ * Added GNU license;
51
+
52
+ = 1.0 =
53
+ * Initial release (poor interface although working).
54
 
55
  */
56
  if (!class_exists("WPhtc")) {
62
  function wphtc_cap($rules){
63
  $WPhtc_data=get_option('WPhtc_data');
64
  if(isset($WPhtc_data['cap']) && $WPhtc_data['cap']!=''){
 
65
  $rules=unserialize(preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'",str_replace('author/',$WPhtc_data['cap'].'/',serialize($rules))));
66
  }
67
  return $rules;