ErrorException (E_ERROR)
Uninitialized string offset: 0 (View: /home/cyberdodo/public_html/htdocs/content/themes/18/resources/views/singular-video.blade.php)
Previous exceptions
  • Uninitialized string offset: 0 (8)
ErrorException thrown with message "Uninitialized string offset: 0 (View: /home/cyberdodo/public_html/htdocs/content/themes/18/resources/views/singular-video.blade.php)" Stacktrace: #46 ErrorException in /home/cyberdodo/public_html/htdocs/cms/wp-includes/Requests/Cookie.php:292 #45 Whoops\Exception\ErrorException in /home/cyberdodo/public_html/htdocs/cms/wp-includes/Requests/Cookie.php:292 #44 Whoops\Run:handleError in /home/cyberdodo/public_html/htdocs/cms/wp-includes/Requests/Cookie.php:292 #43 Requests_Cookie:normalize_attribute in /home/cyberdodo/public_html/htdocs/cms/wp-includes/Requests/Cookie.php:231 #42 Requests_Cookie:normalize in /home/cyberdodo/public_html/htdocs/cms/wp-includes/Requests/Cookie.php:84 #41 Requests_Cookie:__construct in /home/cyberdodo/public_html/htdocs/cms/wp-includes/Requests/Cookie.php:423 #40 Requests_Cookie:parse in /home/cyberdodo/public_html/htdocs/cms/wp-includes/Requests/Cookie.php:442 #39 Requests_Cookie:parse_from_headers in /home/cyberdodo/public_html/htdocs/cms/wp-includes/Requests/Cookie/Jar.php:171 #38 Requests_Cookie_Jar:before_redirect_check in /home/cyberdodo/public_html/htdocs/cms/wp-includes/Requests/Hooks.php:62 #37 Requests_Hooks:dispatch in /home/cyberdodo/public_html/htdocs/cms/wp-includes/class-wp-http-requests-hooks.php:51 #36 WP_HTTP_Requests_Hooks:dispatch in /home/cyberdodo/public_html/htdocs/cms/wp-includes/class-requests.php:683 #35 Requests:parse_response in /home/cyberdodo/public_html/htdocs/cms/wp-includes/class-requests.php:383 #34 Requests:request in /home/cyberdodo/public_html/htdocs/cms/wp-includes/class-http.php:384 #33 WP_Http:request in /home/cyberdodo/public_html/htdocs/cms/wp-includes/class-http.php:613 #32 WP_Http:get in /home/cyberdodo/public_html/htdocs/cms/wp-includes/http.php:70 #31 wp_safe_remote_get in /home/cyberdodo/public_html/htdocs/cms/wp-includes/class-oembed.php:558 #30 WP_oEmbed:_fetch_with_format in /home/cyberdodo/public_html/htdocs/cms/wp-includes/class-oembed.php:534 #29 WP_oEmbed:fetch in /home/cyberdodo/public_html/htdocs/cms/wp-includes/class-oembed.php:354 #28 WP_oEmbed:get_data in /home/cyberdodo/public_html/htdocs/cms/wp-includes/class-oembed.php:397 #27 WP_oEmbed:get_html in /home/cyberdodo/public_html/htdocs/cms/wp-includes/embed.php:100 #26 wp_oembed_get in /home/cyberdodo/public_html/storage/views/cf3e5201828715443977af7d4dd85b8079e5a5e7.php:22 #25 include in /home/cyberdodo/public_html/vendor/illuminate/view/Engines/PhpEngine.php:43 #24 Illuminate\View\Engines\PhpEngine:evaluatePath in /home/cyberdodo/public_html/vendor/illuminate/view/Engines/CompilerEngine.php:59 #23 Illuminate\View\Engines\CompilerEngine:get in /home/cyberdodo/public_html/vendor/illuminate/view/View.php:142 #22 Illuminate\View\View:getContents in /home/cyberdodo/public_html/vendor/illuminate/view/View.php:125 #21 Illuminate\View\View:renderContents in /home/cyberdodo/public_html/vendor/illuminate/view/View.php:90 #20 Illuminate\View\View:render in /home/cyberdodo/public_html/htdocs/content/mu-plugins/themosis-framework/src/Themosis/helpers.php:562 #19 view in /home/cyberdodo/public_html/htdocs/content/themes/18/resources/controllers/SingularController.php:40 #18 Theme\Controllers\SingularController:view in /home/cyberdodo/public_html/vendor/illuminate/routing/Controller.php:54 #17 call_user_func_array in /home/cyberdodo/public_html/vendor/illuminate/routing/Controller.php:54 #16 Illuminate\Routing\Controller:callAction in /home/cyberdodo/public_html/vendor/illuminate/routing/ControllerDispatcher.php:45 #15 Illuminate\Routing\ControllerDispatcher:dispatch in /home/cyberdodo/public_html/vendor/illuminate/routing/Route.php:212 #14 Illuminate\Routing\Route:runController in /home/cyberdodo/public_html/vendor/illuminate/routing/Route.php:169 #13 Illuminate\Routing\Route:run in /home/cyberdodo/public_html/vendor/illuminate/routing/Router.php:682 #12 Illuminate\Routing\Router:Illuminate\Routing\{closure} in /home/cyberdodo/public_html/vendor/illuminate/routing/Pipeline.php:30 #11 Illuminate\Routing\Pipeline:Illuminate\Routing\{closure} in /home/cyberdodo/public_html/vendor/illuminate/pipeline/Pipeline.php:104 #10 Illuminate\Pipeline\Pipeline:then in /home/cyberdodo/public_html/vendor/illuminate/routing/Router.php:684 #9 Illuminate\Routing\Router:runRouteWithinStack in /home/cyberdodo/public_html/vendor/illuminate/routing/Router.php:659 #8 Illuminate\Routing\Router:runRoute in /home/cyberdodo/public_html/vendor/illuminate/routing/Router.php:625 #7 Illuminate\Routing\Router:dispatchToRoute in /home/cyberdodo/public_html/vendor/illuminate/routing/Router.php:614 #6 Illuminate\Routing\Router:dispatch in /home/cyberdodo/public_html/htdocs/content/mu-plugins/themosis-framework/themosis.php:292 #5 Themosis:setRouter in /home/cyberdodo/public_html/htdocs/cms/wp-includes/class-wp-hook.php:286 #4 WP_Hook:apply_filters in /home/cyberdodo/public_html/htdocs/cms/wp-includes/class-wp-hook.php:310 #3 WP_Hook:do_action in /home/cyberdodo/public_html/htdocs/cms/wp-includes/plugin.php:465 #2 do_action in /home/cyberdodo/public_html/htdocs/cms/wp-includes/template-loader.php:13 #1 require_once in /home/cyberdodo/public_html/htdocs/cms/wp-blog-header.php:19 #0 require in /home/cyberdodo/public_html/htdocs/index.php:11
Stack frames (47)
46
ErrorException
/
htdocs
/
cms
/
wp-includes
/
Requests
/
Cookie.php
292
45
Whoops
\
Exception
\
ErrorException
/
htdocs
/
cms
/
wp-includes
/
Requests
/
Cookie.php
292
44
Whoops
\
Run
handleError
/
htdocs
/
cms
/
wp-includes
/
Requests
/
Cookie.php
292
43
Requests_Cookie
normalize_attribute
/
htdocs
/
cms
/
wp-includes
/
Requests
/
Cookie.php
231
42
Requests_Cookie
normalize
/
htdocs
/
cms
/
wp-includes
/
Requests
/
Cookie.php
84
41
Requests_Cookie
__construct
/
htdocs
/
cms
/
wp-includes
/
Requests
/
Cookie.php
423
40
Requests_Cookie
parse
/
htdocs
/
cms
/
wp-includes
/
Requests
/
Cookie.php
442
39
Requests_Cookie
parse_from_headers
/
htdocs
/
cms
/
wp-includes
/
Requests
/
Cookie
/
Jar.php
171
38
Requests_Cookie_Jar
before_redirect_check
/
htdocs
/
cms
/
wp-includes
/
Requests
/
Hooks.php
62
37
Requests_Hooks
dispatch
/
htdocs
/
cms
/
wp-includes
/
class-wp-http-requests-hooks.php
51
36
WP_HTTP_Requests_Hooks
dispatch
/
htdocs
/
cms
/
wp-includes
/
class-requests.php
683
35
Requests
parse_response
/
htdocs
/
cms
/
wp-includes
/
class-requests.php
383
34
Requests
request
/
htdocs
/
cms
/
wp-includes
/
class-http.php
384
33
WP_Http
request
/
htdocs
/
cms
/
wp-includes
/
class-http.php
613
32
WP_Http
get
/
htdocs
/
cms
/
wp-includes
/
http.php
70
31
wp_safe_remote_get
/
htdocs
/
cms
/
wp-includes
/
class-oembed.php
558
30
WP_oEmbed
_fetch_with_format
/
htdocs
/
cms
/
wp-includes
/
class-oembed.php
534
29
WP_oEmbed
fetch
/
htdocs
/
cms
/
wp-includes
/
class-oembed.php
354
28
WP_oEmbed
get_data
/
htdocs
/
cms
/
wp-includes
/
class-oembed.php
397
27
WP_oEmbed
get_html
/
htdocs
/
cms
/
wp-includes
/
embed.php
100
26
wp_oembed_get
/
storage
/
views
/
cf3e5201828715443977af7d4dd85b8079e5a5e7.php
22
25
include
/
vendor
/
illuminate
/
view
/
Engines
/
PhpEngine.php
43
24
Illuminate
\
View
\
Engines
\
PhpEngine
evaluatePath
/
vendor
/
illuminate
/
view
/
Engines
/
CompilerEngine.php
59
23
Illuminate
\
View
\
Engines
\
CompilerEngine
get
/
vendor
/
illuminate
/
view
/
View.php
142
22
Illuminate
\
View
\
View
getContents
/
vendor
/
illuminate
/
view
/
View.php
125
21
Illuminate
\
View
\
View
renderContents
/
vendor
/
illuminate
/
view
/
View.php
90
20
Illuminate
\
View
\
View
render
/
htdocs
/
content
/
mu-plugins
/
themosis-framework
/
src
/
Themosis
/
helpers.php
562
19
view
/
htdocs
/
content
/
themes
/
18
/
resources
/
controllers
/
SingularController.php
40
18
Theme
\
Controllers
\
SingularController
view
/
vendor
/
illuminate
/
routing
/
Controller.php
54
17
call_user_func_array
/
vendor
/
illuminate
/
routing
/
Controller.php
54
16
Illuminate
\
Routing
\
Controller
callAction
/
vendor
/
illuminate
/
routing
/
ControllerDispatcher.php
45
15
Illuminate
\
Routing
\
ControllerDispatcher
dispatch
/
vendor
/
illuminate
/
routing
/
Route.php
212
14
Illuminate
\
Routing
\
Route
runController
/
vendor
/
illuminate
/
routing
/
Route.php
169
13
Illuminate
\
Routing
\
Route
run
/
vendor
/
illuminate
/
routing
/
Router.php
682
12
Illuminate
\
Routing
\
Router
Illuminate
\
Routing
\
{closure}
/
vendor
/
illuminate
/
routing
/
Pipeline.php
30
11
Illuminate
\
Routing
\
Pipeline
Illuminate
\
Routing
\
{closure}
/
vendor
/
illuminate
/
pipeline
/
Pipeline.php
104
10
Illuminate
\
Pipeline
\
Pipeline
then
/
vendor
/
illuminate
/
routing
/
Router.php
684
9
Illuminate
\
Routing
\
Router
runRouteWithinStack
/
vendor
/
illuminate
/
routing
/
Router.php
659
8
Illuminate
\
Routing
\
Router
runRoute
/
vendor
/
illuminate
/
routing
/
Router.php
625
7
Illuminate
\
Routing
\
Router
dispatchToRoute
/
vendor
/
illuminate
/
routing
/
Router.php
614
6
Illuminate
\
Routing
\
Router
dispatch
/
htdocs
/
content
/
mu-plugins
/
themosis-framework
/
themosis.php
292
5
Themosis
setRouter
/
htdocs
/
cms
/
wp-includes
/
class-wp-hook.php
286
4
WP_Hook
apply_filters
/
htdocs
/
cms
/
wp-includes
/
class-wp-hook.php
310
3
WP_Hook
do_action
/
htdocs
/
cms
/
wp-includes
/
plugin.php
465
2
do_action
/
htdocs
/
cms
/
wp-includes
/
template-loader.php
13
1
require_once
/
htdocs
/
cms
/
wp-blog-header.php
19
0
require
/
htdocs
/
index.php
11
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
Requests
/
Cookie.php
                }
 
                // Check that we have a valid age
                if (!preg_match('/^-?\d+$/', $value)) {
                    return null;
                }
 
                $delta_seconds = (int) $value;
                if ($delta_seconds <= 0) {
                    $expiry_time = 0;
                }
                else {
                    $expiry_time = $this->reference_time + $delta_seconds;
                }
 
                return $expiry_time;
 
            case 'domain':
                // Domain normalization, as per RFC 6265 section 5.2.3
                if ($value[0] === '.') {
                    $value = substr($value, 1);
                }
 
                return $value;
 
            default:
                return $value;
        }
    }
 
    /**
     * Format a cookie for a Cookie header
     *
     * This is used when sending cookies to a server.
     *
     * @return string Cookie formatted for Cookie header
     */
    public function format_for_header() {
        return sprintf('%s=%s', $this->name, $this->value);
    }
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
Requests
/
Cookie.php
                }
 
                // Check that we have a valid age
                if (!preg_match('/^-?\d+$/', $value)) {
                    return null;
                }
 
                $delta_seconds = (int) $value;
                if ($delta_seconds <= 0) {
                    $expiry_time = 0;
                }
                else {
                    $expiry_time = $this->reference_time + $delta_seconds;
                }
 
                return $expiry_time;
 
            case 'domain':
                // Domain normalization, as per RFC 6265 section 5.2.3
                if ($value[0] === '.') {
                    $value = substr($value, 1);
                }
 
                return $value;
 
            default:
                return $value;
        }
    }
 
    /**
     * Format a cookie for a Cookie header
     *
     * This is used when sending cookies to a server.
     *
     * @return string Cookie formatted for Cookie header
     */
    public function format_for_header() {
        return sprintf('%s=%s', $this->name, $this->value);
    }
