Haftanın Tahmincileri
Bu haftanın en yüksek puanlı ve en formda tahmincilerini gör.
/* ===== IDDACAFE v6.0.3 HAFTANIN TAHMİNCİLERİ ===== */ require_once __DIR__.'/inc/prediction-leaderboard.php'; require_once __DIR__.'/inc/sports-profile.php'; function esc($s){ return htmlspecialchars((string)$s,ENT_QUOTES,'UTF-8'); } $weeklyPath='/var/lib/iddacafe-predictions/weekly.json'; $weekly=is_file($weeklyPath)?json_decode((string)@file_get_contents($weeklyPath),true):[]; if(!is_array($weekly)) $weekly=[]; $rows=[]; if(isset($weekly['users']) && is_array($weekly['users'])) $rows=$weekly['users']; elseif(array_is_list($weekly)) $rows=$weekly; if(!$rows){ $lb=ic_prediction_leaderboard(); if(isset($lb['users']) && is_array($lb['users'])) $rows=$lb['users']; elseif(is_array($lb)) $rows=$lb; } usort($rows,function($a,$b){ $pa=(int)($a['weekly_points']??$a['points']??0); $pb=(int)($b['weekly_points']??$b['points']??0); if($pa!==$pb) return $pb<=>$pa; return (int)($b['weekly_correct']??$b['correct']??0) <=> (int)($a['weekly_correct']??$a['correct']??0); }); $rows=array_slice($rows,0,20); $totalUsers=count($rows); $totalWeeklyPoints=0; $totalWeeklyCorrect=0; foreach($rows as $r){ $totalWeeklyPoints+=(int)($r['weekly_points']??$r['points']??0); $totalWeeklyCorrect+=(int)($r['weekly_correct']??$r['correct']??0); } ?>
Bu haftanın en yüksek puanlı ve en formda tahmincilerini gör.