<?php
get_header();
$url = get_field('exhibitor_api_url', 'option');
$request = wp_remote_get( $url );
if( is_wp_error( $request ) ) {
return false;
}
$body = wp_remote_retrieve_body( $request );
$data = json_decode( $body );
$array = $data[0]->responses;
$url = $_SERVER['REQUEST_URI'];
$url_components = parse_url($url);
parse_str($url_components['query'], $params);
$like = $params['id'];
$result = array_filter($array, function ($item) use ($like) {
if (stripos($item->exhibitor->id, $like) !== false) {
return true;
}
return false;
});
$exhibitor = current($result);
?><script>console.log('Json Body', <?php echo json_encode($exhibitor) ?>)</script><?php
"Cannot use object of type stdClass as array"
}
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;
}
<?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';
}
"/home/airspace-world/webapps/airspace-world/web/wp/wp-includes/template-loader.php"
<?php
/**
* WordPress View Bootstrapper
*/
define('WP_USE_THEMES', true);
require __DIR__ . '/wp/wp-blog-header.php';
"/home/airspace-world/webapps/airspace-world/web/wp/wp-blog-header.php"
| Key | Value |
| SERVER_SOFTWARE | "Apache/2.4.65 (Unix) OpenSSL/3.0.2"
|
| REQUEST_URI | "/exhibitor/"
|
| USER | "airspace-world"
|
| HOME | "/home/airspace-world"
|
| SCRIPT_NAME | "/index.php"
|
| QUERY_STRING | "" |
| REQUEST_METHOD | "GET"
|
| SERVER_PROTOCOL | "HTTP/1.0"
|
| GATEWAY_INTERFACE | "CGI/1.1"
|
| REDIRECT_URL | "/exhibitor/"
|
| REMOTE_PORT | "37260"
|
| SCRIPT_FILENAME | "/home/airspace-world/webapps/airspace-world/web/index.php"
|
| SERVER_ADMIN | "you@example.com"
|
| CONTEXT_DOCUMENT_ROOT | "/home/airspace-world/webapps/airspace-world/web/"
|
| CONTEXT_PREFIX | "" |
| REQUEST_SCHEME | "http"
|
| DOCUMENT_ROOT | "/home/airspace-world/webapps/airspace-world/web/"
|
| REMOTE_ADDR | "18.97.14.82"
|
| SERVER_PORT | "80"
|
| SERVER_ADDR | "127.0.0.1"
|
| SERVER_NAME | "asw24.srgry.com"
|
| SERVER_SIGNATURE | "" |
| LD_LIBRARY_PATH | "/RunCloud/Packages/apache2-rc/lib"
|
| PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
|
| 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/)"
|
| HTTP_CONNECTION | "close"
|
| HTTP_X_FORWARDED_PROTO | "https"
|
| HTTP_X_FORWARDED_FOR | "18.97.14.82"
|
| HTTP_X_SERVER_ADDR | "164.92.216.228"
|
| HTTP_HOST | "asw24.srgry.com"
|
| HTTP_AUTHORIZATION | "" |
| HTTPS | "on"
|
| REDIRECT_STATUS | "200"
|
| REDIRECT_HTTP_AUTHORIZATION | "" |
| REDIRECT_HTTPS | "on"
|
| FCGI_ROLE | "RESPONDER"
|
| PHP_SELF | "/index.php"
|
| REQUEST_TIME_FLOAT | 1762935047.4889
|
| REQUEST_TIME | 1762935047
|
| DB_NAME | "airspace_db"
|
| DB_USER | "airspace_user"
|
| DB_PASSWORD | "f6khXm6VMr5az9"
|
| WP_ENV | "production"
|
| WP_HOME | "https://asw24.srgry.com"
|
| WP_SITEURL | "https://asw24.srgry.com/wp"
|
| AUTH_KEY | "generateme"
|
| SECURE_AUTH_KEY | "generateme"
|
| LOGGED_IN_KEY | "generateme"
|
| NONCE_KEY | "generateme"
|
| AUTH_SALT | "generateme"
|
| SECURE_AUTH_SALT | "generateme"
|
| LOGGED_IN_SALT | "generateme"
|
| NONCE_SALT | "generateme"
|
| Key | Value |
| DB_NAME | "airspace_db"
|
| DB_USER | "airspace_user"
|
| DB_PASSWORD | "f6khXm6VMr5az9"
|
| WP_ENV | "production"
|
| WP_HOME | "https://asw24.srgry.com"
|
| WP_SITEURL | "https://asw24.srgry.com/wp"
|
| AUTH_KEY | "generateme"
|
| SECURE_AUTH_KEY | "generateme"
|
| LOGGED_IN_KEY | "generateme"
|
| NONCE_KEY | "generateme"
|
| AUTH_SALT | "generateme"
|
| SECURE_AUTH_SALT | "generateme"
|
| LOGGED_IN_SALT | "generateme"
|
| NONCE_SALT | "generateme"
|