|
if(!is_object($GLOBALS['xoopsUser'])) | $xoopsConfig ['module_cache'] = 0 |
|
| $GLOBALS ['xoopsOption']['template_main'] = 'pm_viewpmsg.tpl' |
|
| $valid_op_requests = array('out', 'save', 'in') |
|
| $op = Request::getWord('op', 'in', 'request') |
|
if(!in_array($op, $valid_op_requests)) | $start = Request::getInt('start', 0) |
|
| $pm_handler = xoops_getModuleHandler('message') |
|
if(isset($_POST['delete_messages']) &&(isset($_POST['msg_id'])||isset($_POST['msg_ids']))) if(isset( $_POST[ 'move_messages']) &&isset( $_POST[ 'msg_id'])) if(isset($_REQUEST['empty_messages'])) if( $op==='out') elseif($op==='save') | else |
|
| $total_messages = $pm_handler->getCount($criteria) |
|
| $pm_arr = $pm_handler->getAll($criteria, null, false, false) |
|
| if (count( $pm_arr) > 0) |
|
| $send_button = new XoopsFormButton('', 'send', _PM_SEND) |
|
| $delete_button = new XoopsFormButton('', 'delete_messages', _PM_DELETE, 'submit') |
|
| $move_button = new XoopsFormButton('', 'move_messages', ($op === 'save') ? _PM_UNSAVE : _PM_TOSAVE, 'submit') |
|
| $empty_button = new XoopsFormButton('', 'empty_messages', _PM_EMPTY, 'submit') |
|
| $pmform = new XoopsForm('', 'pmform', 'viewpmsg.php', 'post', true) |
|