function_stat.php 500 B

123456789101112131415161718192021
  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: function_stat.php 23484 2011-07-19 10:12:36Z zhangguosheng $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. function updatestat($type, $primary=0, $num=1) {
  12. $uid = getglobal('uid');
  13. $updatestat = getglobal('setting/updatestat');
  14. if(empty($uid) || empty($updatestat)) return false;
  15. C::t('common_stat')->updatestat($uid, $type, $primary, $num);
  16. }
  17. ?>