Example #1
0
function minifyScript($str)
{
    if (Config::useDynamicMinify() == false) {
        return $str;
    }
    return \JShrink\Minifier::minify($str);
}
Example #2
0
if (!isset($_SESSION[SURVEY_EXECUTION_MODE])) {
    $_SESSION[SURVEY_EXECUTION_MODE] = SURVEY_EXECUTION_MODE_NORMAL;
    // by default normal mode
}
// set timezone
date_default_timezone_set(Config::timezone());
$logActions = new LogActions();
/* global variables */
$suid = getSurvey();
$survey = new Survey($suid);
/* set the template for the questions display */
require 'displayquestionsms.php';
require 'displayquestiontest.php';
require 'displayquestionnurse.php';
/* js shrinker */
if (Config::useDynamicMinify()) {
    require 'jshrink/minifier.php';
}
$mode = null;
// wait with calling this until later!
$modechange = null;
$version = null;
// wait with calling this until later!
$language = null;
// wait with calling this until later!
$languagechange = null;
$template = null;
// wait with calling this until later!
$templatechange = null;
$currentseid = null;
$currentmainseid = null;