Error when creating Security pages for admin back-end
Hi,
I was trying to create the user login pages for the Admin back-end of my client's website with Security Assist.
It created the pages, however, when trying to manage the security of these pages, it modifies the test.php file with the following code right above the code to call the database connection:
<?php require_once( "../webassist/security_assist/helper_php.php" ); ?>
<?php
if (!WA_Auth_RulePasses("Logged in to pcms2_users")){
WA_Auth_RestrictAccess("index.php");
}
?>
This is when I encounter the problem because when attempting to go to the login page (renamed "index.php") it gives me a "This webpage has a redirect loop" page
What I was trying to achieve is redirect the user back go the login page (called index.php) when trying to access selected pages in the back-end, when they are Not logged in.
Attached files in question. Also, under link below:
http://zozayacreative.com/TLM/admin
Help please!