Ejemplo n.º 1
0
         case 'tooltip':
             $Smarty->assign('Specializations', Characters::GetSpecByTalents($CharacterData['guid']));
             $Smarty->display('blocks/character_tooltip');
             break;
         case 'simple':
             $RedirectTo = str_replace('/simple', '', str_replace('//', '/', $_SERVER['REQUEST_URI'] . '/advanced'));
             header('Location: ' . $RedirectTo);
             break;
         case 'pvp':
             $Smarty->assign('ArenaRating', Characters::GetPVPRaiting($CharacterData['guid']));
             $Smarty->assign('Page', Page::Info('community', array('bodycss' => 'character-pvp', 'pagetitle' => 'PvP - ' . $Smarty->GetConfigVars('Menu_Community') . ' - ')));
             $Smarty->display('pages/character_pvp');
             break;
         case 'advanced':
             $Smarty->translate('Raids');
             $Raids = array('Classic' => Raids::GetRaids($CharacterData['guid'], 0, false), 'TBC' => Raids::GetRaids($CharacterData['guid'], 1, false), 'WotLK' => Raids::GetRaids($CharacterData['guid'], 2, true));
             $Professions = Characters::GetCharacterProfessions($CharacterData['guid']);
             $Smarty->assign('PageType', $_REQUEST['lastcategory']);
             $Smarty->assign('Specializations', Characters::GetSpecByTalents($CharacterData['guid']));
             $Smarty->assign('Inventory', Characters::GetGearForCharacter($CharacterData['guid']));
             $Smarty->assign('Glyphs', Characters::GetCharacterGlyphs($CharacterData['guid']));
             $Smarty->assign('ArenaRating', Characters::GetPVPRaiting($CharacterData['guid']));
             $Smarty->assign('Professions', $Professions);
             $Smarty->assign('Raids', $Raids);
             $Smarty->assign('Page', Page::Info('community', array('bodycss' => 'profile_page', 'pagetitle' => $_REQUEST['subcategory'] . ' - ')));
             $Smarty->display('pages/character_main_page_advanced');
             break;
     }
 } else {
     $RedirectTo = str_replace('//', '/', $_SERVER['REQUEST_URI'] . '/advanced');
     header('Location: ' . $RedirectTo);