S2OJ/web/app/controllers/paste_view.php

10 lines
239 B
PHP
Raw Normal View History

2020-08-05 16:24:34 +00:00
<?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();