One Hat Cyber Team
Your IP:
216.73.216.176
Server IP:
198.54.114.155
Server:
Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
5.6.40
Create File
|
Create Folder
Execute
Dir :
~
/
proc
/
thread-self
/
root
/
proc
/
self
/
cwd
/
View File Name :
Middleware.tar
TrustProxies.php 0000644 00000001175 15111264133 0007751 0 ustar 00 <?php namespace App\Http\Middleware; use Illuminate\Http\Middleware\TrustProxies as Middleware; use Illuminate\Http\Request; class TrustProxies extends Middleware { /** * The trusted proxies for this application. * * @var string|array */ protected $proxies = [ '192.168.1.1', '192.168.1.2', ]; /** * The headers that should be used to detect proxies. * * @var int */ protected $headers = Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_HOST | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO; } RedirectIfAuthenticated.php 0000644 00000001647 15111264133 0012005 0 ustar 00 <?php namespace App\Http\Middleware; use App\Providers\RouteServiceProvider; use Closure; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class RedirectIfAuthenticated { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @param string|null ...$guards * @return mixed */ public function handle($request, Closure $next, $guard = null) { switch($guard){ case 'admin': if (Auth::guard($guard)->check()) { return redirect()->route('admin.dashboard'); } break; default: if (Auth::guard($guard)->check()) { return redirect()->route('user.dashboard'); } break; } return $next($request); } } VerifyCsrfToken.php 0000644 00000001140 15111264133 0010331 0 ustar 00 <?php namespace App\Http\Middleware; use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware; class VerifyCsrfToken extends Middleware { /** * The URIs that should be excluded from CSRF verification. * * @var array */ protected $except = [ '/paytm-callback', '/razorpay-notify', '/flutter/notify', '/coingate/notify', '/user/deposit/paytm-callback', '/user/deposit/razorpay-notify', '/blockio/notify', '/coingate/notify', '/user/deposit/flutter/notify*', ]; } AdminMiddleware.php 0000644 00000001245 15111264133 0010302 0 ustar 00 <?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class AdminMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { if (Auth::guard('admin')->check()) { if (Auth::guard('admin')->user()->IsSuper()){ return $next($request); } } return redirect()->route('admin.dashboard')->with('unsuccess',"You don't have access to that section"); } } SetApiGuard.php 0000644 00000000575 15111264133 0007431 0 ustar 00 <?php namespace App\Http\Middleware; use Closure; class SetApiGuard { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { config(['auth.defaults.guard' => 'api']); return $next($request); } } TrustHosts.php 0000644 00000000566 15111264133 0007423 0 ustar 00 <?php namespace App\Http\Middleware; use Illuminate\Http\Middleware\TrustHosts as Middleware; class TrustHosts extends Middleware { /** * Get the host patterns that should be trusted. * * @return array */ public function hosts() { return [ $this->allSubdomainsOfApplicationUrl(), ]; } } BanUser.php 0000644 00000001151 15111264133 0006607 0 ustar 00 <?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; use Auth; class BanUser { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle(Request $request, Closure $next) { if (Auth::check() && Auth::user()->is_banned == 1) { Auth::guard('web')->logout(); return redirect()->route('user.login')->with('warning','Your account has been suspended!'); } return $next($request); } } TrimStrings.php 0000644 00000000603 15111264133 0007536 0 ustar 00 <?php namespace App\Http\Middleware; use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware; class TrimStrings extends Middleware { /** * The names of the attributes that should not be trimmed. * * @var array */ protected $except = [ 'current_password', 'password', 'password_confirmation', ]; } MaintenanceMode.php 0000644 00000000537 15111264133 0010306 0 ustar 00 <?php namespace App\Http\Middleware; use App\Models\Generalsetting; use Closure; class MaintenanceMode { public function handle($request, Closure $next) { $gs = Generalsetting::find(1); if($gs->is_maintain == 1) { return redirect()->route('front-maintenance'); } return $next($request); } } Permissions.php 0000644 00000001355 15111264133 0007571 0 ustar 00 <?php namespace App\Http\Middleware; use Auth; use Closure; class Permissions { public function handle($request, Closure $next,$data) { if (Auth::guard('admin')->check()) { if(Auth::guard('admin')->user()->id == 1){ return $next($request); } if(Auth::guard('admin')->user()->role_id == 0){ return redirect()->route('admin.dashboard')->with('unsuccess',"You don't have access to that section"); } if (Auth::guard('admin')->user()->sectionCheck($data)){ return $next($request); } } return redirect()->route('admin.dashboard')->with('unsuccess',"You don't have access to that section"); } } Authenticate.php 0000644 00000001527 15111264133 0007675 0 ustar 00 <?php namespace App\Http\Middleware; use Illuminate\Auth\Middleware\Authenticate as Middleware; use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\URL; class Authenticate extends Middleware { /** * Get the path the user should be redirected to when they are not authenticated. * * @param \Illuminate\Http\Request $request * @return string|null */ protected function redirectTo($request) { if (! $request->expectsJson()) { if($request->is('admin') || $request->is('admin/*')){ return redirect('/admin/login'); }elseif($request->is('user') || $request->is('user/*')){ return redirect('/user/login'); }else{ return redirect()->guest(route('front.index')); } } } } EncryptCookies.php 0000644 00000000467 15111264133 0010222 0 ustar 00 <?php namespace App\Http\Middleware; use Illuminate\Cookie\Middleware\EncryptCookies as Middleware; class EncryptCookies extends Middleware { /** * The names of the cookies that should not be encrypted. * * @var array */ protected $except = [ // ]; } Otp.php 0000644 00000001223 15111264133 0006012 0 ustar 00 <?php namespace App\Http\Middleware; use App\Models\Generalsetting; use Illuminate\Support\Facades\Auth; use Closure; class Otp { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $gs = Generalsetting::first(); $user = auth()->user(); if($gs->two_factor && $user->twofa){ if($user->verified == 0){ return redirect()->route('user.otp'); } return $next($request); } return $next($request); } } PreventRequestsDuringMaintenance.php 0000644 00000000562 15111264133 0013750 0 ustar 00 <?php namespace App\Http\Middleware; use Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance as Middleware; class PreventRequestsDuringMaintenance extends Middleware { /** * The URIs that should be reachable while maintenance mode is enabled. * * @var array */ protected $except = [ // ]; } error_log 0000644 00000014633 15111264133 0006465 0 ustar 00 [18-Nov-2025 09:39:35 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/PreventRequestsDuringMaintenance.php:7 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/PreventRequestsDuringMaintenance.php on line 7 [18-Nov-2025 19:39:25 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/PreventRequestsDuringMaintenance.php:7 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/PreventRequestsDuringMaintenance.php on line 7 [18-Nov-2025 19:39:44 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Http\Middleware\TrustProxies" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/TrustProxies.php:8 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/TrustProxies.php on line 8 [19-Nov-2025 20:49:28 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Foundation\Http\Middleware\TrimStrings" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/TrimStrings.php:7 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/TrimStrings.php on line 7 [19-Nov-2025 20:50:08 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Foundation\Http\Middleware\VerifyCsrfToken" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/VerifyCsrfToken.php:7 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/VerifyCsrfToken.php on line 7 [19-Nov-2025 21:01:40 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Http\Middleware\TrustHosts" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/TrustHosts.php:7 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/TrustHosts.php on line 7 [20-Nov-2025 02:18:07 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Foundation\Http\Middleware\TrimStrings" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/TrimStrings.php:7 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/TrimStrings.php on line 7 [20-Nov-2025 02:20:32 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Foundation\Http\Middleware\VerifyCsrfToken" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/VerifyCsrfToken.php:7 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/VerifyCsrfToken.php on line 7 [20-Nov-2025 02:39:24 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Http\Middleware\TrustHosts" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/TrustHosts.php:7 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/TrustHosts.php on line 7 [20-Nov-2025 02:46:03 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Auth\Middleware\Authenticate" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/Authenticate.php:9 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/Authenticate.php on line 9 [20-Nov-2025 02:46:04 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Http\Middleware\TrustProxies" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/TrustProxies.php:8 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/TrustProxies.php on line 8 [20-Nov-2025 06:00:55 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Cookie\Middleware\EncryptCookies" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/EncryptCookies.php:7 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/EncryptCookies.php on line 7 [20-Nov-2025 06:44:48 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Auth\Middleware\Authenticate" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/Authenticate.php:9 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/Authenticate.php on line 9 [20-Nov-2025 10:37:31 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Cookie\Middleware\EncryptCookies" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/EncryptCookies.php:7 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/EncryptCookies.php on line 7 [24-Nov-2025 10:09:53 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Foundation\Http\Middleware\VerifyCsrfToken" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/VerifyCsrfToken.php:7 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/VerifyCsrfToken.php on line 7 [24-Nov-2025 10:12:15 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Http\Middleware\TrustHosts" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/TrustHosts.php:7 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/TrustHosts.php on line 7 [24-Nov-2025 10:13:04 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Auth\Middleware\Authenticate" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/Authenticate.php:9 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/Authenticate.php on line 9 [24-Nov-2025 10:13:10 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Http\Middleware\TrustProxies" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/TrustProxies.php:8 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/TrustProxies.php on line 8 [24-Nov-2025 11:57:03 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Cookie\Middleware\EncryptCookies" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/EncryptCookies.php:7 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/EncryptCookies.php on line 7 [24-Nov-2025 12:48:41 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance" not found in /home/fluxyjvi/public_html/project/app/Http/Middleware/PreventRequestsDuringMaintenance.php:7 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/app/Http/Middleware/PreventRequestsDuringMaintenance.php on line 7 KYC.php 0000644 00000002155 15111264133 0005703 0 ustar 00 <?php namespace App\Http\Middleware; use App\Models\Generalsetting; use Illuminate\Support\Facades\Auth; use Closure; class KYC { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next,$value = null) { $gs = Generalsetting::first(); $user = auth()->user(); if($gs->kyc){ if($user->kyc_status == 0 || $user->kyc_status == 2){ if($user->kyc_status == 3){ return redirect()->route('user.dashboard')->with('warning','Please wait for verification!'); } $sections = explode(" , ", $gs->module_section); if (in_array($value, $sections)){ return redirect()->route('user.dashboard')->with('warning','Update Your KYC First and wait for verification!'); }else{ return $next($request); } } return $next($request); } return $next($request); } }