| 123456789101112131415161718192021222324252627282930 | 
							- <?php
 
- /*
 
-  * View statistic data
 
-  * 
 
-  * design by : XUCHANG ZHANG
 
-  * 
 
-  * */
 
- require_once ( ONU_ROOT . 'application/lib/data/CacheMg.class.php');
 
- class ONUService{
 
- 	public function getUidIpPrmoteCnt(){
 
- 		
 
- 		$uid = $_REQUEST['uid'];
 
- 		$ip  = $_REQUEST['ip'];
 
- 		
 
- 		$cnt = CacheMg::getUidIpPrmoteCnt($uid, $ip);
 
- 		
 
- 		echo BaseAction::getResponse(0, $cnt);
 
- 	}
 
- 	
 
- 	public function setUidIpPrmoteCnt(){
 
- 	
 
- 		$uid = $_REQUEST['uid'];
 
- 		$ip  = $_REQUEST['ip'];
 
- 		
 
- 		CacheMg::setUidIpPrmoteCnt_Plus($uid,$ip,1);
 
- 		echo BaseAction::getResponse(0, "+1 for key $uid-$ip");
 
- 	}
 
- }
 
 
  |