forked from CRSS/Website
uhhhh was it this
This commit is contained in:
parent
f813ddc007
commit
bf7b0d9920
15
index.php
15
index.php
|
@ -151,6 +151,21 @@
|
|||
}
|
||||
});
|
||||
|
||||
$router->get('/company/([a-z]+)', function ($company) {
|
||||
global $twig, $mysql, $companies;
|
||||
|
||||
$twig->addGlobal('pageUri', '/company/' . $company);
|
||||
|
||||
if(!$companies[$company]) {
|
||||
http_response_code(404);
|
||||
|
||||
echo $twig->render('404.twig');
|
||||
} else {
|
||||
echo $twig->render('nation.twig', array('nation' => $companies[$company]));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$router->get('/u/([a-z0-9_\.]+)', function($name) {
|
||||
global $twig, $mysql, $discord;
|
||||
|
||||
|
|
Loading…
Reference in a new issue