/home
/u509076059
/domains
/autotradedirect.ie
/public_html
/wp-content
/plugins
/api-easierad
/api-easierad.php
if (!empty($api_id) && strpos($url, '/vehicle/') !== false)
{
$template = plugin_dir_path(__FILE__) . 'template/single-vehicle.php';
load_template($template);
die();
}
}
public static function get_vehicle_data($id = false)
{
$result = false;
if (!empty($id) && is_int($id) && $id > 0)
{
$data = self::$data;
foreach ($data['rows'] as $vh)
{
if ((int)$vh->id == (int)$id)
{
$result = $vh;
}
}
}
return $result;
}
function current_location()
{
if (isset($_SERVER['HTTPS']) &&
($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) ||
isset($_SERVER['HTTP_X_FORWARDED_PROTO']) &&
$_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
{
Arguments
"Invalid argument supplied for foreach()"
/home
/u509076059
/domains
/autotradedirect.ie
/public_html
/wp-content
/plugins
/api-easierad
/api-easierad.php
if (!empty($api_id) && strpos($url, '/vehicle/') !== false)
{
$template = plugin_dir_path(__FILE__) . 'template/single-vehicle.php';
load_template($template);
die();
}
}
public static function get_vehicle_data($id = false)
{
$result = false;
if (!empty($id) && is_int($id) && $id > 0)
{
$data = self::$data;
foreach ($data['rows'] as $vh)
{
if ((int)$vh->id == (int)$id)
{
$result = $vh;
}
}
}
return $result;
}
function current_location()
{
if (isset($_SERVER['HTTPS']) &&
($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) ||
isset($_SERVER['HTTP_X_FORWARDED_PROTO']) &&
$_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
{
Arguments
2
"Invalid argument supplied for foreach()"
"/home/u509076059/domains/autotradedirect.ie/public_html/wp-content/plugins/api-easierad/api-easierad.php"
66
array:3 [
"id" => 25476563
"result" => false
"data" => array:4 [
"rows" => null
"total" => 0
"curr_page" => 1
"max_pages" => 1
]
]
/home
/u509076059
/domains
/autotradedirect.ie
/public_html
/wp-content
/plugins
/api-easierad
/template
/single-vehicle.php
<?php
get_header();
$sidebar_position = tfuse_sidebar_position();
tfuse_shortcode_content('top');
$api_id = (int)$_GET['aid'];
$vdata = api_easierad::get_vehicle_data($api_id);
//vdump_and_die($vdata);
?>
<div class="header header_thin"></div>
<div class="middle_row row_white breadcrumbs">
<div class="container">
<p class="">
<a href="https://autotradedirect.ie" hidefocus="true" style="outline: currentcolor none medium;" class="">Home11</a>
<span class="separator">></span>
<span class="">
<a href="https://autotradedirect.ie/?s=~&tfseekfid=main_search" hidefocus="true" style="outline: currentcolor none medium;" class="">Vehicles</a>
</span>
<span class="separator">></span>
<span class=""><?= $vdata->fields->trim; ?></span>
</p>
<a href="https://autotradedirect.ie/?s=~&tfseekfid=main_search" class="link_search" hidefocus="true" style="outline: currentcolor none medium;">Start a Car Search</a>
</div>
</div>
<div id="middle" class="full_width">
<div class="container clearfix">
<?php tfuse_category_ads();
tfuse_hook(); ?>
<div class="header_title title_before_vehicle">
<h1><?= $vdata->fields->trim; ?></h1>
</div>
<div class="offer_details clearfix">
<div class="content">
<?php load_template(plugin_dir_path(__FILE__) . 'offer-views/side-left.php'); ?>
<?php load_template(plugin_dir_path(__FILE__) . 'offer-views/side-right.php'); ?>
</div><!--/ content -->
</div>
<?php load_template(plugin_dir_path(__FILE__) . 'offer-views/details-tabs.php'); ?>
Arguments
/home
/u509076059
/domains
/autotradedirect.ie
/public_html
/wp-includes
/template.php
if ( is_array( $wp_query->query_vars ) ) {
/*
* This use of extract() cannot be removed. There are many possible ways that
* templates could depend on variables that it creates existing, and no way to
* detect and deprecate it.
*
* Passing the EXTR_SKIP flag is the safest option, ensuring globals and
* function variables cannot be overwritten.
*/
// phpcs:ignore WordPress.PHP.DontExtract.extract_extract
extract( $wp_query->query_vars, EXTR_SKIP );
}
if ( isset( $s ) ) {
$s = esc_attr( $s );
}
if ( $require_once ) {
require_once $_template_file;
} else {
require $_template_file;
}
}
Arguments
"/home/u509076059/domains/autotradedirect.ie/public_html/wp-content/plugins/api-easierad/template/single-vehicle.php"
/home
/u509076059
/domains
/autotradedirect.ie
/public_html
/wp-content
/plugins
/api-easierad
/api-easierad.php
//vdump_and_die($result);
self::$data = $result;
add_action('init', array($this, 'custom_rewrite_basic'));
}
function custom_rewrite_basic()
{
global $wp;
$api_id = (int)$_GET['aid'];
$url = $this->current_location();
if (!empty($api_id) && strpos($url, '/vehicle/') !== false)
{
$template = plugin_dir_path(__FILE__) . 'template/single-vehicle.php';
load_template($template);
die();
}
}
public static function get_vehicle_data($id = false)
{
$result = false;
if (!empty($id) && is_int($id) && $id > 0)
{
$data = self::$data;
foreach ($data['rows'] as $vh)
{
if ((int)$vh->id == (int)$id)
{
$result = $vh;
}
}
Arguments
"/home/u509076059/domains/autotradedirect.ie/public_html/wp-content/plugins/api-easierad/template/single-vehicle.php"
/home
/u509076059
/domains
/autotradedirect.ie
/public_html
/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 ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 == $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} 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;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
Arguments
/home
/u509076059
/domains
/autotradedirect.ie
/public_html
/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;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
*/
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 ] );
Arguments
/home
/u509076059
/domains
/autotradedirect.ie
/public_html
/wp-includes
/plugin.php
if ( ! isset( $wp_filter[ $tag ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $tag;
}
if ( empty( $arg ) ) {
$arg[] = '';
} elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
// Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
$arg[0] = $arg[0][0];
}
$wp_filter[ $tag ]->do_action( $arg );
array_pop( $wp_current_filter );
}
/**
* Retrieve the number of times an action is fired.
*
* @since 2.1.0
*
* @global int[] $wp_actions Stores the number of times each 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;
}
Arguments
/home
/u509076059
/domains
/autotradedirect.ie
/public_html
/wp-settings.php
if ( ! class_exists( 'WP_Site_Health' ) ) {
require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
}
WP_Site_Health::get_instance();
// Set up current user.
$GLOBALS['wp']->init();
/**
* Fires after WordPress has finished loading but before any headers are sent.
*
* Most of WP is loaded at this stage, and the user is authenticated. WP continues
* to load on the {@see 'init'} hook that follows (e.g. widgets), and many plugins instantiate
* themselves on it for all sorts of reasons (e.g. they need a user, a taxonomy, etc.).
*
* If you wish to plug an action once WP is loaded, use the {@see 'wp_loaded'} hook below.
*
* @since 1.5.0
*/
do_action( 'init' );
// Check site status.
if ( is_multisite() ) {
$file = ms_site_check();
if ( true !== $file ) {
require $file;
die();
}
unset( $file );
}
/**
* This hook is fired once WP, all plugins, and the theme are fully loaded and instantiated.
*
* Ajax requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for
* users not logged in.
*
* @link https://codex.wordpress.org/AJAX_in_Plugins
*
* @since 3.0.0
Arguments
/home
/u509076059
/domains
/autotradedirect.ie
/public_html
/wp-config.php
/**
* WordPress Database Table prefix.
*
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
*/
$table_prefix = 'wp_';
define( 'FS_METHOD', 'direct' );
/* That's all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) )
define( 'ABSPATH', dirname( __FILE__ ) . '/' );
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';
Arguments
"/home/u509076059/domains/autotradedirect.ie/public_html/wp-settings.php"
/home
/u509076059
/domains
/autotradedirect.ie
/public_html
/wp-load.php
/** Define ABSPATH as this file's directory */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/' );
}
error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
/*
* If wp-config.php exists in the WordPress root, or if it exists in the root and wp-settings.php
* doesn't, load wp-config.php. The secondary check for wp-settings.php has the added benefit
* of avoiding cases where the current directory is a nested installation, e.g. / is WordPress(a)
* and /blog/ is WordPress(b).
*
* If neither set of conditions is true, initiate loading the setup process.
*/
if ( file_exists( ABSPATH . 'wp-config.php' ) ) {
/** The config file resides in ABSPATH */
require_once ABSPATH . 'wp-config.php';
} elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) {
/** The config file resides one level above ABSPATH but is not part of another installation */
require_once dirname( ABSPATH ) . '/wp-config.php';
} else {
// A config file doesn't exist.
define( 'WPINC', 'wp-includes' );
require_once ABSPATH . WPINC . '/load.php';
// Standardize $_SERVER variables across setups.
wp_fix_server_vars();
require_once ABSPATH . WPINC . '/functions.php';
$path = wp_guess_url() . '/wp-admin/setup-config.php';
Arguments
"/home/u509076059/domains/autotradedirect.ie/public_html/wp-config.php"
/home
/u509076059
/domains
/autotradedirect.ie
/public_html
/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 __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
Arguments
"/home/u509076059/domains/autotradedirect.ie/public_html/wp-load.php"
/home
/u509076059
/domains
/autotradedirect.ie
/public_html
/index.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';
Arguments
"/home/u509076059/domains/autotradedirect.ie/public_html/wp-blog-header.php"