Changeset 1134710
- Timestamp:
- 04/14/2015 05:59:03 PM (11 years ago)
- Location:
- contexture-page-security/trunk
- Files:
-
- 5 edited
-
contexture-page-security.php (modified) (1 diff)
-
controllers/options_controller.php (modified) (2 diffs)
-
core/CTXPS_Security.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
views/options.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
contexture-page-security/trunk/contexture-page-security.php
r1134610 r1134710 4 4 Plugin URI: http://www.contextureintl.com/open-source-projects/contexture-page-security-for-wordpress/ 5 5 Description: Allows admins to create user groups and restrict access to sections of the site by group. 6 Version: 1.5.1 46 Version: 1.5.15 7 7 Author: Veraxus, Contexture 8 8 Author URI: http://www.contextureintl.com -
contexture-page-security/trunk/controllers/options_controller.php
r353374 r1134710 50 50 51 51 //Update filtering options 52 $newopts['force-public-pages'] = $_POST['force-public-pages']; 52 53 $newopts['ad_msg_usefilter_menus'] = (isset($_POST['filter-menus'])) ? 'true' : 'false'; 53 54 $newopts['ad_msg_usefilter_rss'] = (isset($_POST['filter-rss'])) ? 'true' : 'false'; … … 119 120 );*/ 120 121 } 121 122 123 ?> -
contexture-page-security/trunk/core/CTXPS_Security.php
r1118230 r1134710 33 33 return;//Exit the function, no further checks are needed 34 34 } 35 36 //ALLOW HOOK TO EXEMPT PAGES FROM PROTECTION - IF CURRENT PAGE IS IN ARRAY, END CHECK 37 $force_public_pages = array(); 38 if(isset($plugin_opts['force-public-pages']) && !empty($plugin_opts['force-public-pages'])){ 39 $force_public_pages = str_getcsv(str_replace(' ', '', $plugin_opts['force-public-pages'])); 40 } 41 $force_public_pages = apply_filters('force_public_pages',$force_public_pages); 42 if (in_array($post->ID,$force_public_pages)) { 43 return; 44 } 35 45 36 46 //SITE-WIDE PROTECTION -
contexture-page-security/trunk/readme.txt
r1134610 r1134710 5 5 Requires at least: 3.3 6 6 Tested up to: 4.2 7 Stable tag: 1.5.1 47 Stable tag: 1.5.15 8 8 9 9 Allows admins to create user membership groups and set access restrictions for any post, page or section. … … 133 133 == Changelog == 134 134 135 = 1.5.1 4( 2015/04/14 ) =135 = 1.5.15 ( 2015/04/14 ) = 136 136 * Fixed an ajax bug that could prevent adding groups to users. 137 * Added an option that allows admins to selectively disable security for certain pages 137 138 138 139 = 1.5.13 ( 2015/03/22 ) = -
contexture-page-security/trunk/views/options.php
r1117151 r1134710 143 143 </td> 144 144 </tr> 145 146 </table> 147 148 <!-- GLOBAL SECURITY --> 149 <h3 class="title"><?php _e('Advanced Options','contexture-page-security') ?></h3> 150 <p><?php _e('Optional settings for uncommon/advanced site configurations.','contexture-page-security') ?></p> 151 <table class="form-table"> 152 153 <!-- EXEMPTED PAGES --> 154 <tr valign="top"> 155 <th scope="row"> 156 <label for="filter-rss"><?php _e('Force Public Pages:','contexture-page-security') ?></label> 157 </th> 158 <td> 159 <label> 160 <input type="text" name="force-public-pages" id="force-public-pages" value="<?php echo $ADMsg['force-public-pages']; ?>" placeholder="e.g. 1, 2, 3, 4, 5" style="width:500px;" /><br/> 161 <div class="ctx-footnote"><?php _e('Disable security checks for the specified <em>numeric</em> post/page ids (comma-separated list).<br/>Notice: Specified page ids will not automatically apply to child pages!','contexture-page-security') ?></div> 162 </label> 163 </td> 164 </tr> 165 145 166 </table> 146 167 <input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes','contexture-page-security') ?>" />
Note: See TracChangeset
for help on using the changeset viewer.