diff --git a/inc/class.page.php b/inc/class.page.php --- a/inc/class.page.php +++ b/inc/class.page.php @@ -30,7 +30,8 @@ class page { private $pagetitle = ''; // Title of page private $scripts = array(); // Scripts to include on page - public function __construct($ntitle, $nscripts = array() ){ + public function __construct($ntitle, $nscripts = array(), $immediate = TRUE) + { // Scripts and styles available to include $this->headCode['jQuery'] = ''; $this->headCode['jValidate'] = ''; @@ -41,11 +42,31 @@ class page { $this->pagetitle = $ntitle; $this->scripts = $nscripts; - if($ntitle != "NOHEAD") + if($immediate + && $ntitle != "NOHEAD") $this->head(); + session_start(); } + /** + * \brief + * Adds some headcode to this page. + * + * \param $key + * The key to register this headcode under. + * \param $code + * The actuall code, such as a