Jump to content
MakeWebGames

Recommended Posts

Posted

Hey I thought I'd make this because alot of people are just posting some that dont work and some that they never made.

Create a file stafflogin.php and put this in it:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Now so that they cant get passed your staff.php add this to your smenu.php:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add that close to the top of your smenu.php.

Thanks and i hope you appreciate it.

Posted

Re: Staff Password without sql's. (ANY VERSION)

Allthough this works in a way, I can still enter staff.php in the URL and gain entrance without putting in the Password. Please can you fix this? I woul love to use it.

Posted

Re: Staff Password without sql's. (ANY VERSION)

 

Allthough this works in a way, I can still enter staff.php in the URL and gain entrance without putting in the Password. Please can you fix this? I woul love to use it.

Place

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

in staff.php ?

Posted

Re: Staff Password without sql's. (ANY VERSION)

If you install it properly it will work properly...

Updated version below:

Stafflogin.php:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

smenu.php code:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

This updated code i guess you can give each userlevel a different password. If your clever enough you can even give each user a different password by changing the if statements.

Posted

Re: Staff Password without sql's. (ANY VERSION)

v1 is the same thing only that you need to change the

include("globals.php");

to session start...etc..

  • 1 month later...
Posted

Re: Staff Password without sql's. (ANY VERSION)

A problem I can already see that will happen with some passwords they might choose.

You really do not have to clean strings that are going to be compared with variables/plaintext.

Posted

Re: Staff Password without sql's. (ANY VERSION)

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

smenu.php:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

}[/code]

Guest Anonymous
Posted

Re: Staff Password without sql's. (ANY VERSION)

Why not use a <dot>htpasswd file ?

No point in writing silly amounts of code when a single line file will suffice.. :)

Posted

Re: Staff Password without sql's. (ANY VERSION)

I agree Whit Nyna, it would be much better that way.

And when you decide you want to make it with password from a mysql table, you just combine the both, php has some nice functions to work Whit apache authentication methods.

  • 1 month later...
Posted

Re: Staff Password without sql's. (ANY VERSION)

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

smenu.php:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

}[/code]

 

THIS DOSENT WORK OR I DID THE ADD THIS

if($_SESSION['stafflogin'] == 0) {

header('location: stafflogin.php');

wrong cause idk can someone tell me wher o add
if($_SESSION['stafflogin'] == 0) {

header('location: stafflogin.php');

at in smenu.php??????
Guest Anonymous
Posted

Re: Staff Password without sql's. (ANY VERSION)

[me=Nyna]sighs[/me]

Posted

Re: Staff Password without sql's. (ANY VERSION)

quite clever mate so sql but why not add selected pw for ips abit of editing needed obviously but only some ips can access staff panel all-togever then if someone have ur staff pw then fuck 'em they can't get in lol unless there like nyna and can manipulate header into believing they are running someone elses ip has i have seen her boost about before which is kinda cool nyna you should let me in on that lol sounds like fun

Guest Anonymous
Posted

Re: Staff Password without sql's. (ANY VERSION)

You should no better than to ask ;)

But the restricted access based on IP is a good if simple trick. Can be easily done with <dot>htaccess and <dot>htpasswd combinations.

There are limitations to this however - the HTTP protocol whilst ratified by the major browser manufacturers, was not in fact followed by them in certain places - so make sure you read the relevant RFCs before implementing security at web-server level.

Posted

Re: Staff Password without sql's. (ANY VERSION)

 

You should no better than to ask ;)

But the restricted access based on IP is a good if simple trick. Can be easily done with <dot>htaccess and <dot>htpasswd combinations.

There are limitations to this however - the HTTP protocol whilst ratified by the major browser manufacturers, was not in fact followed by them in certain places - so make sure you read the relevant RFCs before implementing security at web-server level.

Wow..... What dont you know Nyna?

Guest Anonymous
Posted

Re: Staff Password without sql's. (ANY VERSION)

 

Wow..... What dont you know Nyna?

In all fields lots, however I just don't know less than others ;)

 

so basically it would be better than this password mod...

Well yes, and no, It's IMO easier, but I have also pointed out that there some issues with.

 

yes possibly so why dont you post it........?

I did - weren't you paying attention

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...