recommend.php 877 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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: recommend.php 34398 2014-04-14 07:11:22Z nemohou $
  7. */
  8. if (!defined('IN_MOBILE_API')) {
  9. exit('Access Denied');
  10. }
  11. $_GET['mod'] = 'misc';
  12. $_GET['action'] = 'recommend';
  13. $_GET['do'] = 'add';
  14. include_once 'forum.php';
  15. class mobile_api {
  16. function common() {
  17. }
  18. function output() {
  19. mobile_core::result(mobile_core::variable(array()));
  20. }
  21. function misc_mobile_message($message) {
  22. global $_G, $thread;
  23. if (!in_array($message, array('recommend_succed', 'recommend_daycount_succed'))) {
  24. return;
  25. }
  26. $thaquote = C::t('forum_post')->fetch_threadpost_by_tid_invisible($thread['tid']);
  27. $quote = $thaquote['message'];
  28. $quote = messagecutstr($quote, 100);
  29. $quote = implode("\n", array_slice(explode("\n", $quote), 0, 3));
  30. }
  31. }
  32. ?>