exit; } else { throw new Exception('No surveys found'); } } $did = get_device_id(); $device_type = get_device_type($did); $langCode = isset($_SESSION['wrapper']['language']) ? $_SESSION['wrapper']['language'] : 'en'; $config = get_config($device_type, $sid, $langCode); //Load page generator $page = new SC_Page_Generator($sid, FOLDER_SURVEYS); ?> <!DOCTYPE HTML> <html> <head> <title>Survey preview</title> <meta charset="utf-8"> <meta name="robots" content="noindex, nofollow, noarchive, nosnippet" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> </head> <body> <?php $page->display_survey_html(!$config['settings']); ?> </body> </html>