Plugin Directory

Changeset 1893481


Ignore:
Timestamp:
06/15/2018 01:01:56 PM (8 years ago)
Author:
unoapp
Message:

IP validation changes

Location:
unoapp-protects-wp-admin/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • unoapp-protects-wp-admin/trunk/readme.txt

    r1893453 r1893481  
    6262RewriteBase /
    6363RewriteRule ^index\.php$ - [L]
    64 RewriteRule ^custom-admin/(.*) /wp-admin/$1?%{QUERY_STRING} [L]
    65 RewriteRule ^custom-admin/?$ /wp-login.php [L]
     64RewriteRule ^custom-admin/(.*) wp-admin/$1?%{QUERY_STRING} [L]
     65RewriteRule ^custom-admin/?$ wp-login.php [L]
    6666RewriteCond %{REQUEST_FILENAME} !-f
    6767RewriteCond %{REQUEST_FILENAME} !-d
     
    94943. screenshot-3.png
    9595
     964. screenshot-4.png
     97
    9698== Changelog ==
     99
    97100= 1.0 =
    98101 * First stable release
  • unoapp-protects-wp-admin/trunk/unoapp-protects-wp-admin.php

    r1893459 r1893481  
    110110                    <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>
    111111
    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>
    114114                    <?php
    115115                    $getUnopwaOptions = get_unopwa_setting_options();
     
    133133                                {
    134134                                    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))
    136139                                    {
    137140                                        var user_ip = '<?php echo unopwa_get_the_user_ip();?>';
Note: See TracChangeset for help on using the changeset viewer.