mobilesign.php 797 B

123456789101112131415161718192021222324252627282930313233343536
  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$
  7. */
  8. if (!defined('IN_MOBILE_API')) {
  9. exit('Access Denied');
  10. }
  11. include_once 'misc.php';
  12. class mobile_api {
  13. function common() {
  14. global $_G;
  15. if(submitcheck('hash', true) && $_G['uid']){
  16. $r = updatecreditbyaction('mobilesign', $_G['uid']);
  17. if($r['updatecredit']) {
  18. $_G['messageparam'][0] = 'mobilesign_success';
  19. } else {
  20. $_G['messageparam'][0] = 'mobilesign_failed';
  21. }
  22. } else {
  23. $_G['messageparam'][0] = 'mobilesign_formhash_failed';
  24. }
  25. mobile_core::result(mobile_core::variable(array()));
  26. }
  27. function output() {
  28. }
  29. }
  30. ?>