Ejemplo n.º 1
0
 function sendUserInfo($cloud_information)
 {
     if (!CLOUDWIND_SECURITY_SERVICE::isArray($cloud_information) || SCR == 'yi') {
         return false;
     }
     list($operate, $leaveTime, $tid, $fid) = $cloud_information ? $cloud_information : array('', '');
     if (!in_array($operate, array('index', 'read', 'thread')) || $operate == SCR) {
         return false;
     }
     $user = CloudWind::getOnlineUserInfo();
     $viewTime = CloudWind_getConfig('g_timestamp') - $leaveTime ? CloudWind_getConfig('g_timestamp') - $leaveTime : '';
     CloudWind::yunUserDefend('view' . $operate, $user['uid'], $user['username'], $leaveTime, $viewTime, 101, '', '', '', array('uniqueid' => $tid . '-' . $fid));
     return true;
 }