Changeset 1893481
- Timestamp:
- 06/15/2018 01:01:56 PM (8 years ago)
- Location:
- unoapp-protects-wp-admin/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
unoapp-protects-wp-admin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
unoapp-protects-wp-admin/trunk/readme.txt
r1893453 r1893481 62 62 RewriteBase / 63 63 RewriteRule ^index\.php$ - [L] 64 RewriteRule ^custom-admin/(.*) /wp-admin/$1?%{QUERY_STRING} [L]65 RewriteRule ^custom-admin/?$ /wp-login.php [L]64 RewriteRule ^custom-admin/(.*) wp-admin/$1?%{QUERY_STRING} [L] 65 RewriteRule ^custom-admin/?$ wp-login.php [L] 66 66 RewriteCond %{REQUEST_FILENAME} !-f 67 67 RewriteCond %{REQUEST_FILENAME} !-d … … 94 94 3. screenshot-3.png 95 95 96 4. screenshot-4.png 97 96 98 == Changelog == 99 97 100 = 1.0 = 98 101 * First stable release -
unoapp-protects-wp-admin/trunk/unoapp-protects-wp-admin.php
r1893459 r1893481 110 110 <p >3) Some time .htaccess file not work due to some permission issue or other security plugins. if not works then you have to manually put below lines code in your root .htaccess file after the line "RewriteRule ^index\.php$ - [L]"</p> 111 111 112 <p><?php echo "RewriteRule ^" . esc_attr(get_option('unopwa_before_rewrite_text')) . "/(.*) /wp-admin/$1?%{QUERY_STRING} [L]"; ?></p>113 <p><?php echo "RewriteRule ^" . esc_attr(get_option('unopwa_before_rewrite_text')) . "/?$ /wp-login.php [L]"; ?></p>112 <p><?php echo "RewriteRule ^" . esc_attr(get_option('unopwa_before_rewrite_text')) . "/(.*) wp-admin/$1?%{QUERY_STRING} [L]"; ?></p> 113 <p><?php echo "RewriteRule ^" . esc_attr(get_option('unopwa_before_rewrite_text')) . "/?$ wp-login.php [L]"; ?></p> 114 114 <?php 115 115 $getUnopwaOptions = get_unopwa_setting_options(); … … 133 133 { 134 134 var ipformat = /^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)(,\n|,?))*$/; 135 if (inputText.value.match(ipformat)) 135 if(inputText.value == ''){ 136 // 137 } 138 else if (inputText.value.match(ipformat)) 136 139 { 137 140 var user_ip = '<?php echo unopwa_get_the_user_ip();?>';
Note: See TracChangeset
for help on using the changeset viewer.