Initial commit untuk UAS SIG

This commit is contained in:
z0rayy
2026-06-08 21:16:23 +07:00
commit c90ce9aedc
39 changed files with 7105 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
<?php
session_start();
header('Content-Type: application/json');
if (isset($_SESSION['user_id'])) {
echo json_encode(['status' => 'success', 'username' => $_SESSION['username']]);
} else {
http_response_code(401);
echo json_encode(['status' => 'error', 'message' => 'Unauthorized']);
}