Fixed minor things and added missing file
[vanilla-miry.git] / extension.php
blobe19901e52ea0cb97c2bd797bc1d3c4adaee5d517
1 <?php
2 /*
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: A blank page for extensions
14 include('appg/settings.php');
15 $Configuration['SELF_URL'] = 'extension.php';
16 include('appg/init_vanilla.php');
18 // 1. DEFINE VARIABLES AND PROPERTIES SPECIFIC TO THIS PAGE
20 // Ensure the user is allowed to view this page
21 $Context->Session->Check($Context);
23 $Head->BodyId = 'ExtensionPage';
25 // 2. BUILD PAGE CONTROLS
26 $PostBackAction = ForceIncomingString('PostBackAction', '');
27 if ($PostBackAction == '') {
28 $NoticeCollector->AddNotice($Context->GetDefinition('AboutExtensionPage'));
31 // 3. ADD CONTROLS TO THE PAGE
33 $Page->AddRenderControl($Head, $Configuration['CONTROL_POSITION_HEAD']);
34 $Page->AddRenderControl($Menu, $Configuration['CONTROL_POSITION_MENU']);
35 $Page->AddRenderControl($Panel, $Configuration['CONTROL_POSITION_PANEL']);
36 $Page->AddRenderControl($NoticeCollector, $Configuration['CONTROL_POSITION_NOTICES']);
37 $Page->AddRenderControl($Foot, $Configuration['CONTROL_POSITION_FOOT']);
38 $Page->AddRenderControl($PageEnd, $Configuration['CONTROL_POSITION_PAGE_END']);
40 // 4. FIRE PAGE EVENTS
42 $Page->FireEvents();