Fixed submission
This commit is contained in:
parent
166be860c8
commit
257803cb85
2 changed files with 4 additions and 11 deletions
|
@ -11,6 +11,10 @@ if ($n == 5 && $p[4] == "submission")
|
|||
|
||||
if (!empty($_POST["solution"]))
|
||||
{
|
||||
$file = ONYX . "../submission/".$p[1]."-".$p[2]."-".$p[3];
|
||||
|
||||
file_put_contents($file, $_POST['solution'], LOCK_EX);
|
||||
|
||||
header("Location: /".implode("/", $p));
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
<?php
|
||||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
$file = ONYX . "../submission/".$p[1]."-".$p[2]."-".$p[3];
|
||||
|
||||
file_put_contents($file, $_POST['solution'], LOCK_EX);
|
||||
|
||||
header('Location: /connected/'.$p[1].'/confirmation');
|
||||
|
||||
exit;
|
Reference in a new issue