+11
index.php
+11
index.php
···
176
176
});
177
177
178
178
Flight::route('/login', function(): void {
179
+
if (!array_key_exists('username', $_GET)) {
180
+
$latte = new Latte\Engine;
181
+
$latte->render('./templates/login.latte', array_merge(Flight::get('standardParams'), [
182
+
'mainClass' => 'form',
183
+
'ogtitle' => SITE_TITLE." | login",
184
+
'ogdesc' => SITE_DESC,
185
+
'ogimage' => '',
186
+
'ogurl' => 'https://'.SITE_DOMAIN.'/login'
187
+
]));
188
+
die(1);
189
+
}
179
190
$username = $_GET['username'];
180
191
$bskyToucher = new BskyToucher();
181
192
$userInfo = $bskyToucher->getUserInfo($username);