Initial Commit: Tugas Semua Pertemuan

This commit is contained in:
2026-06-08 22:49:54 +07:00
commit 51ea70b6ce
51 changed files with 6841 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/json; charset=UTF-8");
session_start();
if (isset($_SESSION['is_admin']) && $_SESSION['is_admin'] === true) {
http_response_code(200);
echo json_encode(array(
"is_admin" => true,
"username" => $_SESSION['admin_username']
));
} else {
http_response_code(200);
echo json_encode(array(
"is_admin" => false
));
}
?>