⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.155
Server IP:
57.129.66.90
Server:
Linux vps-7f548908 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
barzah.shop
/
public_html
/
app
/
Http
/
Helpers
/
View File Name :
Uploader.php
<?php namespace App\Http\Helpers; class Uploader { public static function upload_picture($directory, $img): string { $file_name = sha1(time() . rand()); @mkdir($directory, 0777, true); $ext = $img->getClientOriginalExtension(); $newFileName = $file_name . "." . $ext; $img->move($directory, $newFileName); return $newFileName; } public static function update_picture($directory, $img, $old_img): string { $file_name = sha1(time() . rand()); @mkdir($directory, 0777, true); $ext = $img->getClientOriginalExtension(); $newFileName = $file_name . "." . $ext; $oldImgPath = $directory. '/' . $old_img; if (file_exists($oldImgPath)) @unlink($oldImgPath); $img->move($directory, $newFileName); return $newFileName; } }