This repository has been archived on 2025-06-10. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
server/onyx/include/team/submission.php

11 lines
213 B
PHP

<?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;