Ejemplo n.º 1
0
         }
         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') {
     require_once MODULE_DIR . "poffuser.inc";
     $POFF_user = new POFF_user();
     $status = $POFF_user->action_listener($_POST['action']);
     $engSmarty->assign("screenings", $POFF_user->getScreenings());
     $engSmarty->assign("myscreenings_status", $status);
 } elseif ($recNode->parameters == 'firstpage' && empty($_GET['search'])) {
     $arrNews = getItemByFolderParameter($arrTree, 'news')->arrNode;
     $countedNews = array();
     for ($i = 0; $i < 2; $i++) {