![]() |
need help
have a php game code where it keeps you logged in and the next person to go there will beable to use your name so keeps you logged in
help please |
I'm not sure exactly what you're saying? Can you explain further?
|
ok lets say you go to my game and sign in to the game
ok me being that its my game im admin well if i logout when some one goes to the page all they need to do is hit play and they in the game under my account so it keeps you logged in the game at all times |
Are you using cookies, sessions or some other type of authentication and login management? Still need more information. I'm not sure how exactly you login or keep control of your users?
|
html.php file
3 Attachment(s)
ok here are the files
|
I have no idea what the problem is. It none of those files does it set the $id variable. Although it uses it through the html.php file. Possibly attach setup.php file also. The only thing that I saw for user authentication was if the username and password were both set. Then it checked for a match via the database. It only set one cookie after that which to be honest, I have no reason why it did that. It set the 'code' held in the database in the cookie. First off, this is a bad procedure because many people could by pass this if they knew this 'code'. Anyways, I need to figure out where the $id variable is being set and setup.php is the only file I think that would have a possibility at this point, unless there are more files included in the setup.php file.
By the way, this script is full of SQL injection. If I were you I would pay a programmer or go through all the files yourself and try to fix those problems. You could run into a problem depending on your php installation. :( |
setup.php
here is the setup.php file
|
Ok, I deleted your file though as it includes things that you probably don't want everyone to know. I'm looking at the file now.
|
Ok, try upload this setup.php file and give me the url to the site. I'm going to run a few tests on it and see what is causing the problem.
Let me know when you download the file so I can delete it so no one steals your information. |
|
Ok, try this file now.
Again, let me know when you have it. |
Ok, I noticed you uploaded it. Here's my last idea. This query is being ran when every someone goes to the site:
PHP Code:
PHP Code:
|
By the way here is your fixed setup.php file that you can reupload.
|
sorry i added the name manually so no code that was the prob thank you so much four the help
|
No problem. I noticed it was working correctly so yes, that was the problem! :)
|
I can see your a really nice and helping guy, Ryan :)
If i have any problems with PHP i will be sure to post them at TalkPHP ;) |
Thanks for the kind words! :)
|
| All times are GMT. The time now is 08:43 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0