░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
lon105.truehost.cloud
LOCATION:
/home/ilrtztmy/woodcoffiefurnitureworks.com/api/middleware
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: auth_check.php
<?php include_once __DIR__ . "/../config/core.php"; include_once __DIR__ . "/../libs/php-jwt-master/src/BeforeValidException.php"; include_once __DIR__ . "/../libs/php-jwt-master/src/ExpiredException.php"; include_once __DIR__ . "/../libs/php-jwt-master/src/SignatureInvalidException.php"; include_once __DIR__ . "/../libs/php-jwt-master/src/JWT.php"; use Firebase\JWT\JWT; function authenticate($jwt) { if(!$jwt) { http_response_code(401); echo json_encode(array("message" => "Access denied.")); exit(); } try { $decoded = JWT::decode($jwt, SECRET_KEY, array("HS256")); return $decoded->data; }catch (Exception $e){ http_response_code(401); echo json_encode(array("message" => "Access denied.", "error" => $e->getMessage())); exit(); } } ?>
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 auth_check.php
PHP
828 B
2026-06-18 14:10
EDIT
📄 error_log
?
3.1 KB
2026-08-30 13:01
EDIT