moderator && !$user->premium && $player != $user->username) { redirect("/gold-uye-ol"); } */ switch($game) { case "Okey": $gameid = 1; $profileName = "OKEY"; $profileGame = "Okey"; $playerCount = 4; break; case "Tavla": $gameid = 2; $profileName = "TAVLA"; $profileGame = "Tavla"; $playerCount = 2; break; case "Batak": $gameid = 3; $profileName = "BATAK"; $profileGame = "Batak"; $playerCount = 4; break; case "Satranc": $gameid = 4; $profileName = "SATRANÇ"; $profileGame = "Satranc"; $playerCount = 2; break; case "King": $gameid = 5; $profileName = "KİNG"; $profileGame = "King"; $playerCount = 4; break; } $player = User::findByUsername($player); if(empty($player)) { send404(); } $profile = $player->getProfile($gameid); $matches = $player->getLastMatches($gameid); $photo = $player->getPhoto(); //$fmt = new NumberFormatter('tr_TR', NumberFormatter::DECIMAL); //$dfmt = new IntlDateFormatter('tr_TR', IntlDateFormatter::SHORT, IntlDateFormatter::NONE); // todo sayfa bilgisi databaseden çekilmeli include __DIR__ . "/../views/profile.phtml"; ?>