I’m using a .php script named members2.zip I downloaded from AwesomePHP.com.
I setup my database and created my data-fields.
I can access the admin page and create new users, edit things with no problems.
I can login, but it goes nowhere…
I’m not sure what goes into a page to protect it, also a protect-file for a directory.
Question:
What do I place in a web-page (the code) that makes the user login?
(My admin has code that is suppose to be placed at the start of the page, but it don’t seem to work)
This is the code for a page (admin-page gave me):
/************* Membership V2.0 ******/
/
Released by AwesomePHP.com, under the GPL License, a
copy of it should be attached to the zip file, or
you can view it on http://AwesomePHP.com/gpl.txt
/
/ Membership V2.0 *******************/
//Call Database & Connect
require_once(‘headers/database.php’);
connect();
//Call functions
require_once(‘headers/functions.php’);
$MEMBERSHIP_ID_CHECK = 1;
//Login Check Page
require_once(‘headers/logincheck.php’);
if($is_logged == false){
//Disconnect Database
disconnect_data();
die(‘You need to login before accessing this page.’);
}
//If Database access is not needed anymore,
disconnect_data();
This is the code for a directory (admin-page gave me this code):
AuthUserFile /Membership/extras/.free.fdaccess
AuthName “Please Log In”
AuthType Basic
require valid-user
But it don’t seem to work either.
Question #2:
Can anyone help me?
I’m sure I’m very close to having this working, just need a little help.
Thanks,
DMSS