mypm.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: mypm.php 35183 2015-01-14 07:46:53Z nemohou $
  7. */
  8. if(!defined('IN_MOBILE_API')) {
  9. exit('Access Denied');
  10. }
  11. $_GET['mod'] = 'space';
  12. $_GET['do'] = 'pm';
  13. include_once 'home.php';
  14. class mobile_api {
  15. function common() {
  16. }
  17. function output() {
  18. global $_G;
  19. foreach($GLOBALS['list'] as $_k => $_v) {
  20. if($_v['lastdateline']) {
  21. $GLOBALS['list'][$_k]['vdateline'] = dgmdate($_v['lastdateline'], 'u');
  22. } elseif($_v['dateline']) {
  23. $GLOBALS['list'][$_k]['vdateline'] = dgmdate($_v['dateline'], 'u');
  24. }
  25. }
  26. $variable = array(
  27. 'list' => mobile_core::getvalues($GLOBALS['list'], array('/^\d+$/'), array('plid', 'isnew', 'vdateline', 'subject', 'pmid', 'msgfromid', 'msgfrom', 'message', 'touid', 'tousername')),
  28. 'count' => $GLOBALS['count'],
  29. 'perpage' => $GLOBALS['perpage'],
  30. 'page' => intval($GLOBALS['page']),
  31. );
  32. if($_GET['subop']) {
  33. $variable = array_merge($variable, array('pmid' => $GLOBALS['pmid']));
  34. }
  35. mobile_core::result(mobile_core::variable($variable));
  36. }
  37. }
  38. ?>