* Vanilla is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
* Vanilla is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with Vanilla; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
* The latest source code for Vanilla is available at www.lussumo.com
* Contact Mark O'Sullivan at mark [at] lussumo [dot] com
*
* Description: Constants and objects specific to forum pages.
*/
include agAPPLICATION_PATH . "appg/headers.php";
include sgLIBRARY . "Utility.Functions.php";
include sgLIBRARY . "Utility.Database.class.php";
include sgLIBRARY . "Utility.SqlBuilder.class.php";
include sgLIBRARY . "Utility.MessageCollector.class.php";
include sgLIBRARY . "Utility.ErrorManager.class.php";
include sgLIBRARY . "Utility.ObjectFactory.class.php";
include sgLIBRARY . "Utility.StringManipulator.class.php";
include sgLIBRARY . "Utility.Context.class.php";
include sgLIBRARY . "Utility.Page.class.php";
include sgLIBRARY . "Utility.Writer.class.php";
include sgLIBRARY . "Utility.Control.class.php";
include sgLIBRARY . "Vanilla.Functions.php";
include sgLIBRARY . "Vanilla.Session.class.php";
include sgLIBRARY . "Vanilla.User.class.php";
$Context = new Context();
$Context->Session->Check(agSAFE_REDIRECT);
// INSTANTIATE THE PAGE OBJECT
// The page object handles collecting all page controls
// and writing them when it's events are fired.
$Page = new Page($Context);
$Page->FireEvent("Page_Init");