} } # Observe redirects - store notices in session public function onRedirect() { $_SESSION['notice_' . $this->type] = $this->data; } } /***************************************************************** * Initialize instances of defined classes. If we were structing * this nicely we'd stick the above in separate files to keep it * clean but we're sacrificing good structure for the convenience * of running this admin script stand-alone. ******************************************************************/ # Create output object $output = new SkinOutput(); # Create an overloader object to hold our template vars. # This keeps them all together and avoids problems with undefined variable notices. $tpl = new Overloader(); # Location wrapper for redirections $location = new Location(); # Create user object $user = new User(); # Create notice handlers $confirm = new Notice('confirm'); $error = new Notice('error'); # Input wrapper $input = new Input(); /***************************************************************** * Nearly finished preparing, now just bind them together as appropriate ******************************************************************/
} } // Observe redirects - store notices in session public function onRedirect() { $_SESSION['notice_' . $this->type] = $this->data; } } /***************************************************************** * Initialise instances of defined classes. If we were structing * this nicely we'd stick the above in separate files to keep it * clean but we're sacrificing good structure for the convenience * of running this admin script stand-alone. ******************************************************************/ // Create output object $output = new SkinOutput(); // Create an overloader object to hold our template vars. // This keeps them all together and avoids problems with undefined variable notices. $tpl = new Overloader(); // Location wrapper for redirections $location = new Location(); // Create user object $user = new User(); // Create notice handlers $confirm = new Notice('confirm'); $error = new Notice('error'); // Input wrapper $input = new Input(); /***************************************************************** * Nearly finished preparing, now just bind them together as appropriate ******************************************************************/