Uncategorized
By Acty, April 28, 2014
Shield is a all-in-one solution for user authentication & management.
It is user-friendly, light, secure and in constant development.
and many more…
Page protection in just 3 lines of code!
Example:
include("core/integrate.php"); // Including the integration system
lock("core/config.php"); // locking the current page, <i> core/config.php </i> is the path to the configuration file.
set_logout('logout'); // setting the logout parameter
In order to logout you can place the following link:
Example:
<a href="?logout"> Logout </a>
?logout is the parameter that you set via the set_logout() function.
You can log out without a link, just by appending the logout parameter (in our case – ?logout .
Example:
www.yoursite.com/page.php?logout