代码拉取完成,页面将自动刷新
<?php
session_start();
//Vars
require_once('./include/setting_oj.inc.php');
require_once('./include/Parsedown.php');
//Prepares
$useThisFile = "FAQ.md";
$atThisPath = "./pages/documents/";
$processingFileName = "";
$content = "Failed to load document or document not exist.";
if(isset($_REQUEST['f']) && trim($_REQUEST['f'])!="") {
$processingFileName = $_REQUEST['f'];
} else {
$processingFileName = "FAQ";
}
if(is_file("{$atThisPath}custom/{$processingFileName}.{$OJ_LANGUAGE}.md")) {
$atThisPath = "{$atThisPath}custom/";
$useThisFile = "{$processingFileName}.{$OJ_LANGUAGE}.md";
} else if(is_file("{$atThisPath}custom/{$processingFileName}.md")) {
$atThisPath = "{$atThisPath}custom/";
$useThisFile = "{$processingFileName}.md";
} else if(is_file("{$atThisPath}{$processingFileName}.{$OJ_LANGUAGE}.md")) {
$useThisFile = "{$processingFileName}.{$OJ_LANGUAGE}.md";
} else if (is_file("{$atThisPath}{$processingFileName}.md")) {
$useThisFile = "{$processingFileName}.md";
}
if (is_file("{$atThisPath}{$useThisFile}")) {
$content = file_get_contents("{$atThisPath}{$useThisFile}");
}
//Page Includes
require("./pages/document.php");
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。