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 | define('BX_INDEX_PAGE', 1);
|
---|
22 |
|
---|
23 | if ( !file_exists( "inc/header.inc.php" ) )
|
---|
24 | {
|
---|
25 | // this is dynamic page - send headers to do not cache this page
|
---|
26 | $now = gmdate('D, d M Y H:i:s') . ' GMT';
|
---|
27 | header("Expires: $now");
|
---|
28 | header("Last-Modified: $now");
|
---|
29 | header("Cache-Control: no-cache, must-revalidate");
|
---|
30 | header("Pragma: no-cache");
|
---|
31 |
|
---|
32 | echo "It seems to be script is <b>not</b> installed.<br />\n";
|
---|
33 | if ( file_exists( "install/index.php" ) ) {
|
---|
34 | echo "Please, wait. Redirecting you to installation form...<br />\n";
|
---|
35 | echo "<script language=\"Javascript\">location.href = 'install/index.php';</script>\n";
|
---|
36 | }
|
---|
37 | exit;
|
---|
38 | }
|
---|
39 |
|
---|
40 | require_once( 'inc/header.inc.php' );
|
---|
41 | require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
|
---|
42 | require_once( BX_DIRECTORY_PATH_INC . 'admin.inc.php' );
|
---|
43 |
|
---|
44 | require_once( BX_DIRECTORY_PATH_INC . 'db.inc.php' );
|
---|
45 | require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
|
---|
46 | require_once( BX_DIRECTORY_PATH_INC . 'prof.inc.php' );
|
---|
47 | require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
|
---|
48 | require_once( BX_DIRECTORY_PATH_INC . 'membership_levels.inc.php' );
|
---|
49 | require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolPageView.php' );
|
---|
50 | require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolProfileFields.php' );
|
---|
51 | require_once( BX_DIRECTORY_PATH_ROOT . "templates/tmpl_{$tmpl}/scripts/BxTemplFormView.php" );
|
---|
52 | require_once( BX_DIRECTORY_PATH_ROOT . "templates/tmpl_{$tmpl}/scripts/BxTemplVotingView.php" );
|
---|
53 |
|
---|
54 | bx_import("BxTemplIndexPageView");
|
---|
55 |
|
---|
56 | //-- registration by invitation only --//;
|
---|
57 | if( (int)$_GET['idFriend'] && getParam('reg_by_inv_only') == 'on' ) {
|
---|
58 | setcookie('idFriend', (int)$_GET['idFriend'], 0, '/');
|
---|
59 | }
|
---|
60 |
|
---|
61 | check_logged();
|
---|
62 |
|
---|
63 | $_page['name_index'] = 1;
|
---|
64 |
|
---|
65 | $oSysTemplate->setPageTitle($site['title']);
|
---|
66 | $oSysTemplate->setPageDescription(getParam("MetaDescription"));
|
---|
67 | $oSysTemplate->setPageMainBoxTitle($site['title']);
|
---|
68 | $oSysTemplate->addPageKeywords(getParam("MetaKeyWords"));
|
---|
69 | $oSysTemplate->addCss(array('index.css'));
|
---|
70 |
|
---|
71 | $oIPV = new BxTemplIndexPageView();
|
---|
72 |
|
---|
73 | $_ni = $_page['name_index'];
|
---|
74 | $_page_cont[$_ni]['promo_code'] = getPromoCode();
|
---|
75 | $_page_cont[$_ni]['page_main_code'] = $oIPV -> getCode();
|
---|
76 |
|
---|
77 | PageCode();
|
---|
78 |
|
---|
79 | ?>
|
---|