Exemple #1
0
     if (Text::IsNull($_REQUEST['subcategory'])) {
         Page::GenerateErrorPage($Smarty, 404);
     } else {
         if (!Text::IsNull($_REQUEST['lastcategory']) && $_REQUEST['lastcategory'] == 'tooltip') {
             $Smarty->assign('Quest', Items::QuestInfo($_REQUEST['subcategory']));
             $Smarty->display('blocks/quest_tooltip');
         } else {
             header('Location: /');
         }
     }
     break;
 case 'guild':
     if (Text::IsNull($_REQUEST['subcategory'])) {
         Page::GenerateErrorPage($Smarty, 404);
     } else {
         if (Characters::CheckGuild($_REQUEST['subcategory'])) {
             if (!Text::IsNull($_REQUEST['lastcategory']) && $_REQUEST['lastcategory'] == 'tooltip') {
                 $Smarty->assign('Guild', Characters::GetGuildData($_REQUEST['subcategory']));
                 $Smarty->display('blocks/guild_tooltip');
             } else {
                 Manager::LoadExtension('Guild', $ClassConstructor);
                 if (Text::IsNull($_REQUEST['lastcategory'])) {
                     $GuildData = Guild::GetGuildData($_REQUEST['subcategory']);
                     if (!$GuildData) {
                         $Smarty->assign('Page', Page::Info('community', array('bodycss' => 'server-error', 'pagetitle' => '')));
                         $Smarty->display('pages/guild_notfound');
                     } else {
                         if (isset($_REQUEST['character'])) {
                             $Smarty->assign('returnto', $_REQUEST['character']);
                         } else {
                             $Smarty->assign('returnto', false);