S2OJ/web/app/controllers/paste_view.php
2020-08-14 01:31:54 +08:00

12 lines
273 B
PHP

<?php
$paste_id = $_GET['rand_str_id'];
$paste = DB::selectFirst("select * from pastes where `index` = '".DB::escape($paste_id)."'");
if (!$paste) {
become404Page();
}
$REQUIRE_LIB['shjs'] = "";
echoUOJPageHeader("Paste!");
echoPasteContent($paste);
echoUOJPageFooter();