Exception message: Uninitialized string offset: 0
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
Requests
/
Cookie.php
                }
 
                // Check that we have a valid age
                if (!preg_match('/^-?\d+$/', $value)) {
                    return null;
                }
 
                $delta_seconds = (int) $value;
                if ($delta_seconds <= 0) {
                    $expiry_time = 0;
                }
                else {
                    $expiry_time = $this->reference_time + $delta_seconds;
                }
 
                return $expiry_time;
 
            case 'domain':
                // Domain normalization, as per RFC 6265 section 5.2.3
                if ($value[0] === '.') {
                    $value = substr($value, 1);
                }
 
                return $value;
 
            default:
                return $value;
        }
    }
 
    /**
     * Format a cookie for a Cookie header
     *
     * This is used when sending cookies to a server.
     *
     * @return string Cookie formatted for Cookie header
     */
    public function format_for_header() {
        return sprintf('%s=%s', $this->name, $this->value);
    }
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
Requests
/
Cookie.php
            if (substr($request_path, strlen($cookie_path), 1) === '/') {
                // The cookie-path is a prefix of the request-path, and the
                // first character of the request-path that is not included in
                // the cookie-path is a %x2F ("/") character.
                return true;
            }
        }
 
        return false;
    }
 
    /**
     * Normalize cookie and attributes
     *
     * @return boolean Whether the cookie was successfully normalized
     */
    public function normalize() {
        foreach ($this->attributes as $key => $value) {
            $orig_value = $value;
            $value = $this->normalize_attribute($key, $value);
            if ($value === null) {
                unset($this->attributes[$key]);
                continue;
            }
 
            if ($value !== $orig_value) {
                $this->attributes[$key] = $value;
            }
        }
 
        return true;
    }
 
    /**
     * Parse an individual cookie attribute
     *
     * Handles parsing individual attributes from the cookie values.
     *
     * @param string $name Attribute name
     * @param string|boolean $value Attribute value (string value, or true if empty/flag)
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
Requests
/
Cookie.php
     * @param array|Requests_Utility_CaseInsensitiveDictionary $attributes Associative array of attribute data
     */
    public function __construct($name, $value, $attributes = array(), $flags = array(), $reference_time = null) {
        $this->name = $name;
        $this->value = $value;
        $this->attributes = $attributes;
        $default_flags = array(
            'creation' => time(),
            'last-access' => time(),
            'persistent' => false,
            'host-only' => true,
        );
        $this->flags = array_merge($default_flags, $flags);
 
        $this->reference_time = time();
        if ($reference_time !== null) {
            $this->reference_time = $reference_time;
        }
 
        $this->normalize();
    }
 
    /**
     * Check if a cookie is expired.
     *
     * Checks the age against $this->reference_time to determine if the cookie
     * is expired.
     *
     * @return boolean True if expired, false if time is valid.
     */
    public function is_expired() {
        // RFC6265, s. 4.1.2.2:
        // If a cookie has both the Max-Age and the Expires attribute, the Max-
        // Age attribute has precedence and controls the expiration date of the
        // cookie.
        if (isset($this->attributes['max-age'])) {
            $max_age = $this->attributes['max-age'];
            return $max_age < $this->reference_time;
        }
 
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
Requests
/
Cookie.php
        // Attribute key are handled case-insensitively
        $attributes = new Requests_Utility_CaseInsensitiveDictionary();
 
        if (!empty($parts)) {
            foreach ($parts as $part) {
                if (strpos($part, '=') === false) {
                    $part_key = $part;
                    $part_value = true;
                }
                else {
                    list($part_key, $part_value) = explode('=', $part, 2);
                    $part_value = trim($part_value);
                }
 
                $part_key = trim($part_key);
                $attributes[$part_key] = $part_value;
            }
        }
 
        return new Requests_Cookie($name, $value, $attributes, array(), $reference_time);
    }
 
    /**
     * Parse all Set-Cookie headers from request headers
     *
     * @param Requests_Response_Headers $headers Headers to parse from
     * @param Requests_IRI|null $origin URI for comparing cookie origins
     * @param int|null $time Reference time for expiration calculation
     * @return array
     */
    public static function parse_from_headers(Requests_Response_Headers $headers, Requests_IRI $origin = null, $time = null) {
        $cookie_headers = $headers->getValues('Set-Cookie');
        if (empty($cookie_headers)) {
            return array();
        }
 
        $cookies = array();
        foreach ($cookie_headers as $header) {
            $parsed = self::parse($header, '', $time);
 
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
Requests
/
Cookie.php
        return new Requests_Cookie($name, $value, $attributes, array(), $reference_time);
    }
 
    /**
     * Parse all Set-Cookie headers from request headers
     *
     * @param Requests_Response_Headers $headers Headers to parse from
     * @param Requests_IRI|null $origin URI for comparing cookie origins
     * @param int|null $time Reference time for expiration calculation
     * @return array
     */
    public static function parse_from_headers(Requests_Response_Headers $headers, Requests_IRI $origin = null, $time = null) {
        $cookie_headers = $headers->getValues('Set-Cookie');
        if (empty($cookie_headers)) {
            return array();
        }
 
        $cookies = array();
        foreach ($cookie_headers as $header) {
            $parsed = self::parse($header, '', $time);
 
            // Default domain/path attributes
            if (empty($parsed->attributes['domain']) && !empty($origin)) {
                $parsed->attributes['domain'] = $origin->host;
                $parsed->flags['host-only'] = true;
            }
            else {
                $parsed->flags['host-only'] = false;
            }
 
            $path_is_valid = (!empty($parsed->attributes['path']) && $parsed->attributes['path'][0] === '/');
            if (!$path_is_valid && !empty($origin)) {
                $path = $origin->path;
 
                // Default path normalization as per RFC 6265 section 5.1.4
                if (substr($path, 0, 1) !== '/') {
                    // If the uri-path is empty or if the first character of
                    // the uri-path is not a %x2F ("/") character, output
                    // %x2F ("/") and skip the remaining steps.
                    $path = '/';
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
Requests
/
Cookie
/
Jar.php
                    $cookies[] = $cookie->format_for_header();
                }
            }
 
            $headers['Cookie'] = implode('; ', $cookies);
        }
    }
 
    /**
     * Parse all cookies from a response and attach them to the response
     *
     * @var Requests_Response $response
     */
    public function before_redirect_check(Requests_Response &$return) {
        $url = $return->url;
        if (!$url instanceof Requests_IRI) {
            $url = new Requests_IRI($url);
        }
 
        $cookies = Requests_Cookie::parse_from_headers($return->headers, $url);
        $this->cookies = array_merge($this->cookies, $cookies);
        $return->cookies = $this;
    }
}
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
Requests
/
Hooks.php
        }
 
        $this->hooks[$hook][$priority][] = $callback;
    }
 
    /**
     * Dispatch a message
     *
     * @param string $hook Hook name
     * @param array $parameters Parameters to pass to callbacks
     * @return boolean Successfulness
     */
    public function dispatch($hook, $parameters = array()) {
        if (empty($this->hooks[$hook])) {
            return false;
        }
 
        foreach ($this->hooks[$hook] as $priority => $hooked) {
            foreach ($hooked as $callback) {
                call_user_func_array($callback, $parameters);
            }
        }
 
        return true;
    }
}
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
class-wp-http-requests-hooks.php
    /**
     * Constructor.
     *
     * @param string $url URL to request.
     * @param array $request Request data in WP_Http format.
     */
    public function __construct( $url, $request ) {
        $this->url     = $url;
        $this->request = $request;
    }
 
    /**
     * Dispatch a Requests hook to a native WordPress action.
     *
     * @param string $hook Hook name.
     * @param array $parameters Parameters to pass to callbacks.
     * @return boolean True if hooks were run, false if nothing was hooked.
     */
    public function dispatch( $hook, $parameters = array() ) {
        $result = parent::dispatch( $hook, $parameters );
 
        // Handle back-compat actions
        switch ( $hook ) {
            case 'curl.before_send':
                /** This action is documented in wp-includes/class-wp-http-curl.php */
                do_action_ref_array( 'http_api_curl', array( &$parameters[0], $this->request, $this->url ) );
                break;
        }
 
        /**
         * Transforms a native Request hook to a WordPress actions.
         *
         * This action maps Requests internal hook to a native WordPress action.
         *
         * @see https://github.com/rmccue/Requests/blob/master/docs/hooks.md
         *
         * @param array $parameters Parameters from Requests internal hook.
         * @param array $request Request data in WP_Http format.
         * @param string $url URL to request.
         */
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
class-requests.php
        foreach ($headers as $header) {
            list($key, $value) = explode(':', $header, 2);
            $value = trim($value);
            preg_replace('#(\s+)#i', ' ', $value);
            $return->headers[$key] = $value;
        }
        if (isset($return->headers['transfer-encoding'])) {
            $return->body = self::decode_chunked($return->body);
            unset($return->headers['transfer-encoding']);
        }
        if (isset($return->headers['content-encoding'])) {
            $return->body = self::decompress($return->body);
        }
 
        //fsockopen and cURL compatibility
        if (isset($return->headers['connection'])) {
            unset($return->headers['connection']);
        }
 
        $options['hooks']->dispatch('requests.before_redirect_check', array(&$return, $req_headers, $req_data, $options));
 
        if ($return->is_redirect() && $options['follow_redirects'] === true) {
            if (isset($return->headers['location']) && $options['redirected'] < $options['redirects']) {
                if ($return->status_code === 303) {
                    $options['type'] = self::GET;
                }
                $options['redirected']++;
                $location = $return->headers['location'];
                if (strpos($location, 'http://') !== 0 && strpos($location, 'https://') !== 0) {
                    // relative redirect, for compatibility make it absolute
                    $location = Requests_IRI::absolutize($url, $location);
                    $location = $location->uri;
                }
 
                $hook_args = array(
                    &$location,
                    &$req_headers,
                    &$req_data,
                    &$options,
                    $return
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
class-requests.php
 
        $options['hooks']->dispatch('requests.before_request', array(&$url, &$headers, &$data, &$type, &$options));
 
        if (!empty($options['transport'])) {
            $transport = $options['transport'];
 
            if (is_string($options['transport'])) {
                $transport = new $transport();
            }
        }
        else {
            $need_ssl = (0 === stripos($url, 'https://'));
            $capabilities = array('ssl' => $need_ssl);
            $transport = self::get_transport($capabilities);
        }
        $response = $transport->request($url, $headers, $data, $options);
 
        $options['hooks']->dispatch('requests.before_parse', array(&$response, $url, $headers, $data, $type, $options));
 
        return self::parse_response($response, $url, $headers, $data, $options);
    }
 
    /**
     * Send multiple HTTP requests simultaneously
     *
     * The `$requests` parameter takes an associative or indexed array of
     * request fields. The key of each request can be used to match up the
     * request with the returned data, or with the request passed into your
     * `multiple.request.complete` callback.
     *
     * The request fields value is an associative array with the following keys:
     *
     * - `url`: Request URL Same as the `$url` parameter to
     *    {@see Requests::request}
     *    (string, required)
     * - `headers`: Associative array of header fields. Same as the `$headers`
     *    parameter to {@see Requests::request}
     *    (array, default: `array()`)
     * - `data`: Associative array of data fields or a string. Same as the
     *    `$data` parameter to {@see Requests::request}
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
class-http.php
         */
        $options['verify'] = apply_filters( 'https_ssl_verify', $options['verify'], $url );
 
        // Check for proxies.
        $proxy = new WP_HTTP_Proxy();
        if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) {
            $options['proxy'] = new Requests_Proxy_HTTP( $proxy->host() . ':' . $proxy->port() );
 
            if ( $proxy->use_authentication() ) {
                $options['proxy']->use_authentication = true;
                $options['proxy']->user               = $proxy->username();
                $options['proxy']->pass               = $proxy->password();
            }
        }
 
        // Avoid issues where mbstring.func_overload is enabled
        mbstring_binary_safe_encoding();
 
        try {
            $requests_response = Requests::request( $url, $headers, $data, $type, $options );
 
            // Convert the response into an array
            $http_response = new WP_HTTP_Requests_Response( $requests_response, $r['filename'] );
            $response      = $http_response->to_array();
 
            // Add the original object to the array.
            $response['http_response'] = $http_response;
        } catch ( Requests_Exception $e ) {
            $response = new WP_Error( 'http_request_failed', $e->getMessage() );
        }
 
        reset_mbstring_encoding();
 
        /**
         * Fires after an HTTP API response is received and before the response is returned.
         *
         * @since 2.8.0
         *
         * @param array|WP_Error $response HTTP response or WP_Error object.
         * @param string         $context  Context under which the hook is fired.
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
class-http.php
        $defaults = array( 'method' => 'POST' );
        $r        = wp_parse_args( $args, $defaults );
        return $this->request( $url, $r );
    }
 
    /**
     * Uses the GET HTTP method.
     *
     * Used for sending data that is expected to be in the body.
     *
     * @since 2.7.0
     *
     * @param string $url The request URL.
     * @param string|array $args Optional. Override the defaults.
     * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'. A WP_Error instance upon error
     */
    public function get( $url, $args = array() ) {
        $defaults = array( 'method' => 'GET' );
        $r        = wp_parse_args( $args, $defaults );
        return $this->request( $url, $r );
    }
 
    /**
     * Uses the HEAD HTTP method.
     *
     * Used for sending data that is expected to be in the body.
     *
     * @since 2.7.0
     *
     * @param string $url The request URL.
     * @param string|array $args Optional. Override the defaults.
     * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'. A WP_Error instance upon error
     */
    public function head( $url, $args = array() ) {
        $defaults = array( 'method' => 'HEAD' );
        $r        = wp_parse_args( $args, $defaults );
        return $this->request( $url, $r );
    }
 
    /**
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
http.php
 
/**
 * Retrieve the raw response from a safe HTTP request using the GET method.
 *
 * This function is ideal when the HTTP request is being made to an arbitrary
 * URL. The URL is validated to avoid redirection and request forgery attacks.
 *
 * @since 3.6.0
 *
 * @see wp_remote_request() For more information on the response array format.
 * @see WP_Http::request() For default arguments information.
 *
 * @param string $url  Site URL to retrieve.
 * @param array  $args Optional. Request arguments. Default empty array.
 * @return WP_Error|array The response or WP_Error on failure.
 */
function wp_safe_remote_get( $url, $args = array() ) {
    $args['reject_unsafe_urls'] = true;
    $http                       = _wp_http_get_object();
    return $http->get( $url, $args );
}
 
/**
 * Retrieve the raw response from a safe HTTP request using the POST method.
 *
 * This function is ideal when the HTTP request is being made to an arbitrary
 * URL. The URL is validated to avoid redirection and request forgery attacks.
 *
 * @since 3.6.0
 *
 * @see wp_remote_request() For more information on the response array format.
 * @see WP_Http::request() For default arguments information.
 *
 * @param string $url  Site URL to retrieve.
 * @param array  $args Optional. Request arguments. Default empty array.
 * @return WP_Error|array The response or WP_Error on failure.
 */
function wp_safe_remote_post( $url, $args = array() ) {
    $args['reject_unsafe_urls'] = true;
    $http                       = _wp_http_get_object();
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
class-oembed.php
        }
        return false;
    }
 
    /**
     * Fetches result from an oEmbed provider for a specific format and complete provider URL
     *
     * @since 3.0.0
     *
     * @param string $provider_url_with_args URL to the provider with full arguments list (url, maxheight, etc.)
     * @param string $format Format to use
     * @return false|object|WP_Error False on failure, otherwise the result in the form of an object.
     */
    private function _fetch_with_format( $provider_url_with_args, $format ) {
        $provider_url_with_args = add_query_arg( 'format', $format, $provider_url_with_args );
 
        /** This filter is documented in wp-includes/class-oembed.php */
        $args = apply_filters( 'oembed_remote_get_args', array(), $provider_url_with_args );
 
        $response = wp_safe_remote_get( $provider_url_with_args, $args );
        if ( 501 == wp_remote_retrieve_response_code( $response ) ) {
            return new WP_Error( 'not-implemented' );
        }
        if ( ! $body = wp_remote_retrieve_body( $response ) ) {
            return false;
        }
        $parse_method = "_parse_$format";
        return $this->$parse_method( $body );
    }
 
    /**
     * Parses a json response body.
     *
     * @since 3.0.0
     *
     * @param string $response_body
     * @return object|false
     */
    private function _parse_json( $response_body ) {
        $data = json_decode( trim( $response_body ) );
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
class-oembed.php
 
        $provider = add_query_arg( 'maxwidth', (int) $args['width'], $provider );
        $provider = add_query_arg( 'maxheight', (int) $args['height'], $provider );
        $provider = add_query_arg( 'url', urlencode( $url ), $provider );
        $provider = add_query_arg( 'dnt', 1, $provider );
 
        /**
         * Filters the oEmbed URL to be fetched.
         *
         * @since 2.9.0
         * @since 4.9.0 The `dnt` (Do Not Track) query parameter was added to all oEmbed provider URLs.
         *
         * @param string $provider URL of the oEmbed provider.
         * @param string $url      URL of the content to be embedded.
         * @param array  $args     Optional arguments, usually passed from a shortcode.
         */
        $provider = apply_filters( 'oembed_fetch_url', $provider, $url, $args );
 
        foreach ( array( 'json', 'xml' ) as $format ) {
            $result = $this->_fetch_with_format( $provider, $format );
            if ( is_wp_error( $result ) && 'not-implemented' == $result->get_error_code() ) {
                continue;
            }
            return ( $result && ! is_wp_error( $result ) ) ? $result : false;
        }
        return false;
    }
 
    /**
     * Fetches result from an oEmbed provider for a specific format and complete provider URL
     *
     * @since 3.0.0
     *
     * @param string $provider_url_with_args URL to the provider with full arguments list (url, maxheight, etc.)
     * @param string $format Format to use
     * @return false|object|WP_Error False on failure, otherwise the result in the form of an object.
     */
    private function _fetch_with_format( $provider_url_with_args, $format ) {
        $provider_url_with_args = add_query_arg( 'format', $format, $provider_url_with_args );
 
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
class-oembed.php
     * Takes a URL and attempts to return the oEmbed data.
     *
     * @see WP_oEmbed::fetch()
     *
     * @since 4.8.0
     *
     * @param string       $url  The URL to the content that should be attempted to be embedded.
     * @param array|string $args Optional. Arguments, usually passed from a shortcode. Default empty.
     * @return false|object False on failure, otherwise the result in the form of an object.
     */
    public function get_data( $url, $args = '' ) {
        $args = wp_parse_args( $args );
 
        $provider = $this->get_provider( $url, $args );
 
        if ( ! $provider ) {
            return false;
        }
 
        $data = $this->fetch( $provider, $url, $args );
 
        if ( false === $data ) {
            return false;
        }
 
        return $data;
    }
 
    /**
     * The do-it-all function that takes a URL and attempts to return the HTML.
     *
     * @see WP_oEmbed::fetch()
     * @see WP_oEmbed::data2html()
     *
     * @since 2.9.0
     *
     * @param string       $url  The URL to the content that should be attempted to be embedded.
     * @param array|string $args Optional. Arguments, usually passed from a shortcode. Default empty.
     * @return false|string False on failure, otherwise the UNSANITIZED (and potentially unsafe) HTML that should be used to embed.
     */
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
class-oembed.php
         *
         * This allows one to short-circuit the default logic, perhaps by
         * replacing it with a routine that is more optimal for your setup.
         *
         * Passing a non-null value to the filter will effectively short-circuit retrieval,
         * returning the passed value instead.
         *
         * @since 4.5.3
         *
         * @param null|string $result The UNSANITIZED (and potentially unsafe) HTML that should be used to embed. Default null.
         * @param string      $url    The URL to the content that should be attempted to be embedded.
         * @param array       $args   Optional. Arguments, usually passed from a shortcode. Default empty.
         */
        $pre = apply_filters( 'pre_oembed_result', null, $url, $args );
 
        if ( null !== $pre ) {
            return $pre;
        }
 
        $data = $this->get_data( $url, $args );
 
        if ( false === $data ) {
            return false;
        }
 
        /**
         * Filters the HTML returned by the oEmbed provider.
         *
         * @since 2.9.0
         *
         * @param string|false $data The returned oEmbed HTML (false if unsafe).
         * @param string       $url  URL of the content to be embedded.
         * @param array        $args Optional arguments, usually passed from a shortcode.
         */
        return apply_filters( 'oembed_result', $this->data2html( $data, $url ), $url, $args );
    }
 
    /**
     * Attempts to discover link tags at the given URL for an oEmbed provider.
     *
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
embed.php
     * @param string $url  The URL that should be embedded.
     */
    return apply_filters( 'embed_defaults', compact( 'width', 'height' ), $url );
}
 
