1 | <?
|
---|
2 | /***************************************************************************
|
---|
3 | * Dolphin Smart Community Builder
|
---|
4 | * -------------------
|
---|
5 | * begin : Mon Mar 23 2006
|
---|
6 | * copyright : (C) 2007 BoonEx Group
|
---|
7 | * website : http://www.boonex.com
|
---|
8 | * This file is part of Dolphin - Smart Community Builder
|
---|
9 | *
|
---|
10 | * Dolphin is free software; you can redistribute it and/or modify it under
|
---|
11 | * the terms of the GNU General Public License as published by the
|
---|
12 | * Free Software Foundation; either version 2 of the
|
---|
13 | * License, or any later version.
|
---|
14 | *
|
---|
15 | * Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
---|
16 | * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
---|
17 | * See the GNU General Public License for more details.
|
---|
18 | * You should have received a copy of the GNU General Public License along with Dolphin,
|
---|
19 | * see license.txt file; if not, write to marketing@boonex.com
|
---|
20 | ***************************************************************************/
|
---|
21 |
|
---|
22 | require_once("../inc/header.inc.php");
|
---|
23 |
|
---|
24 | $GLOBALS['aRequest'] = explode('/', $_GET['r']);
|
---|
25 |
|
---|
26 | if ($GLOBALS['aRequest'][1] == 'admin' || $GLOBALS['aRequest'][1] == 'administration')
|
---|
27 | $GLOBALS['iAdminPage'] = 1;
|
---|
28 |
|
---|
29 | require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
|
---|
30 | require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolModuleDb.php');
|
---|
31 |
|
---|
32 | $sName = process_db_input(array_shift($GLOBALS['aRequest']), BX_TAGS_STRIP);
|
---|
33 |
|
---|
34 | $oDb = new BxDolModuleDb();
|
---|
35 | $GLOBALS['aModule'] = $oDb->getModuleByUri($sName);
|
---|
36 |
|
---|
37 | if(empty($GLOBALS['aModule']))
|
---|
38 | BxDolRequest::moduleNotFound($sName);
|
---|
39 | include(BX_DIRECTORY_PATH_MODULES . $GLOBALS['aModule']['path'] . 'request.php');
|
---|
40 | ?>
|
---|