Changeset 15201 for trunk/advice.php
- Timestamp:
- 06/06/11 02:27:38 (12 months ago)
- File:
-
- 1 edited
-
trunk/advice.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/advice.php
r11226 r15201 1 1 <?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 */ 19 7 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' ); 8 require_once('./inc/header.inc.php'); 9 require_once(BX_DIRECTORY_PATH_INC . "languages.inc.php"); 10 require_once(BX_DIRECTORY_PATH_INC . "params.inc.php"); 11 require_once(BX_DIRECTORY_PATH_INC . "design.inc.php"); 23 12 24 // --------------- page variables and login 13 bx_import('BxTemplMenu'); 14 BxTemplMenu::getInstance()->setCurrentMenu ('bx_sys_sub_advice'); // TODO: change database accordingly 25 15 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()); 39 20 40 21 PageCode(); 41 42 // --------------- page components functions43 44 22 45 23 /** 46 24 * page code function 47 25 */ 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); 26 function PageCompMainCode() { 27 $sRet = str_replace('<site_url>', BX_DOL_URL_ROOT, _t("_ADVICE")); 28 return DesignBoxContent(_t( "_ADVICE_H1" ), $sRet, BX_DB_PADDING_DEF); 52 29 } 53 30 54 ?>55
Note: See TracChangeset
for help on using the changeset viewer.