| 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 | require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' ); |
|---|
| 24 | |
|---|
| 25 | $iId = (int)$_COOKIE['memberID']; |
|---|
| 26 | $sPassword = getPassword($iId); |
|---|
| 27 | $bEnableRay = (getParam( 'enable_ray' ) == 'on'); |
|---|
| 28 | $check_res = checkAction( $iId, ACTION_ID_USE_RAY_PRESENCE ); |
|---|
| 29 | if($bEnableRay && $check_res[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED) |
|---|
| 30 | echo getApplicationContent("presence", "user", array('id' => $iId, 'password' => $sPassword), false); |
|---|
| 31 | else |
|---|
| 32 | { |
|---|
| 33 | ?> |
|---|
| 34 | <center> |
|---|
| 35 | <table width=100% height=100% cellpadding=0 cellspacing=0> |
|---|
| 36 | <td align=center valign=center> |
|---|
| 37 | <table width="90%" height="70" cellpadding="5" cellspacing="1" class="table"> |
|---|
| 38 | <tr> |
|---|
| 39 | <td class="panel" width="100%" align="center" valign="middle"> |
|---|
| 40 | <div align="center" class="small"><?= $check_res[CHECK_ACTION_MESSAGE]; ?></div> |
|---|
| 41 | </td> |
|---|
| 42 | </tr> |
|---|
| 43 | </table> |
|---|
| 44 | </td> |
|---|
| 45 | </table> |
|---|
| 46 | </center> |
|---|
| 47 | <? |
|---|
| 48 | } |
|---|
| 49 | ?> |
|---|