Setting up a Login & have a few question

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

How long ago did you get the script. That domain is just a parked page now. You might not want to use something that is not around anymore. In any case, you are missing some important code from your post. Please provide all the files so we can help you.

Here’s where I got the script http://funkyvision.co.uk/viewphpscript4.html
It’s seems like what I was looking for even though it’s using some older files.
Membership, admin, capcha, email, newsletter…

Here are some of the files (can only attach 4 at a time).
The attach system on this web-site won’t let me upload a .php file, should I convert the to .txt?
I used the included install.php for initial setup, had a couple of problems but worked them out.
The readme.txt explianed things pretty good, but was fuzzy on exactly what when into the web-page I wanted to protect.
The 2 snippets of code I posted earlier came out of the admin page (section on protecting files).

There are 66 files in 9 folders.
These are some of the files that re-direct to login & registration.

Should I .zip them all and attach them?

Thanks!


readme.txt (1.77 KB)

It was easier for me to just download it from the site. It uses old Deprecated code. You need code that is in PDO or Mysqli.

This code is totally insecure and dangerous. Do not use it period.

  • The download link you provided has nowhere near the amount of files you said. Where did you get all the rest of the files?

I screwed up!
This isn’t where I got the code (tried many and don’t remember the site location).
I’m attaching the .zip file I used.

Seems the site was an ongoing free membship script that a community was developing, just don’t remember the site name.
Sorry…


Membership-2.zip (493 KB)

Ok, Same comments still apply. Old, Deprecated, insecure code. Don’t use it.

Ok, Thanks for the help…

Dan

I’ve got a nice script from Funky-Vision that seems secure, but again I can’t get email to work.
It’s PHP Membership V2.
http://funkyvision.co.uk/viewphpscript4.html

Got the script working (not much to do, because it’s all done from an Admin page).

Is this script alright?

Thats the same exact script I first told you was no good.

Sponsor our Newsletter | Privacy Policy | Terms of Service