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 |
|
---|
21 | if(isLogged()) {
|
---|
22 | $iLoggedId = (int)getLoggedId();
|
---|
23 | if(file_exists(BX_DIRECTORY_PATH_ROOT . 'user' . $iLoggedId . '.php') && is_file(BX_DIRECTORY_PATH_ROOT . 'user' . $iLoggedId . '.php'))
|
---|
24 | require_once( BX_DIRECTORY_PATH_CACHE . 'user' . $iLoggedId . '.php');
|
---|
25 | }
|
---|
26 |
|
---|
27 | $GLOBALS['BxDolTemplateJsOptions'] = array();
|
---|
28 | $GLOBALS['BxDolTemplateJsTranslations'] = array();
|
---|
29 | $GLOBALS['BxDolTemplateJsImages'] = array();
|
---|
30 |
|
---|
31 | //--- Initialize template's engine ---//
|
---|
32 | require_once(BX_DIRECTORY_PATH_INC . 'languages.inc.php');
|
---|
33 | require_once(BX_DIRECTORY_PATH_CLASSES . "BxDolTemplate.php");
|
---|
34 |
|
---|
35 | $oSysTemplate = new BxDolTemplate();
|
---|
36 | $oSysTemplate->init();
|
---|
37 | //--- Add default CSS ---//
|
---|
38 | $oSysTemplate->addCss(array(
|
---|
39 | 'common.css',
|
---|
40 | 'general.css',
|
---|
41 | 'anchor.css',
|
---|
42 | 'login_form.css',
|
---|
43 | 'top_menu.css',
|
---|
44 | 'BxCustomProfileMenu.css'
|
---|
45 | ));
|
---|
46 | //--- Add default JS ---//
|
---|
47 | $oSysTemplate->addJs(array(
|
---|
48 | 'jquery.js',
|
---|
49 | 'jquery.jfeed.js',
|
---|
50 | 'jquery.dimensions.js',
|
---|
51 | 'functions.js',
|
---|
52 | 'jquery.dolTopMenu.js',
|
---|
53 | 'jquery.dolRSSFeed.js',
|
---|
54 | 'jquery.float_info.js',
|
---|
55 | 'jquery.webForms.js',
|
---|
56 | 'jquery.dolPopup.js',
|
---|
57 | 'common_anim.js',
|
---|
58 | 'login.js',
|
---|
59 | 'ie7_flash_fix.js',
|
---|
60 | 'BxDolVoting.js',
|
---|
61 | ));
|
---|
62 | //--- Add default options in JS output ---//
|
---|
63 | $oSysTemplate->addJsOption(array(
|
---|
64 | 'sys_user_info_timeout'
|
---|
65 | ));
|
---|
66 | //--- Add default language keys in JS output ---//
|
---|
67 | $oSysTemplate->addJsTranslation(array(
|
---|
68 | '_Counter',
|
---|
69 | '_PROFILE_ERR'
|
---|
70 | ));
|
---|
71 | //--- Add default icons in JS output ---//
|
---|
72 | $oSysTemplate->addJsIcon(array(
|
---|
73 | 'clock' => 'clock.png',
|
---|
74 | 'wf_plus' => 'action_fave.png',
|
---|
75 | 'wf_minus' => 'action_block.png',
|
---|
76 | 'wf_other' => 'folder_add.png',
|
---|
77 | 'more' => 'more.png',
|
---|
78 | 'collapse_open' => 'toggle_down.png',
|
---|
79 | 'collapse_closed' => 'toggle_right.png'
|
---|
80 | ));
|
---|
81 | //--- Add default images in JS output ---//
|
---|
82 | $oSysTemplate->addJsImage(array(
|
---|
83 | 'loading' => 'loading.gif'
|
---|
84 | ));
|
---|
85 |
|
---|
86 | /**
|
---|
87 | * Backward compatibility.
|
---|
88 | * @deprecated
|
---|
89 | */
|
---|
90 | $tmpl = $oSysTemplate->getCode();
|
---|
91 |
|
---|
92 | require_once( BX_DIRECTORY_PATH_ROOT . "templates/tmpl_" . $tmpl . "/scripts/BxTemplConfig.php" );
|
---|
93 | $oTemplConfig = new BxTemplConfig($site);
|
---|
94 | //--- Initialize template's engine ---//
|
---|
95 |
|
---|
96 | if (defined('BX_PROFILER') && BX_PROFILER) require_once(BX_DIRECTORY_PATH_MODULES . 'boonex/profiler/classes/BxProfiler.php');
|
---|
97 |
|
---|
98 | ?>
|
---|