source: trunk/index.php

Last change on this file was 2, checked in by george, 14 years ago
  • Přidáno: Trunk revize 13719.
File size: 3.1 KB
Line 
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
21define('BX_INDEX_PAGE', 1);
22
23if ( !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
40require_once( 'inc/header.inc.php' );
41require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
42require_once( BX_DIRECTORY_PATH_INC . 'admin.inc.php' );
43
44require_once( BX_DIRECTORY_PATH_INC . 'db.inc.php' );
45require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
46require_once( BX_DIRECTORY_PATH_INC . 'prof.inc.php' );
47require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
48require_once( BX_DIRECTORY_PATH_INC . 'membership_levels.inc.php' );
49require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolPageView.php' );
50require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolProfileFields.php' );
51require_once( BX_DIRECTORY_PATH_ROOT . "templates/tmpl_{$tmpl}/scripts/BxTemplFormView.php" );
52require_once( BX_DIRECTORY_PATH_ROOT . "templates/tmpl_{$tmpl}/scripts/BxTemplVotingView.php" );
53
54bx_import("BxTemplIndexPageView");
55
56//-- registration by invitation only --//;
57if( (int)$_GET['idFriend'] && getParam('reg_by_inv_only') == 'on' ) {
58 setcookie('idFriend', (int)$_GET['idFriend'], 0, '/');
59}
60
61check_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
77PageCode();
78
79?>
Note: See TracBrowser for help on using the repository browser.