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:
16
admin/page/user/checkuser.php
Normal file
16
admin/page/user/checkuser.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?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";
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user