buyattachment.php 934 B

123456789101112131415161718192021222324252627282930313233343536373839
  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: buyattachment.php 34314 2014-02-20 01:04:24Z nemohou $
  7. */
  8. if(!defined('IN_MOBILE_API')) {
  9. exit('Access Denied');
  10. }
  11. $_GET['mod'] = 'misc';
  12. $_GET['action'] = 'attachpay';
  13. include_once 'forum.php';
  14. class mobile_api {
  15. function common() {
  16. }
  17. function output() {
  18. global $_G;
  19. $variable = array(
  20. 'filename' => $GLOBALS['attach']['filename'],
  21. 'description' => $GLOBALS['attach']['description'],
  22. 'authorid' => $GLOBALS['attach']['uid'],
  23. 'author' => $GLOBALS['attach']['author'],
  24. 'price' => $GLOBALS['attach']['price'],
  25. 'balance' => $GLOBALS['balance'],
  26. 'credit' => mobile_core::getvalues($_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]], array('title', 'unit')),
  27. );
  28. mobile_core::result(mobile_core::variable($variable));
  29. }
  30. }
  31. ?>