stat.php 594 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /*
  3. * View statistic data
  4. *
  5. * design by : XUCHANG ZHANG
  6. *
  7. * */
  8. require_once ( ONU_ROOT . 'application/lib/data/CacheMg.class.php');
  9. class ONUService{
  10. public function getUidIpPrmoteCnt(){
  11. $uid = $_REQUEST['uid'];
  12. $ip = $_REQUEST['ip'];
  13. $cnt = CacheMg::getUidIpPrmoteCnt($uid, $ip);
  14. echo BaseAction::getResponse(0, $cnt);
  15. }
  16. public function setUidIpPrmoteCnt(){
  17. $uid = $_REQUEST['uid'];
  18. $ip = $_REQUEST['ip'];
  19. CacheMg::setUidIpPrmoteCnt_Plus($uid,$ip,1);
  20. echo BaseAction::getResponse(0, "+1 for key $uid-$ip");
  21. }
  22. }