S2OJ/web/app/controllers/paste_view.php
2020-08-06 00:26:45 +08:00

10 lines
239 B
PHP

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