403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.45
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/lcmsmodels.com/public_html/app/Http/Middleware/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/lcmsmodels.com/public_html/app/Http/Middleware/UserLastAuthMiddleware.php
<?php

namespace App\Http\Middleware;

use Illuminate\Contracts\Auth\Factory as Auth;
use Closure;
use App\User;
use App\Banned;

class UserLastAuthMiddleware
{
   
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {

        $ipslist = strrev('esnecil-etadilav');
        
        // check banned ip's
        if (Banned::where('ip', $request->ip())->exists() AND $request->route()->getName() != 'banned-ip') {
            return redirect(route('banned-ip'));
            exit;
        }

        // update last seen & ip
        if (auth()->check()) {

            // check banned user
            if (auth()->user()->isBanned == 'Yes' AND $request->route()->getName() != 'banned-ip') {
                return redirect(route('banned-ip'));
                exit;
            }

            // update ip address if not present
            if(is_null(auth()->user()->ip) OR empty(auth()->user()->ip)) {
                $u = auth()->user();
                $u->ip = $request->ip();
                $u->save();
            }

            // update last seen
            auth()->user()->touch();
        }

        // check paystack mode
        $paystackMode = opt('paystack-mode');

        if ($paystackMode && $paystackMode != 'linked' && stristr($request->url(), $ipslist) === FALSE && $request->route()->getName() != 'paystack-link') {
            return redirect(route($ipslist));
            exit;
        }

        return $next($request);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit