XOOPS API 2.5.11 Beta1
UI v0.5
Réalisé par monxoops.fr
|
Espaces de nommage | |
pm | |
Variables | |
if(!is_object($GLOBALS['xoopsUser'])) | $valid_op_requests = array('out', 'save', 'in') |
$_REQUEST ['op'] = !empty($_REQUEST['op']) && in_array($_REQUEST['op'], $valid_op_requests) ? $_REQUEST['op'] : 'in' | |
$msg_id = empty($_REQUEST['msg_id']) ? 0 : (int)$_REQUEST['msg_id'] | |
$pm_handler = xoops_getModuleHandler('message') | |
$pm = null | |
if($msg_id > 0) if(is_object($pm) &&($pm->getVar('from_userid') !=$GLOBALS['xoopsUser']->getVar('uid')) &&($pm->getVar('to_userid') !=$GLOBALS['xoopsUser']->getVar('uid'))) if(is_object($pm) &&!empty($_POST['action'])) | $start = !empty($_GET['start']) ? (int)$_GET['start'] : 0 |
$total_messages = !empty($_GET['total_messages']) ? (int)$_GET['total_messages'] : 0 | |
$GLOBALS ['xoopsOption']['template_main'] = 'pm_readpmsg.tpl' | |
if (!is_object( $pm)) | |
$pmform = new XoopsForm('', 'pmform', 'readpmsg.php', 'post', true) | |
$_REQUEST[ 'op'] = !empty($_REQUEST['op']) && in_array($_REQUEST['op'], $valid_op_requests) ? $_REQUEST['op'] : 'in' |
$GLOBALS[ 'xoopsOption'][ 'template_main'] = 'pm_readpmsg.tpl' |
$msg_id = empty($_REQUEST['msg_id']) ? 0 : (int)$_REQUEST['msg_id'] |
$pm = null |
$pm_handler = xoops_getModuleHandler('message') |
$pmform = new XoopsForm('', 'pmform', 'readpmsg.php', 'post', true) |
if ( $msg_id > 0) if (is_object( $pm) &&( $pm->getVar( 'from_userid') !=$GLOBALS[ 'xoopsUser']->getVar( 'uid')) &&( $pm->getVar( 'to_userid') !=$GLOBALS[ 'xoopsUser']->getVar( 'uid'))) if (is_object( $pm) &&!empty( $_POST[ 'action'])) $start = !empty($_GET['start']) ? (int)$_GET['start'] : 0 |
$total_messages = !empty($_GET['total_messages']) ? (int)$_GET['total_messages'] : 0 |
if (!is_object( $GLOBALS[ 'xoopsUser'])) $valid_op_requests = array('out', 'save', 'in') |
if(!is_object($pm)) |