=0 && $cookie['dado']<=10000 ) { $dado= $cookie['dado']; $country= $cookie['country']; $client_type=$cookie['device']; $cookie_correcta=true; } } } if (!$cookie_correcta) { $detect= new Mobile_Detect(); if ($detect->isMobile() ) { if ($detect->isTablet() ) $client_type='TABLET'; else $client_type='MOBILE'; } else $client_type='DESKTOP'; $dado= rand(0,10000); $country= isset( $_SERVER['GEOIP_COUNTRY_CODE']) ? $_SERVER['GEOIP_COUNTRY_CODE'] : 'UNKNOWN' ; setcookie('t', json_encode(array("device"=>$client_type, "country"=>$country,"dado"=>$dado)),time()+86400,"/","viciole.xxx"); } $this->vars['dado']= $dado; $this->vars['client_type']=$client_type; $this->vars['country']=$country; /* ----- Tracking de videos similares ---- */ $cookie_correcta=false; if (isset($_COOKIE['s'])) { $cookie= json_decode( $_COOKIE['s'], true); if ($cookie!=NULL && isset($cookie['uid']) && isset($cookie['id']) && isset($cookie['nonce']) && isset($cookie['time'])) { $uid= $cookie['uid']; $cookie_correcta=true; } } if (!$cookie_correcta) { $uid= base_convert(md5(rand() . time()),16,28); } $current = time(); $videoId = isset($this->vars['g_video_id'])? $this->vars['g_video_id'] : ''; setcookie('s', json_encode(array('uid'=>$uid, 'id'=>$videoId, 'time'=>$current, 'nonce'=>md5('ELPERRODESANROQUENOTIENERABO' . $current . $videoId))), NULL, '/', 'viciole.xxx'); ?> Popular Vídeos - Esta semana - Vicio Olé .XXX vars['client_type']=='DESKTOP' ): ?> vars['video_watch'] ): ?>
An error occurred while processing this page. Please check the software error log for details