break; case 'user': $seo_title = 'Perfil'; $seo_description = 'Perfil do invocador'; break; case 'list-summoners': $seo_title = 'Lista de Invocadores'; $seo_description = 'Lista de Invocadores'; break; case 'login-failed': $seo_title = 'Falha no Login'; $seo_description = 'Falha ao logar no site'; break; default: $seo_title = 'Página não encontrada'; $seo_description = $seo_title; break; } if (rewrite(2) == 'signup') { $seo_title = 'Registrar-se'; } if (rewrite(1) == 'user' && rewrite(2) !== '' && rewrite(2) !== 'signup') { $title_user_id = $user->getIdByUsername(rewrite(2)); $title_user_champions = count(User::getChampions($title_user_id)); $title_user_skins = count(User::getChampionsSkins($title_user_id)); $seo_title = strtoupper(rewrite(2)) . ' - C: ' . $title_user_champions . ' - S: ' . $title_user_skins; $seo_description = $seo_title; } $_SESSION['seo']['title'] = $seo_title . __TITLE_SEP__ . $_SESSION['seo']['title']; $_SESSION['seo']['page'] = $seo_title; isset($seo_description) ? $_SESSION['seo']['description'] = $seo_description : null;
<?php $portraitUrl = 'http://ddragon.leagueoflegends.com/cdn/6.12.1/img/champion/championKey.png'; $skinloadingUrl = 'http://ddragon.leagueoflegends.com/cdn/img/champion/loading/championKey_0.jpg'; foreach ($db->users as $profileId => $profileUser) { if ($profileUser->username === rewrite(2)) { $profile = $db->users[$profileId]; } } $profileColor = $profile->sex === 1 ? 'primary' : 'info'; $profileTextGender = $profile->sex === 1 ? 'do Invocador' : 'da Invocadora'; $collectionChampions = count(User::getChampions($profile->id)); $collectionChampionsSkins = count(User::getChampionsSkins($profile->id)); if (rewrite(3) == '') { echo '<META http-equiv="refresh" content="0;URL=' . location('user/' . $profile->username . '/champions/', true) . '"/>'; } ?> <div class="panel panel-<?php echo $profileColor; ?> "> <div class="panel-heading"> <div class="col-lg-2"> <img class="img-thumbnail" src="http://avatar.leagueoflegends.com/br/<?php echo rewrite(2); ?> .png"/> </div> <div class="col-lg-10"> <br clear="all"/> <h3 class="panel-title">