mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-10 09:18:41 +00:00
17 lines
345 B
PHP
17 lines
345 B
PHP
<?php
|
|
|
|
if (!Auth::check()) {
|
|
becomeMsgPage(UOJLocale::get('need login'));
|
|
}
|
|
|
|
$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();
|