API - XOOPS 2.5.11 Beta 2
By monxoops.fr
readpmsg.php File Reference

Namespaces

namespace  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)
 

Variable Documentation

◆ $_REQUEST

$_REQUEST[ 'op'] = !empty($_REQUEST['op']) && in_array($_REQUEST['op'], $valid_op_requests) ? $_REQUEST['op'] : 'in'

◆ $GLOBALS

$GLOBALS[ 'xoopsOption'][ 'template_main'] = 'pm_readpmsg.tpl'

◆ $msg_id

$msg_id = empty($_REQUEST['msg_id']) ? 0 : (int)$_REQUEST['msg_id']

◆ $pm

$pm = null

◆ $pm_handler

$pm_handler = xoops_getModuleHandler('message')

◆ $pmform

$pmform = new XoopsForm('', 'pmform', 'readpmsg.php', 'post', true)

◆ $start

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

$total_messages = !empty($_GET['total_messages']) ? (int)$_GET['total_messages'] : 0

◆ $valid_op_requests

if (!is_object( $GLOBALS[ 'xoopsUser'])) $valid_op_requests = array('out', 'save', 'in')

◆ if

if(!is_object($pm)) ( is_object $pm)