blog things
This commit is contained in:
parent
aa29a55da8
commit
e80d50d692
1 changed files with 14 additions and 0 deletions
|
@ -5,3 +5,17 @@ if(preg_match('#^/blog/([0-9]+)$#', $reqPath, $matches) || $reqPath === '/blog.p
|
||||||
header('Location: //flash.moe/2020/blog.php?blog=1&p=' . ($matches[1] ?? filter_input(INPUT_GET, 'p', FILTER_SANITIZE_NUMBER_INT) ?? ''));
|
header('Location: //flash.moe/2020/blog.php?blog=1&p=' . ($matches[1] ?? filter_input(INPUT_GET, 'p', FILTER_SANITIZE_NUMBER_INT) ?? ''));
|
||||||
return FM_HIT | 302;
|
return FM_HIT | 302;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($reqPath === '/blog-assets.json') {
|
||||||
|
if($reqMethod !== 'GET')
|
||||||
|
return FM_ERR | 405;
|
||||||
|
|
||||||
|
header('Content-Type: application/json; charset=utf-8');
|
||||||
|
|
||||||
|
echo json_encode([
|
||||||
|
'header_backgrounds' => FM_BGS,
|
||||||
|
'footer_quotes' => FM_FEET,
|
||||||
|
]);
|
||||||
|
|
||||||
|
return FM_HIT;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue