3 * Copyright 2003 Mark O'Sullivan
4 * This file is part of Vanilla.
5 * 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.
6 * 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.
7 * 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
8 * The latest source code for Vanilla is available at www.lussumo.com
9 * Contact Mark O'Sullivan at mark [at] lussumo [dot] com
11 * Description: Constants and objects specific to forum pages.
13 // Make sure this file was not accessed directly and prevent register_globals configuration array attack
14 if (!defined('IN_VANILLA')) exit();
16 include_once($Configuration['APPLICATION_PATH'].'appg/headers.php');
17 include_once($Configuration['APPLICATION_PATH'].'appg/database.php');
18 include_once($Configuration['DATABASE_PATH']);
19 include_once($Configuration['LIBRARY_PATH'].'Framework/Framework.Functions.php');
20 include_once($Configuration['LIBRARY_PATH'].'Framework/Framework.Class.Database.php');
21 include_once($Configuration['LIBRARY_PATH'].'Framework/Framework.Class.'.$Configuration['DATABASE_SERVER'].'.php');
22 include_once($Configuration['LIBRARY_PATH'].'Framework/Framework.Class.SqlBuilder.php');
23 include_once($Configuration['LIBRARY_PATH'].'Framework/Framework.Class.MessageCollector.php');
24 include_once($Configuration['LIBRARY_PATH'].'Framework/Framework.Class.ErrorManager.php');
25 include_once($Configuration['LIBRARY_PATH'].'Framework/Framework.Class.ObjectFactory.php');
26 include_once($Configuration['LIBRARY_PATH'].'Framework/Framework.Class.StringManipulator.php');
27 include_once($Configuration['LIBRARY_PATH'].'Framework/Framework.Class.Context.php');
28 include_once($Configuration['LIBRARY_PATH'].'Framework/Framework.Class.Delegation.php');
29 include_once($Configuration['LIBRARY_PATH'].'Framework/Framework.Class.Control.php');
30 include_once($Configuration['LIBRARY_PATH'].$Configuration['AUTHENTICATION_MODULE']);
31 include_once($Configuration['LIBRARY_PATH'].'People/People.Class.Session.php');
32 include_once($Configuration['LIBRARY_PATH'].'People/People.Class.PasswordHash.php');
33 include_once($Configuration['LIBRARY_PATH'].'People/People.Class.User.php');
35 $Context = new Context($Configuration);
36 $Context->DatabaseTables
= &$DatabaseTables;
37 $Context->DatabaseColumns
= &$DatabaseColumns;
39 // Start the session management
40 $Context->StartSession();
42 $Context->Session
->Check($Context);
44 // DEFINE THE LANGUAGE DICTIONARY
45 include($Configuration['LANGUAGES_PATH'].$Configuration['LANGUAGE'].'/definitions.php');
46 include($Configuration['APPLICATION_PATH'].'conf/language.php');
48 // INSTANTIATE THE PAGE OBJECT
49 $Page = $Context->ObjectFactory
->NewContextObject($Context, 'Page', $Configuration['PAGE_EVENTS']);
51 // FIRE INITIALIZATION EVENT
52 $Page->FireEvent('Page_Init');
55 // 2006-06-16 - Extensions are no long included here because bad extensions were causing standard ajax features to break.
56 // include($Configuration['APPLICATION_PATH'].'conf/extensions.php');