Beispiel #1
0
 switch ($_REQUEST['t']) {
     case 'Movies':
         $getnewestmovies = $releases->getNewestMovies();
         $page->smarty->assign('newest', $getnewestmovies);
         $user = $page->users->getById($page->users->currentUserId());
         $page->smarty->assign('cpapi', $user['cp_api']);
         $page->smarty->assign('cpurl', $user['cp_url']);
         $page->smarty->assign('goto', 'movies');
         break;
     case 'Console':
         $getnewestconsole = $releases->getNewestConsole();
         $page->smarty->assign('newest', $getnewestconsole);
         $page->smarty->assign('goto', 'console');
         break;
     case 'XXX':
         $getnewestxxx = $releases->getNewestXXX();
         $page->smarty->assign('newest', $getnewestxxx);
         $page->smarty->assign('goto', 'xxx');
         break;
     case 'PC':
         $getnewestgame = $releases->getNewestGames();
         $page->smarty->assign('newest', $getnewestgame);
         $page->smarty->assign('goto', 'games');
         break;
     case 'Audio':
         $getnewestmp3 = $releases->getnewestMP3s();
         $page->smarty->assign('newest', $getnewestmp3);
         $page->smarty->assign('goto', 'music');
         break;
     case 'Books':
         $getnewestbooks = $releases->getNewestBooks();