/**
 * Attempts to fetch the embed HTML for a provided URL using oEmbed.
 *
 * @since 2.9.0
 *
 * @see WP_oEmbed
 *
 * @param string $url  The URL that should be embedded.
 * @param array  $args Optional. Additional arguments and parameters for retrieving embed HTML.
 *                     Default empty.
 * @return false|string False on failure or the embed HTML on success.
 */
function wp_oembed_get( $url, $args = '' ) {
    $oembed = _wp_oembed_get_object();
    return $oembed->get_html( $url, $args );
}
 
/**
 * Returns the initialized WP_oEmbed object.
 *
 * @since 2.9.0
 * @access private
 *
 * @staticvar WP_oEmbed $wp_oembed
 *
 * @return WP_oEmbed object.
 */
function _wp_oembed_get_object() {
    static $wp_oembed = null;
 
    if ( is_null( $wp_oembed ) ) {
        $wp_oembed = new WP_oEmbed();
    }
    return $wp_oembed;
}
/
home
/
cyberdodo
/
public_html
/
storage
/
views
/
cf3e5201828715443977af7d4dd85b8079e5a5e7.php
        <div class="container">
            <div class="top-section-info">
                <div class="breadcrumbs">
                    <ul>
                        <li><a href="<?php echo e(home_url()); ?>"><?=__('Home', 'themosis')?></a><span class="breadcrumbs-separator"></span></li>
                        <li><a href="<?php echo e(get_permalink(get_page_by_title('Bonus'))); ?>"><?=__('Bonus', 'themosis')?></a><span class="breadcrumbs-separator"></span></li>
                        <li><a href="<?php echo e(get_permalink(get_page_by_title(__('Videos', 'themosis')))); ?>"><?=__('Videos', 'themosis')?></a><span class="breadcrumbs-separator"></span></li>
 
                        <li><?php echo get_the_title(); ?></li>
                    </ul>
                </div><!--/.breadcrumbs-->
                <?php echo $__env->make('components/singular_bonus_breadcrumbs', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
            </div>
            <div class="video-container-inner-details col-md-7">
                <div class="video-item-container-details">
                    <?php if(str_contains(get_the_excerpt(), 'iframe')): ?>
                        <?php echo get_the_excerpt(); ?>
 
                    <?php else: ?>
                        <?php echo wp_oembed_get($content->url ? $content->url : $content->guid); ?>
 
                    <?php endif; ?>
                </div>
                <div class="video-description bonus-video-description">
                    <h1 class="video-title"><?php echo get_the_title(); ?></h1>
                    <div class="video-description-row">
                        <p class="views"><?=__('Views :', 'themosis')?> <?php echo e(get_post_meta($content->ID, 'view_count', true)); ?></p>
                        <!-- AddThis Button BEGIN -->
                        <span class=" video-description-share">
                            <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
                                <a class="addthis_button_compact"><?=__('Share', 'themosis')?></a>
                            </div>
                                <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
                                <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5377623e60e0adf6"></script>
                        </span>
                        <!-- AddThis Button END -->
                        <a data-favorite-id="<?=get_the_ID()?>"><?=__('Add to favorites', 'themosis')?></a>
                        <p class="rating"><?=__('Rating :', 'themosis')?></p>
                        <?php
                            $rate = \Theme\Models\CdUseraction::where('action_type', 'vote')->where('related_entity_id', $content->ID)
/
home
/
cyberdodo
/
public_html
/
vendor
/
illuminate
/
view
/
Engines
/
PhpEngine.php
    /**
     * Get the evaluated contents of the view at the given path.
     *
     * @param  string  $__path
     * @param  array   $__data
     * @return string
     */
    protected function evaluatePath($__path, $__data)
    {
        $obLevel = ob_get_level();
 
        ob_start();
 
        extract($__data, EXTR_SKIP);
 
        // We'll evaluate the contents of the view inside a try/catch block so we can
        // flush out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        try {
            include $__path;
        } catch (Exception $e) {
            $this->handleViewException($e, $obLevel);
        } catch (Throwable $e) {
            $this->handleViewException(new FatalThrowableError($e), $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Exception  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Exception
     */
    protected function handleViewException(Exception $e, $obLevel)
    {
/
home
/
cyberdodo
/
public_html
/
vendor
/
illuminate
/
view
/
Engines
/
CompilerEngine.php
     * @param  array   $data
     * @return string
     */
    public function get($path, array $data = [])
    {
        $this->lastCompiled[] = $path;
 
        // If this given view has expired, which means it has simply been edited since
        // it was last compiled, we will re-compile the views so we can evaluate a
        // fresh copy of the view. We'll pass the compiler the path of the view.
        if ($this->compiler->isExpired($path)) {
            $this->compiler->compile($path);
        }
 
        $compiled = $this->compiler->getCompiledPath($path);
 
        // Once we have the path to the compiled file, we will evaluate the paths with
        // typical PHP just like any other templates. We also keep a stack of views
        // which have been rendered for right exception messages to be generated.
        $results = $this->evaluatePath($compiled, $data);
 
        array_pop($this->lastCompiled);
 
        return $results;
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Exception  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Exception
     */
    protected function handleViewException(Exception $e, $obLevel)
    {
        $e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
 
        parent::handleViewException($e, $obLevel);
/
home
/
cyberdodo
/
public_html
/
vendor
/
illuminate
/
view
/
View.php
        $this->factory->callComposer($this);
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
     * Get the data bound to the view instance.
     *
     * @return array
     */
    protected function gatherData()
    {
        $data = array_merge($this->factory->getShared(), $this->data);
 
        foreach ($data as $key => $value) {
            if ($value instanceof Renderable) {
                $data[$key] = $value->render();
            }
        }
 
        return $data;
    }
 
/
home
/
cyberdodo
/
public_html
/
vendor
/
illuminate
/
view
/
View.php
 
            throw $e;
        }
    }
 
    /**
     * Get the contents of the view instance.
     *
     * @return string
     */
    protected function renderContents()
    {
        // We will keep track of the amount of views being rendered so we can flush
        // the section after the complete rendering operation is done. This will
        // clear out the sections for any separate views that may be rendered.
        $this->factory->incrementRender();
 
        $this->factory->callComposer($this);
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
/
home
/
cyberdodo
/
public_html
/
vendor
/
illuminate
/
view
/
View.php
        $this->view = $view;
        $this->path = $path;
        $this->engine = $engine;
        $this->factory = $factory;
 
        $this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
    }
 
    /**
     * Get the string contents of the view.
     *
     * @param  callable|null  $callback
     * @return string
     *
     * @throws \Throwable
     */
    public function render(callable $callback = null)
    {
        try {
            $contents = $this->renderContents();
 
            $response = isset($callback) ? call_user_func($callback, $this, $contents) : null;
 
            // Once we have the contents of the view, we will flush the sections if we are
            // done rendering all views so that there is nothing left hanging over when
            // another view gets rendered in the future by the application developer.
            $this->factory->flushStateIfDoneRendering();
 
            return ! is_null($response) ? $response : $contents;
        } catch (Exception $e) {
            $this->factory->flushState();
 
            throw $e;
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
/
home
/
cyberdodo
/
public_html
/
htdocs
/
content
/
mu-plugins
/
themosis-framework
/
src
/
Themosis
/
helpers.php
 
if (!function_exists('view')) {
    /**
     * Helper function to build views.
     *
     * @param string $view      The view relative path, name.
     * @param array  $data      Passed data.
     * @param array  $mergeData
     *
     * @return string
     */
    function view($view = null, array $data = [], array $mergeData = [])
    {
        $factory = container('view');
 
        if (func_num_args() === 0) {
            return $factory;
        }
 
        return $factory->make($view, $data, $mergeData)->render();
    }
}
 
if (!function_exists('meta')) {
    /**
     * Helper function to get any meta data from objects.
     *
     * @param string $key
     * @param int    $id
     * @param string $context
     * @param bool   $single
     *
     * @return mixed|string
     */
    function meta($key = '', $id = null, $context = 'post', $single = true)
    {
        if (is_null($id)) {
            $id = get_the_ID();
        }
 
/
home
/
cyberdodo
/
public_html
/
htdocs
/
content
/
themes
/
18
/
resources
/
controllers
/
SingularController.php
        $view = 'singular';
 
        if (in_array($content->post_type, ['game', 'news', 'video', 'topflop', 'partner', 'quiz', 'ecard', 'folder', 'cartoon'])) {
            $view = 'singular-' . $content->post_type;
        }
 
        if ($content->template) {
            $view = $content->template;
        }
 
        if (in_array($content->post_type, ['page']) ) {
            $view = 'page';
            if (get_page_template_slug()) {
                $view = 'page/' . get_page_template_slug();
            }
        }
 
        return view($view, [
            'content' => $content,
            'page'    => get_post()
        ]);
    }
 
    protected function prepare_game(\WP_Post $content)
    {
        $attachment = get_post(get_post_meta($content->ID, 'file', true));
        $file       = get_attached_file($attachment->ID);
 
        if (strpos($file, '.zip') !== false) {
            $filename = pathinfo($file, PATHINFO_FILENAME);
            $folder = WP_CONTENT_DIR . '/uploads/html5_games/' . $filename;
            if (!file_exists($folder)) {
                //die( WP_CONTENT_DIR . '/uploads/games/html5_games/' . $filename);
                mkdir($folder, 0777, true);
                require_once(ABSPATH . 'wp-admin/includes/file.php');
                WP_Filesystem();
                unzip_file(WP_CONTENT_DIR . '/uploads/games/' . $filename . '.zip', $folder);
            }
 
            if (file_exists($folder . '/index.html')) {
/
home
/
cyberdodo
/
public_html
/
vendor
/
illuminate
/
routing
/
Controller.php
    /**
     * Get the middleware assigned to the controller.
     *
     * @return array
     */
    public function getMiddleware()
    {
        return $this->middleware;
    }
 
    /**
     * Execute an action on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function callAction($method, $parameters)
    {
        return call_user_func_array([$this, $method], $parameters);
    }
 
    /**
     * Handle calls to missing methods on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return mixed
     *
     * @throws \BadMethodCallException
     */
    public function __call($method, $parameters)
    {
        throw new BadMethodCallException(sprintf(
            'Method %s::%s does not exist.', static::class, $method
        ));
    }
}
 
/
home
/
cyberdodo
/
public_html
/
vendor
/
illuminate
/
routing
/
Controller.php
    /**
     * Get the middleware assigned to the controller.
     *
     * @return array
     */
    public function getMiddleware()
    {
        return $this->middleware;
    }
 
    /**
     * Execute an action on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function callAction($method, $parameters)
    {
        return call_user_func_array([$this, $method], $parameters);
    }
 
    /**
     * Handle calls to missing methods on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return mixed
     *
     * @throws \BadMethodCallException
     */
    public function __call($method, $parameters)
    {
        throw new BadMethodCallException(sprintf(
            'Method %s::%s does not exist.', static::class, $method
        ));
    }
}
 
/
home
/
cyberdodo
/
public_html
/
vendor
/
illuminate
/
routing
/
ControllerDispatcher.php
    {
        $this->container = $container;
    }
 
    /**
     * Dispatch a request to a given controller and method.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  mixed  $controller
     * @param  string  $method
     * @return mixed
     */
    public function dispatch(Route $route, $controller, $method)
    {
        $parameters = $this->resolveClassMethodDependencies(
            $route->parametersWithoutNulls(), $controller, $method
        );
 
        if (method_exists($controller, 'callAction')) {
            return $controller->callAction($method, $parameters);
        }
 
        return $controller->{$method}(...array_values($parameters));
    }
 
    /**
     * Get the middleware for the controller instance.
     *
     * @param  \Illuminate\Routing\Controller  $controller
     * @param  string  $method
     * @return array
     */
    public function getMiddleware($controller, $method)
    {
        if (! method_exists($controller, 'getMiddleware')) {
            return [];
        }
 
        return collect($controller->getMiddleware())->reject(function ($data) use ($method) {
            return static::methodExcludedByOptions($method, $data['options']);
/
home
/
cyberdodo
/
public_html
/
vendor
/
illuminate
/
routing
/
Route.php
    protected function runCallable()
    {
        $callable = $this->action['uses'];
 
        return $callable(...array_values($this->resolveMethodDependencies(
            $this->parametersWithoutNulls(), new ReflectionFunction($this->action['uses'])
        )));
    }
 
    /**
     * Run the route action and return the response.
     *
     * @return mixed
     *
     * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
     */
    protected function runController()
    {
        return $this->controllerDispatcher()->dispatch(
            $this, $this->getController(), $this->getControllerMethod()
        );
    }
 
    /**
     * Get the controller instance for the route.
     *
     * @return mixed
     */
    public function getController()
    {
        if (! $this->controller) {
            $class = $this->parseControllerCallback()[0];
 
            $this->controller = $this->container->make(ltrim($class, '\\'));
        }
 
        return $this->controller;
    }
 
    /**
/
home
/
cyberdodo
/
public_html
/
vendor
/
illuminate
/
routing
/
Route.php
     *
     * @throws \UnexpectedValueException
     */
    protected function parseAction($action)
    {
        return RouteAction::parse($this->uri, $action);
    }
 
    /**
     * Run the route action and return the response.
     *
     * @return mixed
     */
    public function run()
    {
        $this->container = $this->container ?: new Container;
 
        try {
            if ($this->isControllerAction()) {
                return $this->runController();
            }
 
            return $this->runCallable();
        } catch (HttpResponseException $e) {
            return $e->getResponse();
        }
    }
 
    /**
     * Checks whether the route's action is a controller.
     *
     * @return bool
     */
    protected function isControllerAction()
    {
        return is_string($this->action['uses']);
    }
 
    /**
     * Run the route action and return the response.
/
home
/
cyberdodo
/
public_html
/
vendor
/
illuminate
/
routing
/
Router.php
    /**
     * Run the given route within a Stack "onion" instance.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
                        ->then(function ($request) use ($route) {
                            return $this->prepareResponse(
                                $request, $route->run()
                            );
                        });
    }
 
    /**
     * Gather the middleware for the given route with resolved class names.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return array
     */
    public function gatherRouteMiddleware(Route $route)
    {
        $middleware = collect($route->gatherMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten();
 
        return $this->sortMiddleware($middleware);
    }
 
    /**
/
home
/
cyberdodo
/
public_html
/
vendor
/
illuminate
/
routing
/
Pipeline.php
use Symfony\Component\Debug\Exception\FatalThrowableError;
 
/**
 * This extended pipeline catches any exceptions that occur during each slice.
 *
 * The exceptions are converted to HTTP responses for proper middleware handling.
 */
class Pipeline extends BasePipeline
{
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            try {
                return $destination($passable);
            } catch (Exception $e) {
                return $this->handleException($passable, $e);
            } catch (Throwable $e) {
                return $this->handleException($passable, new FatalThrowableError($e));
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    $slice = parent::carry();
 
/
home
/
cyberdodo
/
public_html
/
vendor
/
illuminate
/
pipeline
/
Pipeline.php
    public function via($method)
    {
        $this->method = $method;
 
        return $this;
    }
 
    /**
     * Run the pipeline with a final destination callback.
     *
     * @param  \Closure  $destination
     * @return mixed
     */
    public function then(Closure $destination)
    {
        $pipeline = array_reduce(
            array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
        );
 
        return $pipeline($this->passable);
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            return $destination($passable);
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
/
home
/
cyberdodo
/
public_html
/
vendor
/
illuminate
/
routing
/
Router.php
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
                        ->then(function ($request) use ($route) {
                            return $this->prepareResponse(
                                $request, $route->run()
                            );
                        });
    }
 
    /**
     * Gather the middleware for the given route with resolved class names.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @return array
     */
    public function gatherRouteMiddleware(Route $route)
    {
        $middleware = collect($route->gatherMiddleware())->map(function ($name) {
            return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
        })->flatten();
 
        return $this->sortMiddleware($middleware);
    }
 
    /**
     * Sort the given middleware by priority.
     *
/
home
/
cyberdodo
/
public_html
/
vendor
/
illuminate
/
routing
/
Router.php
        return $route;
    }
 
    /**
     * Return the response for the given route.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Illuminate\Routing\Route  $route
     * @return mixed
     */
    protected function runRoute(Request $request, Route $route)
    {
        $request->setRouteResolver(function () use ($route) {
            return $route;
        });
 
        $this->events->dispatch(new Events\RouteMatched($route, $request));
 
        return $this->prepareResponse($request,
            $this->runRouteWithinStack($route, $request)
        );
    }
 
    /**
     * Run the given route within a Stack "onion" instance.
     *
     * @param  \Illuminate\Routing\Route  $route
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    protected function runRouteWithinStack(Route $route, Request $request)
    {
        $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
                                $this->container->make('middleware.disable') === true;
 
        $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
 
        return (new Pipeline($this->container))
                        ->send($request)
                        ->through($middleware)
/
home
/
cyberdodo
/
public_html
/
vendor
/
illuminate
/
routing
/
Router.php
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
     */
    public function dispatch(Request $request)
    {
        $this->currentRequest = $request;
 
        return $this->dispatchToRoute($request);
    }
 
    /**
     * Dispatch the request to a route and return the response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    public function dispatchToRoute(Request $request)
    {
        return $this->runRoute($request, $this->findRoute($request));
    }
 
    /**
     * Find the route matching a given request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Routing\Route
     */
    protected function findRoute($request)
    {
        $this->current = $route = $this->routes->match($request);
 
        $this->container->instance(Route::class, $route);
 
        return $route;
    }
 
    /**
     * Return the response for the given route.
     *
/
home
/
cyberdodo
/
public_html
/
vendor
/
illuminate
/
routing
/
Router.php
     * @return mixed
     */
    public function respondWithRoute($name)
    {
        $route = tap($this->routes->getByName($name))->bind($this->currentRequest);
 
        return $this->runRoute($this->currentRequest, $route);
    }
 
    /**
     * Dispatch the request to the application.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
     */
    public function dispatch(Request $request)
    {
        $this->currentRequest = $request;
 
        return $this->dispatchToRoute($request);
    }
 
    /**
     * Dispatch the request to a route and return the response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return mixed
     */
    public function dispatchToRoute(Request $request)
    {
        return $this->runRoute($request, $this->findRoute($request));
    }
 
    /**
     * Find the route matching a given request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Routing\Route
     */
    protected function findRoute($request)
/
home
/
cyberdodo
/
public_html
/
htdocs
/
content
/
mu-plugins
/
themosis-framework
/
themosis.php
             * Register framework assets.
             */
            $this->container['asset']->add('themosis-core-styles', 'css/_themosisCore.css', ['wp-color-picker'])->to('admin');
            $this->container['asset']->add('themosis-core-scripts', 'js/_themosisCore.js', ['jquery', 'jquery-ui-sortable', 'underscore', 'backbone', 'mce-view', 'wp-color-picker'], '1.3.0', true)->to('admin');
        }
 
        /**
         * Hook into front-end routing.
         * Setup the router API to be executed before
         * theme default templates.
         */
        public function setRouter()
        {
            if (is_feed() || is_comment_feed()) {
                return;
            }
 
            try {
                $request = $this->container['request'];
                $response = $this->container['router']->dispatch($request);
 
                // We only send back the content because, headers are already defined
                // by WordPress internals.
                $response->sendContent();
            } catch (\Symfony\Component\HttpKernel\Exception\NotFoundHttpException $exception) {
                /*
                 * Fallback to WordPress templates.
                 */
            }
        }
 
        /**
         * Enqueue Admin scripts.
         */
        public function adminEnqueueScripts()
        {
            /*
             * Make sure the media scripts are always enqueued.
             */
            wp_enqueue_media();
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
class-wp-hook.php
        }
 
        $nesting_level = $this->nesting_level++;
 
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
        $num_args                           = count( $args );
 
        do {
            $this->current_priority[ $nesting_level ] = $priority = current( $this->iterations[ $nesting_level ] );
 
            foreach ( $this->callbacks[ $priority ] as $the_ ) {
                if ( ! $this->doing_action ) {
                    $args[0] = $value;
                }
 
                // Avoid the array_slice if possible.
                if ( $the_['accepted_args'] == 0 ) {
                    $value = call_user_func_array( $the_['function'], array() );
                } elseif ( $the_['accepted_args'] >= $num_args ) {
                    $value = call_user_func_array( $the_['function'], $args );
                } else {
                    $value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
                }
            }
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Executes the callback functions hooked on a specific action hook.
     *
     * @since 4.7.0
     *
     * @param mixed $args Arguments to pass to the hook callbacks.
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
class-wp-hook.php
        } while ( false !== next( $this->iterations[ $nesting_level ] ) );
 
        unset( $this->iterations[ $nesting_level ] );
        unset( $this->current_priority[ $nesting_level ] );
 
        $this->nesting_level--;
 
        return $value;
    }
 
    /**
     * Executes the callback functions hooked on a specific action hook.
     *
     * @since 4.7.0
     *
     * @param mixed $args Arguments to pass to the hook callbacks.
     */
    public function do_action( $args ) {
        $this->doing_action = true;
        $this->apply_filters( '', $args );
 
        // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
        if ( ! $this->nesting_level ) {
            $this->doing_action = false;
        }
    }
 
    /**
     * Processes the functions hooked into the 'all' hook.
     *
     * @since 4.7.0
     *
     * @param array $args Arguments to pass to the hook callbacks. Passed by reference.
     */
    public function do_all_hook( &$args ) {
        $nesting_level                      = $this->nesting_level++;
        $this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
 
        do {
            $priority = current( $this->iterations[ $nesting_level ] );
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
plugin.php
            array_pop( $wp_current_filter );
        }
        return;
    }
 
    if ( ! isset( $wp_filter['all'] ) ) {
        $wp_current_filter[] = $tag;
    }
 
    $args = array();
    if ( is_array( $arg ) && 1 == count( $arg ) && isset( $arg[0] ) && is_object( $arg[0] ) ) { // array(&$this)
        $args[] =& $arg[0];
    } else {
        $args[] = $arg;
    }
    for ( $a = 2, $num = func_num_args(); $a < $num; $a++ ) {
        $args[] = func_get_arg( $a );
    }
 
    $wp_filter[ $tag ]->do_action( $args );
 
    array_pop( $wp_current_filter );
}
 
/**
 * Retrieve the number of times an action is fired.
 *
 * @since 2.1.0
 *
 * @global array $wp_actions Increments the amount of times action was triggered.
 *
 * @param string $tag The name of the action hook.
 * @return int The number of times action hook $tag is fired.
 */
function did_action( $tag ) {
    global $wp_actions;
 
    if ( ! isset( $wp_actions[ $tag ] ) ) {
        return 0;
    }
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-includes
/
template-loader.php
<?php
/**
 * Loads the correct template based on the visitor's url
 *
 * @package WordPress
 */
if ( wp_using_themes() ) {
    /**
     * Fires before determining which template to load.
     *
     * @since 1.5.0
     */
    do_action( 'template_redirect' );
}
 
/**
 * Filters whether to allow 'HEAD' requests to generate content.
 *
 * Provides a significant performance bump by exiting before the page
 * content loads for 'HEAD' requests. See #14348.
 *
 * @since 3.5.0
 *
 * @param bool $exit Whether to exit without generating any content for 'HEAD' requests. Default true.
 */
if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) ) {
    exit();
}
 
// Process feeds and trackbacks even if not using themes.
if ( is_robots() ) :
    /**
     * Fired when the template loader determines a robots.txt request.
     *
     * @since 2.1.0
     */
    do_action( 'do_robots' );
    return;
elseif ( is_feed() ) :
    do_feed();
/
home
/
cyberdodo
/
public_html
/
htdocs
/
cms
/
wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once( dirname( __FILE__ ) . '/wp-load.php' );
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once( ABSPATH . WPINC . '/template-loader.php' );
 
}
 
/
home
/
cyberdodo
/
public_html
/
htdocs
/
index.php
<?php
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);
 
/** Loads the WordPress Environment and Template */
require dirname(__FILE__).'/cms/wp-blog-header.php';
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache/2.4.29
REQUEST_URI /en/video/susan-boyle-a-new-great-singer/
PHPRC /home/cyberdodo/fcgi-bin/../etc/php7.3
PWD /home/cyberdodo/fcgi-bin
PHP_FCGI_MAX_REQUESTS 99999
SHLVL 0
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
CONTENT_LENGTH 0
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /en/video/susan-boyle-a-new-great-singer/
REMOTE_PORT 47464
SCRIPT_FILENAME /home/cyberdodo/public_html/htdocs/index.php
SERVER_ADMIN [no address given]
CONTEXT_DOCUMENT_ROOT /home/cyberdodo/public_html/htdocs
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /home/cyberdodo/public_html/htdocs
REMOTE_ADDR 3.226.122.74
SERVER_PORT 80
SERVER_ADDR 94.23.8.213
SERVER_NAME cyberdodo.com
SERVER_SIGNATURE
HTTP_CONNECTION close
HTTP_HOST cyberdodo.com
HTTP_ACCEPT_ENCODING br,gzip
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
SCRIPT_URI http://cyberdodo.com/en/video/susan-boyle-a-new-great-singer/
SCRIPT_URL /en/video/susan-boyle-a-new-great-singer/
REDIRECT_STATUS 200
REDIRECT_SCRIPT_URI http://cyberdodo.com/en/video/susan-boyle-a-new-great-singer/
REDIRECT_SCRIPT_URL /en/video/susan-boyle-a-new-great-singer/
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1582776186.0723
REQUEST_TIME 1582776186
DB_NAME cyberdodo_main
DB_USER cyberdodo
DB_PASSWORD JvZxRWK28e2I
DB_HOST localhost
WP_HOME http://cyberdodo.com
WP_SITEURL http://cyberdodo.com/cms
Key Value
DB_NAME cyberdodo_main
DB_USER cyberdodo
DB_PASSWORD JvZxRWK28e2I
DB_HOST localhost
WP_HOME http://cyberdodo.com
WP_SITEURL http://cyberdodo.com/cms
0. Whoops\Handler\PrettyPageHandler