GetPostFull($post_id, $__LANGUAGE_CODE_CURRENT); if($quiz == -1) { $__DISPLAY_POST = -1; } else { $__QUIZ_PROPERTIES = $quiz['quiz_properties']; $__QUIZ_DATA = $quiz['quiz_data']; $__QUIZ_USER_DATA = $quiz['quiz_user_properties']; $__POST_URL = $quiz['post_url']; $__POST_URL_FB = $quiz['post_url_fb']; if($quiz['is_hidden'] == 1) { $__DISPLAY_POST = 0; if(isset($_SESSION['user'])) { if($_SESSION['user']['user_id'] == $quiz['quiz_user_properties']['user_id']) $__DISPLAY_POST = 1; } } else if($quiz['premium_properties']['is_premium'] == 1 && ACTIVATE_PREMIUM == 1) { if(!isset($_SESSION['user']) || $_SESSION['user']['user_id'] != $quiz['quiz_user_properties']['user_id']) $__DISPLAY_POST = 0; } $__SIMILAR_QUIZES = $__ADMIN_APP->GetSimilarPostsByTag($post_id, $quiz['quiz_properties']['tags'], $__LANGUAGE_CODE_CURRENT); } } catch(Exception $e) { if($e->getCode() == 2) echo (DEBUG_MODE == 0 ? $__LANGUAGE_STRINGS['general']['SERVER_FAILED'] : $e->getMessage()); else echo $__LANGUAGE_STRINGS['general'][$e->getMessage()]; exit(); } ?> <?= $__QUIZ_PROPERTIES['title'] . ' | ' . SITE_NAME ?> ' : '' ?> ' : '' ?>