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:
22
recovery.php
Normal file
22
recovery.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
include ("inc/helper.php");
|
||||
include ("inc/konfigurasi.php");
|
||||
include ("inc/db.pdo.class.php");
|
||||
|
||||
$db=new dB($dbsetting);
|
||||
|
||||
$token=$_GET['key'];
|
||||
|
||||
$check="SELECT * FROM temp_resetpass WHERE rkey='$token' LIMIT 1";
|
||||
$db->runQuery($check);
|
||||
if($db->dbRows()>0){
|
||||
$r=$db->dbFetch();
|
||||
$jenisuser=$r['jenis'];
|
||||
$tglrecover=$r['tglrecover'];
|
||||
|
||||
}else{
|
||||
//pesan key invalid..
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user