X-Git-Url: https://git.treefish.org/banana.git/blobdiff_plain/2c45a56043747bc7b524cdff4d00ff925b1a9544..17d5ad30f747658451fae84fe65cb1f5b66d377c:/submit.php?ds=sidebyside diff --git a/submit.php b/submit.php index 69d9ab8..aabc3fe 100644 --- a/submit.php +++ b/submit.php @@ -1,26 +1,20 @@ $line) { - $sessions[$line_num] = explode("\t",$line); - } - - if ( strtotime("now") > strtotime(end($sessions)[0]) ) { - print ''; - print ''; - print '
submission closed
'; + if ( ! isset($SESSIONS_next) ) { + block("red", "submission closed"); break; } if(isset($_POST['submit']) && $_POST['mnumber']!="") { - require 'usercheck.inc'; - + require 'include/usercheck.inc'; + $exchecked = $_POST['exchecked']; $mnumber = $_POST['mnumber']; - $sessionid = strtotime(end($sessions)[0]); + $sessionid = $SESSIONS[$SESSIONS_next]['id']; if($db->query("SELECT COUNT(*) FROM workdone WHERE mnumber = $mnumber AND session = $sessionid")->fetch(PDO::FETCH_NUM)[0] == 1) { print ''; @@ -41,11 +35,12 @@ print '
'; break; } + ?>
- +
submit examples for
submit examples for
@@ -64,7 +59,7 @@ $exid "; $exnum++; if ($exnum%3 == 0) { print ""; }