return $this->map[$name];
}
/**
* @param string $name
* @return bool
*/
public function exists($name)
{
return file_exists($this->getPathByName($name));
}
/**
* @param string $name
* @return mixed
*/
public function perform($name)
{
if (!$this->exists($name)) {
throw new ActionNotFoundException("Action '{$name}' doesn't exists");
}
$path = $this->getPathByName($name);
return include $path;
}
/**
* @param string $name
*/
public function run($name)
{
$response = $this->perform($name);
if ($response === null) {
return;
}
if ($response instanceof Responsable) {
$response = $response->toResponse(app()->provide('request'));
} elseif ($response instanceof Htmlable) {
$response = new Response($response->toHtml());
"Action 'site.blog.posts' doesn't exists"
/**
* @param string $name
* @return mixed
*/
public function perform($name)
{
if (!$this->exists($name)) {
throw new ActionNotFoundException("Action '{$name}' doesn't exists");
}
$path = $this->getPathByName($name);
return include $path;
}
/**
* @param string $name
*/
public function run($name)
{
$response = $this->perform($name);
if ($response === null) {
return;
}
if ($response instanceof Responsable) {
$response = $response->toResponse(app()->provide('request'));
} elseif ($response instanceof Htmlable) {
$response = new Response($response->toHtml());
$response->headers->set('content-type', 'text/html');
} elseif (is_string($response) || is_int($response) || is_float($response)) {
$response = new Response(strval($response));
$response->headers->set('content-type', 'text/html');
} elseif (!($response instanceof Response) && (is_array($response) || is_object($response))) {
$response = json_encode($response, JSON_UNESCAPED_UNICODE);
$response = new Response($response);
$response->headers->set('content-type', 'application/json');
}
if (!($response instanceof Response)) {
"site.blog.posts"
<?php
function action($name)
{
app()->provide('actions')->run($name);
}
"site.blog.posts"
<?php
action('site.blog.posts');
"site.blog.posts"
}
break;
}
}
if ( ! $template ) {
$template = get_index_template();
}
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
"/var/www/u0064973/data/www/salusmed.ru/public/wp-content/themes/site/archive.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 __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
"/var/www/u0064973/data/www/salusmed.ru/public/wp-includes/template-loader.php"
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
"/var/www/u0064973/data/www/salusmed.ru/public/wp-blog-header.php"
Key | Value |
SERVER_SOFTWARE | "Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 Phusion_Passenger/6.0.22"
|
REQUEST_URI | "/author/adminsalusmedru/"
|
PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
|
SCRIPT_NAME | "/index.php"
|
QUERY_STRING | "" |
REQUEST_METHOD | "GET"
|
SERVER_PROTOCOL | "HTTP/1.0"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
REDIRECT_URL | "/author/adminsalusmedru/"
|
REMOTE_PORT | "48946"
|
SCRIPT_FILENAME | "/var/www/u0064973/data/www/salusmed.ru/public/index.php"
|
SERVER_ADMIN | "webmaster@salusmed.ru"
|
CONTEXT_DOCUMENT_ROOT | "/var/www/u0064973/data/www/salusmed.ru/public"
|
CONTEXT_PREFIX | "" |
DOCUMENT_ROOT | "/var/www/u0064973/data/www/salusmed.ru/public"
|
REMOTE_ADDR | "18.97.14.90"
|
SERVER_PORT | "443"
|
SERVER_ADDR | "127.0.0.1"
|
SERVER_NAME | "salusmed.ru"
|
SERVER_SIGNATURE | "" |
HTTP_ACCEPT_ENCODING | "br,gzip"
|
HTTP_IF_MODIFIED_SINCE | "Thu, 12 Sep 2024 16:55:59 GMT"
|
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/)"
|
HTTP_CONNECTION | "close"
|
HTTP_X_FORWARDED_PORT | "443"
|
HTTP_X_FORWARDED_PROTO | "https"
|
HTTP_HOST | "salusmed.ru"
|
HTTP_AUTHORIZATION | "" |
PERL5LIB | "/usr/share/awstats/lib:/usr/share/awstats/plugins"
|
REQUEST_SCHEME | "https"
|
HTTPS | "on"
|
UNIQUE_ID | "Z0yqaOFVudaqfEkDPQFyPAAAAAY"
|
REDIRECT_STATUS | "200"
|
REDIRECT_HTTP_AUTHORIZATION | "" |
REDIRECT_PERL5LIB | "/usr/share/awstats/lib:/usr/share/awstats/plugins"
|
REDIRECT_REQUEST_SCHEME | "https"
|
REDIRECT_HTTPS | "on"
|
REDIRECT_UNIQUE_ID | "Z0yqaOFVudaqfEkDPQFyPAAAAAY"
|
FCGI_ROLE | "RESPONDER"
|
PHP_SELF | "/index.php"
|
REQUEST_TIME_FLOAT | 1733077608.368
|
REQUEST_TIME | 1733077608
|
argv | [] |
argc | 0
|
Key | Value |
PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
|
SCRIPT_NAME | "/index.php"
|
REQUEST_URI | "/author/adminsalusmedru/"
|
QUERY_STRING | "" |
REQUEST_METHOD | "GET"
|
SERVER_PROTOCOL | "HTTP/1.0"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
REDIRECT_URL | "/author/adminsalusmedru/"
|
REMOTE_PORT | "48946"
|
SCRIPT_FILENAME | "/var/www/u0064973/data/www/salusmed.ru/public/index.php"
|
SERVER_ADMIN | "webmaster@salusmed.ru"
|
CONTEXT_DOCUMENT_ROOT | "/var/www/u0064973/data/www/salusmed.ru/public"
|
CONTEXT_PREFIX | "" |
DOCUMENT_ROOT | "/var/www/u0064973/data/www/salusmed.ru/public"
|
REMOTE_ADDR | "18.97.14.90"
|
SERVER_PORT | "443"
|
SERVER_ADDR | "127.0.0.1"
|
SERVER_NAME | "salusmed.ru"
|
SERVER_SOFTWARE | "Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 Phusion_Passenger/6.0.22"
|
SERVER_SIGNATURE | "" |
HTTP_ACCEPT_ENCODING | "br,gzip"
|
HTTP_IF_MODIFIED_SINCE | "Thu, 12 Sep 2024 16:55:59 GMT"
|
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/)"
|
HTTP_CONNECTION | "close"
|
HTTP_X_FORWARDED_PORT | "443"
|
HTTP_X_FORWARDED_PROTO | "https"
|
HTTP_HOST | "salusmed.ru"
|
HTTP_AUTHORIZATION | "" |
PERL5LIB | "/usr/share/awstats/lib:/usr/share/awstats/plugins"
|
REQUEST_SCHEME | "https"
|
HTTPS | "on"
|
UNIQUE_ID | "Z0yqaOFVudaqfEkDPQFyPAAAAAY"
|
REDIRECT_STATUS | "200"
|
REDIRECT_HTTP_AUTHORIZATION | "" |
REDIRECT_PERL5LIB | "/usr/share/awstats/lib:/usr/share/awstats/plugins"
|
REDIRECT_REQUEST_SCHEME | "https"
|
REDIRECT_HTTPS | "on"
|
REDIRECT_UNIQUE_ID | "Z0yqaOFVudaqfEkDPQFyPAAAAAY"
|
FCGI_ROLE | "RESPONDER"
|