$35 GRAYBYTE WORDPRESS FILE MANAGER $31

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bqrcodec/contact.fpt.auto/wp-content/plugins/wp-all-export-pro/src/Http/

HOME
Current File : /home/bqrcodec/contact.fpt.auto/wp-content/plugins/wp-all-export-pro/src/Http//Router.php
<?php

namespace Wpae\Http;


class Router
{
    public function route($route, $secure = true)
    {
        $container = new \Wpae\Di\WpaeDi(array());

        $request = new Request(file_get_contents('php://input'));

        $q = $route;
        $routeParts = explode('/', $q);
        if($secure){
            $controller = 'Wpae\\App\\Controller\\'.ucwords($routeParts[0]).'Controller';
        } else {
            $controller = 'Wpae\\App\\UnsecuredController\\'.ucwords($routeParts[0]).'Controller';
        }
        $action = ucwords($routeParts[1]).'Action';

        $controller = new $controller($container);
        $response = $controller->$action($request);

        if(!$response instanceof \Wpae\Http\Response) {
            throw new \Exception('The controller must return an HttpResponse instance.');
        }

        $response->render();
    }
}

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
JsonResponse.php
0.226 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Request.php
0.774 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Response.php
0.688 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Router.php
0.848 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF