BoonEx Home Trac
 
 

root/trunk/board.php

Revision 7336, 2.4 kB (checked in by sas, 2 months ago)

--

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
21 require_once( 'inc/header.inc.php' );
22 require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
23
24 // --------------- page variables and login
25
26 $_page['name_index']    = 57;
27 $_page['css_name']        = 'ray_chat.css';
28
29 $_page['header'] = _t( "_Boards" );
30 $_page['header_text'] = _t( "_Boards" );
31
32 $logged['member'] = member_auth( 0 );
33
34 // --------------- page components
35
36 $_ni = $_page['name_index'];
37 $_page_cont[$_ni]['page_main_code'] = PageCompMainCode();
38
39 // --------------- [END] page components
40
41 PageCode();
42
43 // --------------- page components functions
44
45 /**
46  * page code function
47  */
48 function PageCompMainCode() {
49     
50     global $oTemplConfig;
51     global $logged;
52
53     $iId = (int)$_COOKIE['memberID'];
54     if ($iId > 0) {
55         $sPassword = getPassword($iId);
56         $bEnableRay = (getParam( 'enable_ray' ) == 'on');
57         $check_res = checkAction( $iId, ACTION_ID_USE_RAY_CHAT );
58
59         if($bEnableRay && $check_res[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED) {
60             $ret .=
61                 '<div class="mainWindow">' .
62                     getApplicationContent('board', 'user', array('id' => $iId, 'password' => $sPassword), true) .
63                 '</div>';
64         } else {
65             $ret .= MsgBox($check_res[CHECK_ACTION_MESSAGE]);
66         }
67         return DesignBoxContent( _t('_RAY_CHAT'), $ret, $oTemplConfig -> PageCompThird_db_num );
68     } else {
69         return DesignBoxContent(_t('_LOGIN_ERROR') , MsgBox(_t('_Please login before using Ray chat')), 1 );
70     }
71 }
72 ?>
73
Note: See TracBrowser for help on using the browser.