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; else if($quiz['premium_properties']['is_premium'] == 1 && ACTIVATE_PREMIUM == 1) { $user_credits = $user_app->GetUserCredits($__QUIZ_USER_DATA['user_id']); if($user_credits == 0) $__DISPLAY_POST = 0; header("X-Frame-Options: ALLOW-FROM http://" . $quiz['premium_properties']['domain'] . "/", false); } } } 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 ?> ' : '' ?>