} $var->value->strValue = implode(', ', $cs); } elseif ($key == 'keywords') { $ks = @explode(',', $var->value->strValue); foreach ($ks as &$c) { $c = trim($c); } $var->value->strValue = $ks; } } if (isset($directors_list) && count($directors_list) > 0) { $engSmarty->assign('directors_data', getDirectorsData($directors_list)); } // COMMENTS require_once MODULE_DIR . "poffcomments.inc"; $POFF_comments = new POFF_comments(); $action_listener = $POFF_comments->action_listener(); $_SESSION['comment'] = array('time' => time(), 'name' => 'time'); if ($action_listener === true) { header('Location: ' . $SYSTEM_PATH . '/' . $recNode->path . '/?productID=' . $_GET['productID'] . '&comments=show&lang=' . $_SESSION['comment_lang'] . '#comments'); } $engSmarty->assign('comments_status', $action_listener); $engSmarty->assign('comments_total', $POFF_comments->comments_total($_GET['productID'])); if (@$_GET['comments'] == 'show') { $engSmarty->assign('comments', $POFF_comments->get_comments($_GET['productID'], $_GET['lang'])); } } } elseif ($recNode->parameters == 'products-times') { $engSmarty->assign("filmsAZ_dropmenus", receiveFilmsAZ_dropmenus()); $engSmarty->assign("screenings", findScreenings()); } elseif ($recNode->parameters == 'products-selftimes') {
} $recNode = $objStructure->fnGetDataRecord("ID='" . $_GET["ID"] . "'"); if (is_object($recNode)) { $engSmarty->assign("recNode", $recNode); switch ($recNode->type) { case "xmlimport": $recData = array('url' => $_SERVER['SERVER_NAME']); break; case "directors": require_once MODULE_DIR . 'directors.inc'; $directors = new DirectorsManager(); $recData = $directors->Handler(); break; case "comments": require_once MODULE_DIR . 'poffcomments.inc'; $comments = new POFF_comments(); $recData = $comments->handler(); break; case "bannercategory": if ($_POST["search"]) { foreach ($_POST as $key => $item) { if (substr($key, 0, strlen("formSearch")) == "formSearch") { $arrLink[] = substr($key, strlen("formSearch") + 1) . "=" . $item; } } header("Location: frame.content.php?ID=" . $_GET["ID"] . "&action=search&sortColumn=position&sortOrder=asc&" . @implode("&", $arrLink)); } elseif (!$_GET["sortColumn"] or $_GET["action"] != "search") { if (is_array($objStructure->arrNodeType["element"])) { foreach ($objStructure->arrNodeType["element"] as $item) { $_GET["search" . $item] = true; }