to restrict access to a page, you will need to include code at the top of the page to include the secusrity assist helper file, and then use the WA_Auth_RulePasses() function to pass the authentication rule you would like to apply.
for example, on a page that is at the same level in your site as the WA_SecurityAssist folder, you could use the following code at line 1 to restrict it to users that have logged in:
<?php require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php
if (!WA_Auth_RulePasses("Logged in to users")){
WA_Auth_RestrictAccess("users_login.php");
}
?>
to show content on the page is similar, make sure to include the line to attach the security assist helper file at line 1:
<?php require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?>
then use the WA_Auth_RulePasses() function. to show if the user is logged in:
<?php if(WA_Auth_RulePasses("Logged in to users")){ // Begin Show Region ?>
You are logged in
<?php } // End Show Region ?>
to show if they are not logged in:
<?php if(!WA_Auth_RulePasses("Logged in to users")){ // Begin Show Region ?>
You are not logged in
<?php } // End Show Region ?>
Look in the WA_SecurityAssist/HelperGroupsRulesPHP.php file for the available authentication conditions.