first commit

This commit is contained in:
小喵 2022-07-11 19:56:44 +08:00
commit 788cf3e917
Signed by: mt
GPG key ID: 2BCF198BD3341FB3
47 changed files with 2007 additions and 0 deletions

15
webroot/auth.php Normal file
View file

@ -0,0 +1,15 @@
<?php
use MingTsay\Akanyan\App;
require_once __DIR__ . '/../vendor/autoload.php';
if (($_GET['source'] ?? '') !== 'discord' || empty($_GET['code'])) {
http_response_code(403);
exit;
}
App::auth($_GET['code']);
header('location: /');
http_response_code(302);