Example #1
0
             $stat['last'][] = $row;
         }
         $stat['export_url'] = 'ajax_request.php?mod=media&file=stat.export&month=' . $month . '&year=' . $year;
         $smarty->assign('dl_stat', $stat);
     }
     break;
 case 'top-downloads':
     $breadcrumbs->addElement($lang->get('top_downloads'), makeURL($mod, array('mode' => 'top-downloads')));
     $smarty->assign('path', $template_dir . "/top-downloads.tpl");
     $top = getTopDownloads();
     $smarty->assign('top', $top);
     break;
 case 'new-downloads':
     $breadcrumbs->addElement($lang->get('new_downloads'), makeURL($mod, array('mode' => 'new-downloads')));
     $smarty->assign('path', $template_dir . "/newest-downloads.tpl");
     $new = getNewestDownloads();
     $smarty->assign('new', $new);
     break;
 case 'removemovie':
     if ($isallowed && $mode == 'removemovie') {
         if (isset($_POST['yes'])) {
             removeMovie($movieid);
         } else {
             $mv = getMovie($movieid);
             $breadcrumbs->addElement($mv['name'], makeURL($mod, array('categoryid' => $categoryid, 'movieid' => $movieid)));
             $breadcrumbs->addElement($lang->get('removemovie'), makeURL($mod, array('categoryid' => $categoryid, 'movieid' => $movieid, 'mode' => 'removemovie')));
             $smarty->assign('path', $template_dir . "/removemovie.tpl");
             $smarty->assign('movie', $mv);
             $smarty->assign('url_no', makeURL($mod, array('categoryid' => $categoryid, 'movieid' => $movieid)));
             break;
         }
Example #2
0
<?php

$lang->addModSpecificLocalization('media');
global $current_language;
require_once 'mod/default/media/media.function.php';
$list = getNewestDownloads();
$smarty->assign('media_box_entries', $list);
$visible = true;
$tpl_file = $template_dir . "/default.tpl";