HomeHelpTrac

source: tags/6.1/index.php @ 10282

Revision 10282, 3.4 KB checked in by Leonid Sokushev, 3 years ago (diff)
Line 
1<?
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
21if ( !file_exists( "inc/header.inc.php" ) )
22{
23    // this is dynamic page -  send headers to do not cache this page
24    $now = gmdate('D, d M Y H:i:s') . ' GMT';
25    header("Expires: $now");
26    header("Last-Modified: $now");
27    header("Cache-Control: no-cache, must-revalidate");
28    header("Pragma: no-cache");
29
30    echo "It seems to be script is <b>not</b> installed.<br />\n";
31    if ( file_exists( "install/index.php" ) ) {
32        echo "Please, wait. Redirecting you to installation form...<br />\n";
33        echo "<script language=\"Javascript\">location.href = 'install/index.php';</script>\n";
34    }
35    exit;
36}
37
38require_once( 'inc/header.inc.php' );
39require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
40require_once( BX_DIRECTORY_PATH_INC . 'admin.inc.php' );
41
42require_once( BX_DIRECTORY_PATH_INC . 'db.inc.php' );
43require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
44require_once( BX_DIRECTORY_PATH_INC . 'prof.inc.php' );
45require_once( BX_DIRECTORY_PATH_INC . 'members.inc.php' );
46require_once( BX_DIRECTORY_PATH_INC . 'news.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_INC . 'tags.inc.php' );
50require_once( BX_DIRECTORY_PATH_ROOT . "templates/tmpl_{$tmpl}/scripts/BxTemplVotingView.php" );
51require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolArticles.php' );
52require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolClassifieds.php' );
53require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolEvents.php' );
54require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolBlogs.php' );
55require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolGroups.php' );
56require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolPageView.php' );
57require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolSharedMedia.php' );
58
59require( BX_DIRECTORY_PATH_ROOT . "templates/base/scripts/BxBaseIndex.php" );
60require( BX_DIRECTORY_PATH_ROOT . "templates/tmpl_{$tmpl}/scripts/BxTemplIndex.php" );
61
62check_logged();
63
64
65$_page['name_index']    = 1;
66$_page['header']        = $site['title'];
67$_page['header_text']   = $site['title'];
68$_page['css_name']      = 'index.css';
69
70$oIPV = new BxTemplIndexPageView();
71
72$_ni = $_page['name_index'];
73$_page_cont[$_ni]['promo_code'] = getPromoCode();
74$_page_cont[$_ni]['page_main_code'] = $oIPV -> getCode();
75
76// add email to notify emails list
77if ( $_POST['subscribe'] && $_POST['subscribe_submit'] )
78    AddNotifyEmail($_POST['subscribe']);
79
80
81
82PageCode();
Note: See TracBrowser for help on using the repository browser.