mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-13 08:07:00 +02:00
Allocation tokens can be viewed in the panel now
This commit is contained in:
parent
420bd952f8
commit
e0f77397d8
6 changed files with 115 additions and 14 deletions
|
@ -1065,6 +1065,26 @@ class SystemController extends Controller
|
|||
]);
|
||||
}
|
||||
|
||||
public function manageTokens(Request $request, Response $response)
|
||||
{
|
||||
if ($_SESSION["auth_roles"] != 0) {
|
||||
return $response->withHeader('Location', '/dashboard')->withStatus(302);
|
||||
}
|
||||
|
||||
if ($request->getMethod() === 'POST') {
|
||||
return $response->withHeader('Location', '/dashboard')->withStatus(302);
|
||||
}
|
||||
|
||||
$db = $this->container->get('db');
|
||||
$uri = $request->getUri()->getPath();
|
||||
$tokens = $db->select("SELECT * FROM allocation_tokens");
|
||||
|
||||
return view($response,'admin/system/manageTokens.twig', [
|
||||
'tokens' => $tokens,
|
||||
'currentUri' => $uri
|
||||
]);
|
||||
}
|
||||
|
||||
public function managePromo(Request $request, Response $response)
|
||||
{
|
||||
if ($_SESSION["auth_roles"] != 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue