|
To protect individual .php pages login to the PHP Membership Manager administration program.
Click [Protect Site] and choose [More Protection Options]
The section labeled [Protect Individual .php Files] provides PHP code to place at the ver top of the file you wish to protect.
Example:
<?php
require_once("../mm2/login_require.php");
visitor_login($groups="0",$username="0"); //
?>
Line: require_once:
Update within the quotes the relative path to the installation folder & the file named "login_require.php".
Line: visitor_login
Set the $groups variable to "0" to allow any valid user account to access the page. If you want to only allow specific user groups to access the page enter the group #, or multiple group #'s separated by a comma.
The $username variable do the same as above. Entering only a username, or usernames separated by a comma that can access the file.
|