diff --git a/cp/app/Controllers/SystemController.php b/cp/app/Controllers/SystemController.php index 742adc1..6fc0e6b 100644 --- a/cp/app/Controllers/SystemController.php +++ b/cp/app/Controllers/SystemController.php @@ -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) { diff --git a/cp/resources/views/admin/system/listTlds.twig b/cp/resources/views/admin/system/listTlds.twig index 3a7b54f..dac3906 100644 --- a/cp/resources/views/admin/system/listTlds.twig +++ b/cp/resources/views/admin/system/listTlds.twig @@ -20,16 +20,6 @@