Example #1
0
 if (!in_array($_REQUEST['t'], $types)) {
     $_REQUEST['t'] = $types[0];
 }
 $page->smarty->assign('types', $types);
 $page->smarty->assign('type', $_REQUEST['t']);
 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();