Files
spota-dev/admin/page/user/checkuser.php
Power BI Dev efdb11db3f 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.
2026-05-02 10:08:52 +07:00

16 lines
364 B
PHP

<?php
session_start();
include ("../../../inc/helper.php");
include ("../../../inc/konfigurasi.php");
include ("../../../inc/db.pdo.class.php");
$db=new dB($dbsetting);
if($_POST['username']){
$db->runQuery("SELECT idAdmin FROM tbadmin WHERE username='".$_POST['username']."' LIMIT 1");
if($db->dbRows()>0){
echo "false";
}else{
echo "true";
}
}
?>