Plugin Directory

Changeset 1154037


Ignore:
Timestamp:
05/05/2015 06:11:11 PM (11 years ago)
Author:
Creator2
Message:

detect localhost

File:
1 edited

Legend:

Unmodified
Added
Removed
  • email-client/trunk/admin_side/emailclientwm_settings_page.php

    r1122378 r1154037  
    11<h2><?php print EMAILCLIENTWM_PUGIN_NAME ." ". EMAILCLIENTWM_CURRENT_VERSION; ?></h2>
    22 <?php
     3 
     4   $whitelist = array(
     5    '127.0.0.1',
     6    '::1'
     7);
     8
     9if(in_array($_SERVER['REMOTE_ADDR'], $whitelist)){
     10    echo '<h2 style="color:red">This might not work properly on localhost!</h2>';
     11}
    312        settings_fields( 'emailclientwm-settings-group' );     
    413        $lc = md5(get_option('emailclientwm_lc'));
Note: See TracChangeset for help on using the changeset viewer.