⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.53
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
onlinestore.ng
/
app
/
Http
/
Controllers
/
View File Name :
CustomDomainRequestController.php
type == 'super admin') { $custom_domain_requests = CustomDomainRequest::all(); return view ('custom_domain_request.index',compact('custom_domain_requests')); } else { return redirect()->back()->with('error',__('Permission Denied.')); } } public function updateRequestStatus($id, $response) { if(\Auth::user()->type == 'super admin') { $custom_domain_requests = CustomDomainRequest::find($id); if(!empty($custom_domain_requests)) { if($response == 1) { $custom_domain_requests->status = 1; $custom_domain_requests->update(); } else { $custom_domain_requests->status = '2'; $custom_domain_requests->update(); return redirect()->back()->with('success', __('Custom Domain Request Rejected Successfully.')); } return redirect()->back()->with('success', __('Custom Domain Request Approved Successfully.')); } else { return redirect()->back()->with('error', __('Something went wrong.')); } } else { return redirect()->back()->with('error', __('Permission Denied.')); } } public function destroy($id) { if(\Auth::user()->type == 'super admin') { $custom_domain_requests = CustomDomainRequest::find($id); $custom_domain_requests->delete(); return redirect()->route('custom_domain_request.index')->with('success', __('Custom Domain Request deleted successfully')); } else { return redirect()->back()->with('error', __('Permission Denied.')); } } }