1 | <?php
|
---|
2 |
|
---|
3 | /***************************************************************************
|
---|
4 | * Dolphin Smart Community Builder
|
---|
5 | * -----------------
|
---|
6 | * begin : Mon Mar 23 2006
|
---|
7 | * copyright : (C) 2006 BoonEx Group
|
---|
8 | * website : http://www.boonex.com/
|
---|
9 | * This file is part of Dolphin - Smart Community Builder
|
---|
10 | *
|
---|
11 | * Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
|
---|
12 | * http://creativecommons.org/licenses/by/3.0/
|
---|
13 | *
|
---|
14 | * Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
---|
15 | * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
---|
16 | * See the Creative Commons Attribution 3.0 License for more details.
|
---|
17 | * You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
|
---|
18 | * see license.txt file; if not, write to marketing@boonex.com
|
---|
19 | ***************************************************************************/
|
---|
20 |
|
---|
21 | require_once( 'inc/header.inc.php' );
|
---|
22 | require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
|
---|
23 | require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
|
---|
24 | require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
|
---|
25 |
|
---|
26 | check_logged();
|
---|
27 |
|
---|
28 | $sSys = isset($_REQUEST['sys']) ? $_REQUEST['sys'] : '';
|
---|
29 | $sAction = isset($_REQUEST['action']) && preg_match ('/^[A-Za-z_-]+$/', $_REQUEST['action']) ? $_REQUEST['action'] : '';
|
---|
30 | $iId = (int)$_REQUEST['id'];
|
---|
31 |
|
---|
32 | bx_import ('BxTemplCmtsView');
|
---|
33 | $aSystems =& BxDolCmts::getSystems ();
|
---|
34 |
|
---|
35 | if ($sSys && $sAction && $iId && isset($aSystems[$sSys])) {
|
---|
36 |
|
---|
37 | $oCmts = null;
|
---|
38 | if ($aSystems[$sSys]['class_name']) {
|
---|
39 | require_once (BX_DIRECTORY_PATH_ROOT . $aSystems[$sSys]['class_file']);
|
---|
40 | $sClassName = $aSystems[$sSys]['class_name'];
|
---|
41 | $oCmts = new $sClassName($sSys, $iId, true);
|
---|
42 | } else {
|
---|
43 | $oCmts = new BxTemplCmtsView($sSys, $iId, true);
|
---|
44 | }
|
---|
45 |
|
---|
46 | $sMethod = 'action' . $sAction;
|
---|
47 | echo $oCmts->$sMethod();
|
---|
48 |
|
---|
49 | }
|
---|
50 |
|
---|
51 | ?>
|
---|