Page 2 of 3
Posted: Wed Sep 10, 2003 10:41 am
by BenCollo
wa do u mean by wa ones do i have?
Posted: Wed Sep 10, 2003 10:41 am
by BenCollo
like every thin?
Posted: Wed Sep 10, 2003 10:43 am
by Nay
urmm, now you're confusing us again.
Well, I guess everything related to the current question you're asking.
-Nay
Posted: Wed Sep 10, 2003 10:44 am
by twigletmac
Please type in English or don't bother. It's a pain trying to read your posts - txt speak is for mobiles, you aren't limited to a few hundred characters on this forum so you don't need to abbreviate everything.
Mac
Posted: Wed Sep 10, 2003 10:52 am
by m3rajk
i find it VERY hard to believe you read thelinked thread. or that you read the partiular points i brought to your attention. or this:
http://www.catb.org/~esr/faqs/smart-que ... l#examples
why? your response. you came here looking for someone to just GIVE you stuff.
in my humble opinion Nay was WAY to polite. she shouldn't have given that much considering how you responded to the one who pointed you to $_SERVER['REMOTE_ADDR']
Posted: Wed Sep 10, 2003 10:54 am
by BenCollo
ok sory i need to know how to log people's ip's passwords and user names i dont have any think related to it i just have a simple site
Http://www.vibe-tech.co.uk
Posted: Wed Sep 10, 2003 11:03 am
by JayBird
Do you wanna grab alll this info when someone logs in?
Seeing as you are using PHPNuke, you will already have the usernames and passwords in the Database.
Grabbing IP is easy, just look into $_SERVER['REMOTE_ADDR'] mentioned by Nay.
Mark
Posted: Wed Sep 10, 2003 11:04 am
by jmarcv
BenCollo wrote:ok sory i need to know how to log people's ip's passwords and user names i dont have any think related to it i just have a simple site
Http://www.vibe-tech.co.uk
OK, I told you about $REMOTE_ADDRESS, Nay told you about $_SERVER['REMOTE_ADDR']
Go to php.net for details.
Then I asked what you want to log to, no answer.
If you want to log to a file, then use the FOPEN command to write stuff to a text file. php.net has examples of how to use FOPEN.
Posted: Wed Sep 10, 2003 11:08 am
by BenCollo
ok and is that how you find there passwords out aswell?
Posted: Wed Sep 10, 2003 11:14 am
by JayBird
which passwords are you talking about?
the one they use to log into your site?
Mark
Posted: Wed Sep 10, 2003 11:49 am
by BenCollo
the passwords that people use to log into my site
Posted: Wed Sep 10, 2003 1:10 pm
by Unipus
Uh-oh. I think I can see where this is going...
Posted: Wed Sep 10, 2003 4:30 pm
by jmarcv
BenCollo wrote:the passwords that people use to log into my site
Your script handles that. Its basic HTML. You ask for a password on the form, the form passes it to a script. PHP makes it a variable, and you write it to a file.
Posted: Thu Sep 11, 2003 3:36 am
by Nay
m3rajk wrote:i find it VERY hard to believe you read thelinked thread. or that you read the partiular points i brought to your attention. or this:
http://www.catb.org/~esr/faqs/smart-que ... l#examples
why? your response. you came here looking for someone to just GIVE you stuff.
in my humble opinion Nay was WAY to polite.
she shouldn't have given that much considering how you responded to the one who pointed you to $_SERVER['REMOTE_ADDR']
does my name sound like a girls'?.......
.........
for your information, I'm a guy.
Forget about it.
-----------------------------------------------
Okay, I think I see where you're going.
You're trying to do a log in script, that also gets the IP of the person logging in, right?
Here's how to go about it:
- Get user information from a form and post it.
- Connect to MySQL, and get the row matching the information.
- If there are no rows returned, echo log in failed, or so.
- If there is a match, then get the user's IP.
- Then store it into a MySQL table.
- Start a session.
- Store the username or some information into the session.
- Redirect the user to the protected page.
Check for the variables in the session on the protected pages. I've got the script lying around somewhere in my hard drive, but I'd rather let you learn how to do it.
-Nay
Posted: Thu Sep 11, 2003 3:47 am
by twigletmac
Nay wrote:does my name sound like a girls'?.......
Everybody tends to assume I'm a guy, you can never get these things right on the internet can you

.
Mac