Exercice page done with submission and confirmation

This commit is contained in:
Li Chen 2013-11-05 02:53:48 +01:00
commit 0f18ed8dcf
7 changed files with 60 additions and 5 deletions

View file

@ -0,0 +1,11 @@
<?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;