Jump to content
xisto Community
Dawiss

Customizing Login Script please help anyone good in PHP..

Recommended Posts

On my main site i have this login box: Click here!... And I want to change the look of it in new adress but I have only things can be get from that adres.. I put that login box (new) in my website and changed the page that opens but when you try to login with wrong username or password.. It opens like you typed right usernam and password..

So I need to make it work like normal login box but there can be logen in with only right username and password.. I think there need to be added some cookies or something to that page..

So someone who is good in PHP please help me out ..

Notice from BuffaloHELP:
Topic title edited to be more specific.

Edited by BuffaloHELP (see edit history)

Share this post


Link to post
Share on other sites

Hummm let me see if I understood you correctly.You want to access your site using this login page but when incorrect or hacker puts incorrect username and password, you want to show a page but a "fake" one?If this is so, and you are the only login user for this situation, I would do this. Use cPanel to protect the directory or page with password. This will popup login and password screen. But when incorrect user and password is entered (like 3 times) it will show the Forbidden Access page. You can modify the .htaccess to customize your Forbidden Access page and write a simple redirect script to the fake page. The frontend user would think that he/she cracked the password and think that the page shown is the true content of your site.

Share this post


Link to post
Share on other sites

Thanks BuffaloHELP but I have diffrent problem.. There are many users who can enter that site when writen right password and username.. So I need them to be redirected to right page when legged in.. But I have problem that everyone can acess that page just preesing login.. but I need to make something that only this website members can enter it..Short about that website:My website is Golf Club (minigolf league) that is based on http://www.myleague.com/ things.. it all works ok but now i need to change the login page so I can make the league better and popular..

Share this post


Link to post
Share on other sites

yeah. That`s the problem for most of users. BuffaloHELP idea is nice, but u need dth. else. But try out his idea too. Mysql - i hink, u got to do sth. with that:) But the easiest way - dainis@lemon.lv :(:(:(

Share this post


Link to post
Share on other sites

BuffaloHELP It helped out a lot but still isn't right thing.. I will post a bit later the look on webpage so it will be clearlyer to understand.. Because I have alredy an login box that is working, and there is alredy members.. but I want to edit it so it works with nw look and diffrent page redirected..

apollo.. I think he won't tell me anything how he made it because it's his BIG secret :(..

Ok here is an example how I want to be:

I have this league page with login that works perfect: Click here
And I tryed to edit it, I didn't had any file of that page so I get it by File > Save Page As.. Then I edited it like I need and puted on net.. But now it works like: like this..

If you are clever then you will see that everyone can login members with password and anyone even not typing password..

So that I need is to make it work like only members can enter it, so can anyone help m out now?? :(

Notice from BH:
Merging.

Share this post


Link to post
Share on other sites

Dawiss, based on this part of your posting above:

I have this league page with login that works perfect: Click hereAnd I tryed to edit it, I didn't had any file of that page so I get it by File > Save Page As.. Then I edited it like I need and puted on net.. But now it works like: like this..

If I understand correctly, you saved a php-generated page that will only be an Html document, so the Server-side aspect of the php page is now static. Get what I mean? You have lost the capability to be dynamic with your passwords and the variables passed by php.
When the page you " saved as " is generated, it produced only the html.
So when you did the " save as ", you saved only one set of variables trapped into the page and the php functions are all gone now. Does this make sense to you?
Best you be writing a new page with the php dynamic variables included in your Log-in script for the page.

Share this post


Link to post
Share on other sites

Hummm let me see if I understood you correctly.You want to access your site using this login page but when incorrect or hacker puts incorrect username and password, you want to show a page but a "fake" one?
If this is so, and you are the only login user for this situation, I would do this. Use cPanel to protect the directory or page with password. This will popup login and password screen. But when incorrect user and password is entered (like 3 times) it will show the Forbidden Access page. You can modify the .htaccess to customize your Forbidden Access page and write a simple redirect script to the fake page. The frontend user would think that he/she cracked the password and think that the page shown is the true content of your site.


Actually BuffaloHelp, they can check the server headers, and pro crackers will know that it is a 401 error :(

Share this post


Link to post
Share on other sites

Ok thanks for help.. I have decided that I will make login from this tutorial : http://forums.xisto.com/topic/7247-complete-login-system-with-php-mysql/

But If I make an user profiles then I need to add each user to the database so when it trys to login it searches is it on the MySQL database..?

Thanks agan everyone :(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.