HomeHelpTrac

Changeset 15201 for trunk/advice.php


Ignore:
Timestamp:
06/06/11 02:27:38 (12 months ago)
Author:
Alexander Trofimov
Message:

Dolphin 8 initial commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/advice.php

    r11226 r15201  
    11<?php 
    2 /*************************************************************************** 
    3 *                            Dolphin Smart Community Builder 
    4 *                              ----------------- 
    5 *     begin                : Mon Mar 23 2006 
    6 *     copyright            : (C) 2006 BoonEx Group 
    7 *     website              : http://www.boonex.com/ 
    8 * This file is part of Dolphin - Smart Community Builder 
    9 * 
    10 * Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.  
    11 * http://creativecommons.org/licenses/by/3.0/ 
    12 * 
    13 * Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
    14 * without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
    15 * See the Creative Commons Attribution 3.0 License for more details.  
    16 * You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,  
    17 * see license.txt file; if not, write to marketing@boonex.com 
    18 ***************************************************************************/ 
     2/** 
     3 * @package     Dolphin Core 
     4 * @copyright   Copyright (c) BoonEx Pty Limited - http://www.boonex.com/ 
     5 * @license     CC-BY - http://creativecommons.org/licenses/by/3.0/ 
     6 */ 
    197 
    20 require_once( 'inc/header.inc.php' ); 
    21 require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' ); 
    22 require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' ); 
     8require_once('./inc/header.inc.php'); 
     9require_once(BX_DIRECTORY_PATH_INC . "languages.inc.php"); 
     10require_once(BX_DIRECTORY_PATH_INC . "params.inc.php"); 
     11require_once(BX_DIRECTORY_PATH_INC . "design.inc.php"); 
    2312 
    24 // --------------- page variables and login 
     13bx_import('BxTemplMenu'); 
     14BxTemplMenu::getInstance()->setCurrentMenu ('bx_sys_sub_advice'); // TODO: change database accordingly 
    2515 
    26 $_page['name_index']    = 17; 
    27  
    28 check_logged(); 
    29  
    30 $_page['header'] = _t( "_ADVICE_H" ); 
    31 $_page['header_text'] = _t( "_ADVICE_H1" ); 
    32  
    33 // --------------- page components 
    34  
    35 $_ni = $_page['name_index']; 
    36 $_page_cont[$_ni]['page_main_code'] = PageCompMainCode(); 
    37  
    38 // --------------- [END] page components 
     16$oTemplate = BxDolTemplate::getInstance(); 
     17$oTemplate->setPageNameIndex (BX_PAGE_DEFAULT); 
     18$oTemplate->setPageHeader (_t("_ADVICE_H")); 
     19$oTemplate->setPageContent ('page_main_code', PageCompMainCode()); 
    3920 
    4021PageCode(); 
    41  
    42 // --------------- page components functions 
    43  
    4422 
    4523/** 
    4624 * page code function 
    4725 */ 
    48 function PageCompMainCode() 
    49 { 
    50     $sRet = '<div class="dbContent">' . str_replace( '<site_url>', $GLOBALS['site']['url'], _t( "_ADVICE" )) . '</div>'; 
    51     return DesignBoxContent( _t( "_ADVICE_H1" ), $sRet, $GLOBALS['oTemplConfig'] -> PageCompThird_db_num); 
     26function PageCompMainCode() { 
     27    $sRet = str_replace('<site_url>', BX_DOL_URL_ROOT, _t("_ADVICE")); 
     28    return DesignBoxContent(_t( "_ADVICE_H1" ), $sRet, BX_DB_PADDING_DEF); 
    5229} 
    5330 
    54 ?> 
    55  
Note: See TracChangeset for help on using the changeset viewer.