$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')); } }
} if ($_POST["btnsub"]) { $actnam = $_POST['txtsrch']; $actnam = str_replace(" ", "+", $actnam); $actorbi = "1"; if ($selsearch != "2") { $tableactors = listActors($actnam); } else { $tablemovies = mb_listMovies($actnam); $actorbi = "2"; } } else { if ($_GET['id']) { $actorid = base64_decode($_GET['id']); if ($actorid . length > 0) { $tablemovies = listMovies(); $actorbi = "2"; //header('location:index.php'); } } else { if ($_GET['mid']) { $movieid = base64_decode($_GET['mid']); if ($movieid . length > 0) { $tablemovied = detailMovie(); $actorbi = "3"; //die(print_r($tablemovied)); //header('location:index.php'); } } } }