$breadcrumbs->addElement($mv['name'], makeURL($mod, array('categoryid' => $categoryid, 'movieid' => $movieid))); $smarty->assign('movie', $mv); $smarty->assign('path', $template_dir . "/movie.tpl"); if ($login->currentUser() !== false) { $smarty->assign('loggedin', true); if (isset($_POST['add'])) { $comments->add($mod . '-movie', $login->currentUserID(), $_POST['comment'], $movieid); } } $smarty->assign('comments', $comments->get($mod . '-movie', $movieid)); } else { $notify->add($lang->get('media'), $lang->get('access_denied')); } $showcategories = false; } if ($showcategories == true) { $list = listCategories($categoryid); $smarty->assign('list', $list); $smarty->assign('hide_submedia', $config->get('media', 'hide-submedia')); $smarty->assign('downloads', listDownloads($categoryid)); $img = listPictures($categoryid); $smarty->assign('pictures', $img); $smarty->assign('movies', listMovies($categoryid)); @($category['folder'] = $category['uniqid']); $smarty->assign('category', $category); $smarty->assign('path', $template_dir . "/list.tpl"); } } else { $notify->add($lang->get('media'), $lang->get('access_denied')); } }
case "saveCategory": if ($mode == $LANG_DLM['save'] && SEC_checkToken()) { $display = $dlcat->saveCategory(); } if ($mode == $LANG_DLM['delete'] && SEC_checkToken()) { $display = $dlcat->deleteCategory($cid); } break; case "listCategories": $DLM_CSRF_TOKEN = SEC_createToken(); $display .= showMessage(); $display .= listCategories(); $display = DLM_createHTMLDocument($display, array('pagetitle' => $LANG_DLM['manager'])); break; case "move": DLM_moveCategory(); $DLM_CSRF_TOKEN = SEC_createToken(); $display .= showMessage(); $display .= listCategories(); $display = DLM_createHTMLDocument($display, array('pagetitle' => $LANG_DLM['manager'])); break; case "listDownloads": default: $DLM_CSRF_TOKEN = SEC_createToken(); $display .= DLM_updatePlugin(); $display .= showMessage(); $display .= listDownloads(); $display = DLM_createHTMLDocument($display, array('pagetitle' => $LANG_DLM['manager'])); break; } COM_output($display);