} } if (!isset($Action)) { $Action = 'calculate'; } $SLangs = SelectedLangs($Langs, $Action, $HTTP_GET_VARS); if (isset($HTTP_GET_VARS['d']) && strlen($HTTP_GET_VARS['d']) && strlen($HTTP_GET_VARS['d']) <= 5) { $X = $HTTP_GET_VARS['d']; if (ereg("^[a-z]+\$", $X) && $X == 'ndata') { $DataSet = $X; } } if (!isset($DataSet) || isset($Action) && $Action == 'reset') { $DataSet = 'data'; } $W = Weights($Tests, $Action, $HTTP_GET_VARS); // HEADER //////////////////////////////////////////////// $mark = MarkTime(); $mark = $mark . ' ' . SITE_NAME; $Title = 'Which programming language is best?'; $faqUrl = CORE_SITE . 'help.php'; $bannerUrl = CORE_SITE; // DATA //////////////////////////////////////////////// $Data = FullWeightedData(DATA_PATH . $DataSet . '.csv', $Tests, $Langs, $Incl, $Excl, $W, $SLangs); $timeUsed = 'Elapsed secs'; // ABOUT //////////////////////////////////////////////// $About =& new Template(ABOUT_PATH); $AboutTemplateName = 'scorecard-about.tpl.php'; // META //////////////////////////////////////////////// $metaRobots = '<meta name="robots" content="index,follow,noarchive" />'; $MetaKeywords = '<meta name="description" content="Compare programming language performance using your choice of benchmarks & Time-used Memory-used Code-used weights (' . PLATFORM_NAME . ')." />';
} } if (!isset($Action)) { $Action = 'calculate'; } $SLangs = SelectedLangs($Langs, $Action); if (isset($_GET['d']) && strlen($_GET['d']) && strlen($_GET['d']) <= 5) { $X = $_GET['d']; if (ereg("^[a-z]+\$", $X) && $X == 'ndata') { $DataSet = $X; } } if (!isset($DataSet) || isset($Action) && $Action == 'reset') { $DataSet = 'data'; } $W = Weights($Tests, $Action, $_GET); // HEADER //////////////////////////////////////////////// $mark = MarkTime(); $mark = $mark . ' ' . SITE_NAME; $Title = 'Which programs are best?'; $faqUrl = CORE_SITE . 'play.html'; $bannerUrl = CORE_SITE; // DATA //////////////////////////////////////////////// $Data = FullWeightedData(DATA_PATH . $DataSet . '.csv', $Tests, $Langs, $Incl, $Excl, $W, $SLangs); $timeUsed = 'Elapsed secs'; // ABOUT //////////////////////////////////////////////// $About =& new Template(ABOUT_PATH); $AboutTemplateName = 'scorecard-about.tpl.php'; // META //////////////////////////////////////////////// $metaRobots = '<meta name="robots" content="noindex,follow,noarchive" />'; $MetaKeywords = '<meta name="description" content="Compare programming language performance using your choice of benchmarks & Time-used Memory-used Code-used weights (' . PLATFORM_NAME . ')." />';