Changeset 1680740
- Timestamp:
- 06/18/2017 07:17:04 PM (9 years ago)
- Location:
- ab-wp-security
- Files:
-
- 4 added
- 2 edited
-
tags/1.51 (added)
-
tags/1.51/ab-wp-security-plugin.php (added)
-
tags/1.51/options.php (added)
-
tags/1.51/readme.txt (added)
-
trunk/ab-wp-security-plugin.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ab-wp-security/trunk/ab-wp-security-plugin.php
r1668817 r1680740 4 4 Plugin URI: http://aleksandar.bjelosevic.info/abwps 5 5 Description: Security plugin that stop User Enumeration in WordPress,check for admin and administrator usernames, Disable XML-RPC,Remove WordPress Version Number and disable directory browsing 6 Version: 1.5 06 Version: 1.51 7 7 Author: Aleksandar Bjelosevic 8 8 Author URI: http://aleksandar.bjelosevic.info … … 168 168 if (copy(".htaccess",".htaccessCopy")) // 169 169 { 170 $myfile = fopen($filename, "a") or die("Unable to open file!"); 171 $txt = "Options All -Indexes"; 170 $txt = "Options All -Indexes"; 171 $contents = file_get_contents($filename); 172 $pattern = preg_quote($txt, '/'); 173 $pattern = "/^.*$pattern.*\$/m"; 174 175 if(preg_match_all($pattern, $contents, $matches)){ 176 fclose ($filename); 177 } 178 else{ 179 $myfile = fopen($filename, "a") or die("Unable to open file!"); 180 172 181 fwrite($myfile, "\n". $txt); 173 182 fclose($myfile); 183 184 } 185 186 187 174 188 } 175 189 -
ab-wp-security/trunk/readme.txt
r1668832 r1680740 4 4 Tags: security, enumeration, block,Disable XML-RPC,Remove WordPress Version Number, disable directory browsing 5 5 Requires at least: 3.8 6 Tested up to: 4.7. 47 Stable tag: 1.5 06 Tested up to: 4.7.5 7 Stable tag: 1.51 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl.html … … 22 22 23 23 == Changelog == 24 25 = V1.51 = 26 Fix bug with disable directory browsing 24 27 25 28 = V1.50 =
Note: See TracChangeset
for help on using the changeset viewer.