Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Mgccl
New Member
New Member



Joined: Feb 18, 2006
Posts: 6

PostPosted: Mon Jul 03, 2006 6:43 pm Reply with quote

I have searched the WHOLE PHPnuke script and find nothing in
$_SESSION
$_COOKIE
... So how doe PHPnuke pass variables?
and how could I use them, because I'm making a module~ at least I need to get the var of username(or id), premission(admin or not) and what lanuage he is using
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Jul 03, 2006 8:28 pm Reply with quote

PHP is an interpreted server side scripting language. Many of the various commands simply write HTML code that is then passed to the browser. So, you need to understand HTML before you can fully understand Nuke. Nuke uses FORM variables for much of its code, in the form of GET and POST methods.
 
View user's profile Send private message
Mgccl







PostPosted: Tue Jul 04, 2006 11:28 am Reply with quote

I understand HTML...
so you mean... in EACH PAGE, there will be a hidden form that post stuff? THAT's crazy... Why don't PHPnuke use session or cookie?
then... where does the Username stores? or the lanuage the user is using?
$_POST['user']?
 
Raven







PostPosted: Tue Jul 04, 2006 12:32 pm Reply with quote

It's not crazy at all. Nothing is "hidden". Most pages are dynamically generated, but nothing is "hidden". Those are in the MySQL tables and you have to read the tables to extract the values. Nothing different than any multi-page dynamic system. You might want to read this book. It's the best one out there on the workings of phpNuke. Study mainfile.php and then the other core nuke files to see how things are done. The username and several other pieces of information ARE stored in a cookie.
[ Only registered users can see links on this board! Get registered or login! ]
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©