aboutsummaryrefslogtreecommitdiffstats
path: root/web/pmod/pmod_test/pmod_test.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/pmod/pmod_test/pmod_test.inc.php')
-rw-r--r--web/pmod/pmod_test/pmod_test.inc.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/web/pmod/pmod_test/pmod_test.inc.php b/web/pmod/pmod_test/pmod_test.inc.php
new file mode 100644
index 0000000..a433404
--- /dev/null
+++ b/web/pmod/pmod_test/pmod_test.inc.php
@@ -0,0 +1,29 @@
+<?php
+require_once('problem.inc.php');
+require_once('user.inc.php');
+
+function event_create($proid)
+{
+ $sqlc = db_connect();
+
+ $proid = intval($proid);
+ $prodir = '/srv/http/toj/center/pro/'.$proid.'/';
+
+ mkdir($prodir);
+ mkdir($prodir.'public/');
+ mkdir($prodir.'private/');
+
+ $set = new stdClass();
+ $set->timelimit = 0;
+ $set->memlimit = 0;
+ $set->count = 0;
+ $set->score = array();
+ $newstr = "jmod_test\njmod_test_check\n=====\n\n".json_encode($set);
+
+ file_put_contents($prodir.'public/content', '');
+ file_put_contents($prodir.'setting', $newstr);
+
+ db_close($sqlc);
+}
+
+?>
tle='2020-02-09 15:53:33 +0800'>2020-02-091-3/+3 * - Change tk dependency from 8.4 to 8.5Beat Gaetzi2017-11-051-5/+3 * lang/tcl84, x11-toolkits/tk84: extend expiration for another monthPietro Cerutti2017-10-201-0/+3 * - Update to 1.8.1Beat Gaetzi2016-11-101-2/+4 * Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.Mathieu Arnold2016-04-011-2/+2 * - Update to 1.8Beat Gaetzi2015-12-271-1/+1 * Move MASTER_SITES from CRITICAL to LOCAL/ehauptEmanuel Haupt2015-01-061-1/+1 * StageEmanuel Haupt2014-04-171-10/+7 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...Baptiste Daroussin2013-09-211-0/+1 * - convert to the new perl5 frameworkAndrej Zverev2013-09-111-6/+2 * - Add additional MASTER_SITES to fix distfile fetchingBeat Gaetzi2010-09-181-1/+2 * - Update to 1.7Beat Gaetzi2010-09-151-1/+1 * - Update to 1.6Beat Gaetzi2009-05-131-3/+11 * Update my email address to @FreeBSD.org.Beat Gaetzi2009-01-291-1/+1 * - Move from versioned tcl/tk CATEGORIES to simple tcl and tk categoriesPav Lucistnik2008-04-091-1/+1 * Get rid of USE_X_PREFIX.Emanuel Haupt2008-03-181-2/+1 * - Welcome X.org 7.2 \o/.Florent Thoumie2007-05-201-0/+1 * - Update to 1.5Martin Wilke2007-04-211-1/+1 * Take maintainershipMartin Wilke2006-06-071-1/+1 * Reset maintainer at his request; nectar is away from FreeBSD work right now.Mark Linimon2006-03-241-1/+1 * Upgraded to version 1.4. The 1.3 version was unfetchable which caused the portNiels Heinen2005-07-141-3/+6 * Upgrade 1.2 -> 1.3.Jacques Vidrine2005-01-091-3/+5 * - Fix MASTER_SITESKirill Ponomarev2004-06-081-2/+1 * Switch to tk84, bump PORTREVISION and tidy some whitespace.Kris Kennaway2003-10-19