Ejemplo n.º 1
0
echo startTime("SENSITIVITY");
?>
</td>
			<td><?php 
echo endTime("SENSITIVITY");
?>
</td>
			<td><?php 
echo status("SENSITIVITY");
?>
</td>
		</tr>
		<tr>
			<th>finished</th>
			<td><?php 
echo startTime("FINISHED");
?>
</td>
			<td><?php 
echo endTime("FINISHED");
?>
</td>
			<td><?php 
echo status("FINISHED");
?>
</td>
		</tr>
	</table>
	</div>
	<div id="footer">
		The <a href="http://pecanproject.org">PEcAn project</a> is supported by the National Science Foundation
Ejemplo n.º 2
0
    }
    if (!isLoggedIn()) {
        return $panel->render("login.html", ["title" => title, "contest_name" => contest_name, "schools" => $schools]);
    }
    return $panel->render("submit.html", ["title" => title, "contest_name" => contest_name, "navbar_title" => navbar_title, "problems" => $parsed]);
});
$panel->route('/logout', function ($panel) {
    logout();
});
$panel->route('/api/<string>/<string>', function ($panel, $api_query, $type) {
    if ($api_query === "time") {
        if ($api_query === "increment" && md5($_POST['key']) === global_admin_key) {
            incrementTime($_POST['time']);
        } else {
            if ($api_query === "start") {
                startTime();
            } else {
                if ($api_query === "pause" && md5($_POST['key']) === global_admin_key) {
                    pauseTime();
                }
            }
        }
    }
    if ($api_query === "user") {
        if (isLoggedIn()) {
            if ($type === "team") {
                return returnApiMessage(getTeamNumber());
            } else {
                if ($type === "written") {
                    return getWrittenScores();
                }
Ejemplo n.º 3
0
function stopTime($start)
{
    $stop = startTime();
    $zeit = $stop - $start;
    return substr($zeit, 0, 8);
}
Ejemplo n.º 4
0
                    echo '<p style="' . $resultStyle . '">' . $resultString . '</p>';
                }
                break;
        }
        // echo '<p style="'.$resultStyle.'"><i>(MD5)</i> ' . md5(implode('', $resultArray)) . '</p>';
        // echo '<p style="'.$resultStyle.'"><i>(LENGTH)</i> ' . 16 . '</p>';
    }
}
// $resultJSONArray = [];
// $resultJSONArray['r'] = implode('', $resultArray);
// if (isset($_GET['t'])) {
// 	header('Content-type:text/javascript;charset=UTF-8');
// 	if ($_GET['t'] == 'j') {
// 		$res = json_encode($resultJSONArray, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
// 		echo $res;
// 	} else {
// 		$callback = @$_GET['callback'];
// 		echo $callback . '(' . json_encode($resultJSONArray, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . ')';
// 	}
// } else {
//\Yp*6?v).Fy`/M'lnT+(e}NwBrWd98PtKmGD;[_C%2@>:x{kV4X$H!17=uhj#aIU3
// echo '<title>长度[' . $length . '] 模式[' . $_MDTEXT . ']</title>';
// }
// $pageendtime = microtime();
// $starttime = explode(" ", $pagestartime);
// $endtime = explode(" ", $pageendtime);
// $totaltime = $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];
// $timecost = sprintf("%s", $totaltime);
echo '<p style="font-size: 12px;">' . round(startTime() - $pagestartime, 4) . 's</p>';
// var_dump($timeString);
// BY ARIA
<?php

//Page Title
echo "<h1>Alchemy Extract for TRUTH Version 2</h1>";
$startTime = startTime();
//-----------------------------------------------------------------------Grab csv with raw data
$filename = getFile();
//-----------------------------------------------------------------------Grab line of data from file as array and Priocess
$data = grabData($filename);
$finishTime = finishTime();
processTime($startTime, $finishTime);