Plugin Directory

Changeset 180051


Ignore:
Timestamp:
12/06/2009 01:14:14 AM (16 years ago)
Author:
ajferg
Message:
 
Location:
ip-allowed-list
Files:
6 added
4 edited

Legend:

Unmodified
Added
Removed
  • ip-allowed-list/trunk/admin.css

    r178213 r180051  
    2828fieldset#curList ul { clear:both; padding-top:10px; }
    2929
    30 form#wlistContent { padding:30px 10px; }
    31 form#wlistContent iframe { height:30em !important; width:99% !important; }
     30form.wlistContent { padding:30px 10px; }
     31form.wlistContent iframe { height:30em !important; width:99% !important; }
  • ip-allowed-list/trunk/allowed-admin.php

    r179097 r180051  
    5757        if (!wp_verify_nonce($_POST['_wpnonce'], 'wlistContent')) { echo '<p class="alert">Invalid Security</p></div>'."\n"; return;    }
    5858        // Save HTML content
    59         $content = stripslashes($_POST['ContentHTML']);
     59        $content = stripslashes($_POST['newcontent']);
    6060        file_put_contents(WLIST_CONTENTFILE, $content);
     61        //echo WLIST_CONTENTFILE.'<br /><br />'.$content;
     62        //echo '<pre>'; print_r($_POST); echo '</pre>';
    6163        echo '<div id="message" class="updated fade"><p><strong>Changes to Blocked Content file saved.</strong></p></div>';
    6264    }
     
    107109 
    108110  <div id="tabContent">
    109 <form id="wlistContent" class="wlist" method="post" action="<?php echo esc_url($_SERVER['REQUEST_URI']); ?>">
     111<form id="template" class="wlist wlistContent" method="post" action="<?php echo esc_url($_SERVER['REQUEST_URI']); ?>#tabContent">
    110112  <?php wp_nonce_field('wlistContent') ?>
    111113<?php
     
    118120$fileContent = file_get_contents(WLIST_CONTENTFILE);
    119121?>
    120   <textarea name="ContentHTML" id="ContentHTML" class="large-text codepress html" rows="25" cols="50"><?php echo $fileContent; ?></textarea>
     122  <textarea name="newcontent" id="newcontent" class="large-text codepress html" rows="25" cols="50"><?php echo $fileContent; ?></textarea>
    121123  <div class="save"><input type="submit" name="SaveListContent" value="Save Changes" id="Save" class="button-primary" /></div>
     124 
    122125</form>
     126
     127
     128       
    123129  </div><!-- tab -->
    124130</div><!-- container -->
  • ip-allowed-list/trunk/allowed-list.php

    r179096 r180051  
    44Plugin URI:     http://www.fergusweb.net/software/ip-allowed-list/
    55Description:    Limits access to the site to people on an allowed list of IP addresses.  If you're not on the list, you only get to see a customisable "Coming Soon" style of page.  To remove protection, simply disable this plugin.
    6 Version:        1.01
     6Version:        1.1
    77Author:         Anthony Ferguson
    88Author URI:     http://www.fergusweb.net
  • ip-allowed-list/trunk/readme.txt

    r179096 r180051  
    55Tested up to:   2.8.6
    66Requires at least:  2.5
    7 Stable tag:     1.0.1
     7Stable tag:     1.1
    88
    99Limits access to the site to people on an allowed list of IP addresses.
     
    4040== Changelog ==
    4141
     42= 1.1 =
     43* The codepress editor for editing your "Coming Soon" page HTML has been fixed.
    4244= 1.01 =
    4345* Minor fix in definitions, improved is_writable error message.
Note: See TracChangeset for help on using the changeset viewer.