by JasonNugent » Tue Jan 15, 2013 10:01 am
Hi metricgravity,
Your best bet would be to look at some of the code in OJS. Specifically, I can recommend the pages/UserHandler.inc.php file, which serves up all pages related to user home pages. One of the methods in that class, index(), is responsible for serving the base user home page. You can see that one of the first things it does is call $this->validate() which uses our Validation class to determine if a person is logged in or not. If they are not logged in, they get redirected to the login page. I think this is what you want to do. You'd need to incorporate your form page into an existing handler and validate() it prior to serving the form's content. New path operations get defined in the index.php file located in each sub directory of the pages/ folder and map directly to functions in Handler classes.
Regards,
Jason
Software Developer, Public Knowledge Project