| 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 |
|
|---|
| 21 | if ( !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 |
|
|---|
| 38 | require_once( 'inc/header.inc.php' );
|
|---|
| 39 | require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
|
|---|
| 40 | require_once( BX_DIRECTORY_PATH_INC . 'admin.inc.php' );
|
|---|
| 41 |
|
|---|
| 42 | require_once( BX_DIRECTORY_PATH_INC . 'db.inc.php' );
|
|---|
| 43 | require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
|
|---|
| 44 | require_once( BX_DIRECTORY_PATH_INC . 'prof.inc.php' );
|
|---|
| 45 | require_once( BX_DIRECTORY_PATH_INC . 'members.inc.php' );
|
|---|
| 46 | require_once( BX_DIRECTORY_PATH_INC . 'news.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_INC . 'tags.inc.php' );
|
|---|
| 50 | require_once( BX_DIRECTORY_PATH_ROOT . "templates/tmpl_{$tmpl}/scripts/BxTemplVotingView.php" );
|
|---|
| 51 | require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolArticles.php' );
|
|---|
| 52 | require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolClassifieds.php' );
|
|---|
| 53 | require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolEvents.php' );
|
|---|
| 54 | require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolBlogs.php' );
|
|---|
| 55 | require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolGroups.php' );
|
|---|
| 56 | require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolPageView.php' );
|
|---|
| 57 | require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolSharedMedia.php' );
|
|---|
| 58 |
|
|---|
| 59 | require( BX_DIRECTORY_PATH_ROOT . "templates/base/scripts/BxBaseIndex.php" );
|
|---|
| 60 | require( BX_DIRECTORY_PATH_ROOT . "templates/tmpl_{$tmpl}/scripts/BxTemplIndex.php" );
|
|---|
| 61 |
|
|---|
| 62 | check_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
|
|---|
| 77 | if ( $_POST['subscribe'] && $_POST['subscribe_submit'] )
|
|---|
| 78 | AddNotifyEmail($_POST['subscribe']);
|
|---|
| 79 |
|
|---|
| 80 |
|
|---|
| 81 |
|
|---|
| 82 | PageCode();
|
|---|