|
Revision 7336, 2.4 kB
(checked in by sas, 2 months ago)
|
--
|
| Line | |
|---|
| 1 |
<? |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
require_once( 'inc/header.inc.php' ); |
|---|
| 22 |
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' ); |
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 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 |
|
|---|
| 35 |
|
|---|
| 36 |
$_ni = $_page['name_index']; |
|---|
| 37 |
$_page_cont[$_ni]['page_main_code'] = PageCompMainCode(); |
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 |
PageCode(); |
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 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 |
|
|---|