It looks like a registration script. P.s If you want a more verbose explanation, a better line of questioning would be appropriate.
EditHow weird is this, your script is gone. Paste it again.
Re: could someone please explain me this code
Moderator: General Moderators
- social_experiment
- DevNet Master
- Posts: 2793
- Joined: Sun Feb 15, 2009 11:08 am
- Location: .za
Re: could someone please explain me this code
Last edited by social_experiment on Thu Dec 30, 2010 12:57 am, edited 1 time in total.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Re: could someone please explain me this code
I am not sure whether the code make sense....but i will explain what i can understand from it...
If the user is logged in and if there is a request to log out...then they are destroying the session...which logs out the user..and redirect to the index.php page..
else
if logged in and has username and authentication is equal to 1....redirect to start.php page
else
if logged in and has username and authentication is equal to null ...then destroy the session...which logs out the user
If the user is logged in and if there is a request to log out...then they are destroying the session...which logs out the user..and redirect to the index.php page..
else
if logged in and has username and authentication is equal to 1....redirect to start.php page
else
if logged in and has username and authentication is equal to null ...then destroy the session...which logs out the user
-
chandana27
- Forum Newbie
- Posts: 2
- Joined: Thu Dec 30, 2010 10:32 am
Re: could someone please explain me this code
thank you anantha