Add SPOTA core PHP application

Add the main admin, dosen, mahasiswa, API, and service code needed to run the core legacy application with configurable upload storage.
This commit is contained in:
Power BI Dev
2026-05-02 10:08:52 +07:00
parent 874dbbe8e8
commit efdb11db3f
221 changed files with 43273 additions and 0 deletions

38
client_api/logout.php Normal file
View File

@@ -0,0 +1,38 @@
<?php
session_start();
include ("../inc/helper.php");
include ("../inc/konfigurasi.php");
include ("../inc/db.pdo.class.php");
$db=new dB($dbsetting);
header('Content-Type: application/json');
if($_POST){
$regid=$_POST['regid'];
if($regid!=""){
$q="DELETE FROM gcm_service WHERE regid='$regid'";
if($db->runQuery($q)){
$response["success"] = "1";
$response["data"] = null;
$response["msg"] = "Logout Berhasil";
echo json_encode($response);
}else{
$response["success"] = "0";
$response["data"] = null;
$response["msg"] = "Logout Gagal";
echo json_encode($response);
}
}else{
$response["success"] = "0";
$response["data"] = null;
$response["msg"] = "Registration id not Found";
echo json_encode($response);
}
}else{
$response["success"] = "0";
$response["data"] = null;
$response["msg"] = "Request not found";
echo json_encode($response);
}