//============================================================================================ require '../includes/php/bootstrap.php'; $SESSION = new \Zend_Session_Namespace('survey', true); if (\Ventus\Utilities\I18n\Translate::isAllowedLanguage($SESSION->corr_lang)) { $l10n->setLanguage($SESSION->corr_lang); \Locale::setDefault($SESSION->corr_lang); } //============================================================================================ // Model and Header and L10N Includes, Authentication //============================================================================================ $model = new Questionnaire($dbo); require FS_INCLUDES . '/l10n/header-external.php'; //============================================================================================ // Load the content //============================================================================================ if (!isset($_GET['user']) || !$model->checkUserExists($_GET['user'])) { $l10n->addResource(__DIR__ . '/l10n/error.json'); require_once FS_PHP . '/header-external.php'; require_once 'views/error.php'; require_once FS_PHP . '/footer-external.php'; } else { $user = $_GET['user']; $student = $model->fetchStudentByHashCode($user); $session = \Ventus\Utilities\Functions::fetchSemester($student['0']['survey_sent_on']); if ($model->checkSessionExpire($student['0']['survey_sent_on'])) { if ($model->checkOtherSurvey($_GET['user'])) { $newQues = $model->fetchOtherSurvey($_GET['user']); } $l10n->addResource(__DIR__ . '/l10n/questionnaire_expire.json'); $l10n->localizeArray($session, 'transcription_session'); $l10n->localizeArray($student[0], 'transcription_service');