Please Login First!"; exit(1); } function writable($path) { $ret = false; $fp = fopen($path."/testifwritable.tst","w"); $ret = !($fp===false); if($fp!=false) { fclose($fp); unlink($path."/testifwritable.tst"); } return $ret; } $maxfile = min(ini_get("upload_max_filesize"), ini_get("post_max_size")); echo "

".$MSG_PROBLEM."-".$MSG_IMPORT."

"; ?> Problem Import
or you need to execute:
chmod 775 -R $OJ_DATA && chgrp -R ".get_current_user()." $OJ_DATA
you can't use import function at this time.
"; if($OJ_LANG == "cn") echo "权限异常,请先去执行sudo chmod 775 -R $OJ_DATA
和 sudo chgrp -R ".get_current_user()." $OJ_DATA
"; $show_form = false; if(get_current_user()=="www") echo "如果你是宝塔用户,请关闭宝塔的跨站防护功能,如果你是lnmp或者centos用户,请禁用open_basedir。如果坚持使用,请将/home/jduge/data目录加进去。"; } if (!file_exists("../upload")) mkdir("../upload"); if (!writable("../upload")) { echo "../upload is not writable, chmod 770 to it.
"; $show_form = false; } } ?> - Import Problem FPS(.xml)/ZIP(.xml inside) 导入xml或zip压缩的xml文件,支持一个或多个,不支持子目录。


- QDUOJ - json - zip
应该是真的QDUOJ,未严格测试,感谢[温十六中]吴晓阳提供例子文件

- unkownOJ - json - zip
曾经以为是QDUOJ,但似乎不是,谁知道请告诉我

- SYZOJ - zip


- HydroOJ - zip


- HOJ - zip

- TYVJ - zip

- Markdown - zip
zip压缩的.md文件,首行为标题


免费题目下载
更多题目请到 TK 题库免费专区

- Import FPS data, please make sure you file is smaller than [] or set upload_max_filesize and post_max_size in php.ini
- If you fail on import big files[10M+],try enlarge your [memory_limit] setting in php.ini
- To find the php configuration file, use find /etc -name php.ini