mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-23 03:18:41 +00:00
14 lines
232 B
PHP
14 lines
232 B
PHP
<?php
|
|
|
|
return function ($type) {
|
|
if ($type == 'up') {
|
|
DB::init();
|
|
|
|
$problems = DB::selectAll("select id from problems");
|
|
|
|
foreach ($problems as $id) {
|
|
mkdir(UOJContext::storagePath() . "/problem_resources/$id");
|
|
}
|
|
}
|
|
};
|