upload-timer/index.php
<?php include '../config.php' ?>
<?php session_start() ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Upload Timer</title>
<?php include DOCROOT.'header.php' ?>
<script type="text/javascript">
$(function()
{
$('form').submit(function()
{
$.ajax({
url: 'start-timer.php',
type: 'POST',
context: this,
success: function()
{
this.submit();
},
});
return false;
});
});
</script>
</head>
<body>
<h1>Upload Timer</h1>
<p>Upload something (max <?php echo to_human(MAX_UPLOAD_SIZE, 0) ?>), and this will hopefully figure out how long it took...</p>
<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo MAX_UPLOAD_SIZE ?>" />
<input type="file" name="file" />
<input type="submit" value="Upload" />
</form>
<?php $article = 1876; include DOCROOT.'footer.php'; ?>
</body>
</html>