Plugin Directory

Changeset 1134710


Ignore:
Timestamp:
04/14/2015 05:59:03 PM (11 years ago)
Author:
Veraxus
Message:

1.5.15 - new advanced feature

Location:
contexture-page-security/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • contexture-page-security/trunk/contexture-page-security.php

    r1134610 r1134710  
    44Plugin URI: http://www.contextureintl.com/open-source-projects/contexture-page-security-for-wordpress/
    55Description: Allows admins to create user groups and restrict access to sections of the site by group.
    6 Version: 1.5.14
     6Version: 1.5.15
    77Author: Veraxus, Contexture
    88Author URI: http://www.contextureintl.com
  • contexture-page-security/trunk/controllers/options_controller.php

    r353374 r1134710  
    5050
    5151    //Update filtering options
     52    $newopts['force-public-pages'] = $_POST['force-public-pages'];
    5253    $newopts['ad_msg_usefilter_menus'] = (isset($_POST['filter-menus'])) ? 'true' : 'false';
    5354    $newopts['ad_msg_usefilter_rss'] = (isset($_POST['filter-rss'])) ? 'true' : 'false';
     
    119120    );*/
    120121}
    121 
    122 
    123 ?>
  • contexture-page-security/trunk/core/CTXPS_Security.php

    r1118230 r1134710  
    3333            return;//Exit the function, no further checks are needed
    3434        }
     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        }
    3545
    3646        //SITE-WIDE PROTECTION
  • contexture-page-security/trunk/readme.txt

    r1134610 r1134710  
    55Requires at least: 3.3
    66Tested up to: 4.2
    7 Stable tag: 1.5.14
     7Stable tag: 1.5.15
    88
    99Allows admins to create user membership groups and set access restrictions for any post, page or section.
     
    133133== Changelog ==
    134134
    135 = 1.5.14 ( 2015/04/14 ) =
     135= 1.5.15 ( 2015/04/14 ) =
    136136* 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
    137138
    138139= 1.5.13 ( 2015/03/22 ) =
  • contexture-page-security/trunk/views/options.php

    r1117151 r1134710  
    143143                </td>
    144144            </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           
    145166        </table>
    146167        <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.