/nas
/content
/live
/comsol
/wp-content
/plugins
/adlogic-job-board
/lib
/classes
/jobSearch.class.php
break;
}
}
public function get($returnXML = false)
{
$aJobSearchCriteria = array(
'recruiterId' => $this->recruiterId,
'advertiserId' => $this->advertiserId,
'keyword' => $this->keyword,
'classificationsCriteria' => $this->classificationsCriteria,
'salaryType' => $this->salaryType,
'salaryMin' => $this->salaryMin,
'salaryMax' => $this->salaryMax,
'from' => $this->from,
'to' => $this->to,
'costCenterId' => $this->costCenterId,
'orgUnit' => $this->orgUnit,
'geoLocationObject' => $this->geoLocationObject,
'suburbIds' => $this->suburbIds
);
if (!adlogic_job_board::shouldUseNewAPI()) {
switch (get_class($this->oSoapClient)) {
case 'nusoap_client':
$results = $this->oSoapClient->call('searchAdsV2', array($aJobSearchCriteria));
if ($this->oSoapClient->fault) {
$this->addError($this->oSoapClient->getError());
return false;
} else {
if ($returnXML) {
return $results['return'];
} else {
// Return Results Object
if ($results['return'] == 'Not active now.') {
return $results['return'];
}
if ($this->forceUTF8Encoding) {
$resultsObject = simplexml_load_string(utf8_encode($results['return']), 'SimpleXMLElement');
} else {
/nas
/content
/live
/comsol
/wp-content
/plugins
/adlogic-job-board
/lib
/classes
/jobSearch.class.php
break;
}
}
public function get($returnXML = false)
{
$aJobSearchCriteria = array(
'recruiterId' => $this->recruiterId,
'advertiserId' => $this->advertiserId,
'keyword' => $this->keyword,
'classificationsCriteria' => $this->classificationsCriteria,
'salaryType' => $this->salaryType,
'salaryMin' => $this->salaryMin,
'salaryMax' => $this->salaryMax,
'from' => $this->from,
'to' => $this->to,
'costCenterId' => $this->costCenterId,
'orgUnit' => $this->orgUnit,
'geoLocationObject' => $this->geoLocationObject,
'suburbIds' => $this->suburbIds
);
if (!adlogic_job_board::shouldUseNewAPI()) {
switch (get_class($this->oSoapClient)) {
case 'nusoap_client':
$results = $this->oSoapClient->call('searchAdsV2', array($aJobSearchCriteria));
if ($this->oSoapClient->fault) {
$this->addError($this->oSoapClient->getError());
return false;
} else {
if ($returnXML) {
return $results['return'];
} else {
// Return Results Object
if ($results['return'] == 'Not active now.') {
return $results['return'];
}
if ($this->forceUTF8Encoding) {
$resultsObject = simplexml_load_string(utf8_encode($results['return']), 'SimpleXMLElement');
} else {
/nas
/content
/live
/comsol
/wp-content
/plugins
/adlogic-job-board
/lib
/rss.php
if ((isset($_GET['locId']) && !empty($_GET['locId']))) {
$aClassificationsCriteria[] = array($_GET['locId']);
}
// WorkType Id
if((isset($_GET['wtId']) && !empty($_GET['wtId']))) {
$aClassificationsCriteria[] = array($_GET['wtId']);
}
/* Set Variables from GET Url Vars for Jobs Class*/
$oJobSearch->set('keyword', $keyword);
$oJobSearch->set('classificationsCriteria', $aClassificationsCriteria);
$oJobSearch->set('salaryType', $salaryType);
$oJobSearch->set('salaryMax', $salaryMax);
$oJobSearch->set('salaryMin', $salaryMin);
$oJobSearch->set('from', $from);
$oJobSearch->set('to', $to);
// Get Job Search Results
$oJobSearchResults = $oJobSearch->get();
$oRssFeed = new DOMDocument;
$oRssFeed->preserveWhiteSpace = false;
$oRssFeed->formatOutput = true;
$oRssFeed->appendChild($oRssFeed->createElement('rss'));
$oRssFeed->documentElement->setAttribute('version', '2.0');
$oChannelEl = $oRssFeed->createElement('channel');
$oRssFeed->documentElement->appendChild($oChannelEl);
$oChannelEl->appendChild($oRssFeed->createElement('title', $rssSettings['adlogic_rss_title']));
$oDescriptionEl = $oRssFeed->createElement('description');
$oDescriptionEl->appendChild($oRssFeed->createCDATASection($rssSettings['adlogic_rss_description']));
$oChannelEl->appendChild($oDescriptionEl);
$oChannelEl->appendChild($oRssFeed->createElement('category', $rssSettings['adlogic_rss_category']));
//$oChannelEl->appendChild($oRssFeed->createElement('link', RSS_FEED_LINK));
$oChannelEl->appendChild($oRssFeed->createElement('language', 'en-AU'));
$oCopyrightEl = $oRssFeed->createElement('copyright');
$oCopyrightEl->appendChild($oRssFeed->createCDATASection($rssSettings['adlogic_rss_copyright']));
/nas
/content
/live
/comsol
/wp-content
/plugins
/adlogic-job-board
/adlogic-job-board.php
if ($wp_rewrite->using_permalinks()) {
$adlogicAjaxBaseUrl = '/adlogic-jobs';
$adlogicRssBaseUrl = '/adlogic-jobs/rss';
$adlogicBulkRssBaseUrl = '/adlogic-jobs/bulk-rss';
$adlogicDeactivatePluginBaseUrl = '/adlogic-jobs/deactivate';
$adlogicCallbackBaseUrl = '/adlogic-jobs/callback';
$adlogicSettings = array(
'ajaxurl' => home_url() . $adlogicAjaxBaseUrl,
'rssurl' => home_url() . $adlogicRssBaseUrl,
'bulkrssurl' => home_url() . $adlogicBulkRssBaseUrl,
'mbstring' => extension_loaded('mbstring')
);
$GLOBALS['adlogic_plugin_settings']['ajaxurl'] = $adlogicSettings['ajaxurl'];
$GLOBALS['adlogic_plugin_settings']['rssurl'] = $adlogicSettings['rssurl'];
$GLOBALS['adlogic_plugin_settings']['bulkrssurl'] = $adlogicSettings['bulkrssurl'];
if (substr($path, 0, strlen($adlogicRssBaseUrl)) == $adlogicRssBaseUrl) {
require_once dirname(__FILE__) . '/lib/rss.php';
exit(0);
} else if(substr($path, 0, strlen($adlogicBulkRssBaseUrl)) == $adlogicBulkRssBaseUrl) {
require_once dirname(__FILE__) . '/lib/bulk-rss.php';
$BulkRss = new BulkRss(self::getSoapConnection());
exit(0);
} else if (substr($path, 0, strlen($adlogicDeactivatePluginBaseUrl)) == $adlogicDeactivatePluginBaseUrl) {
// Add plugin kill-switch should it be required due to problems with the plugin malfunctioning
require_once(ABSPATH . 'wp-admin/includes/plugin.php');
$plugin_data = get_plugin_data(__FILE__, false);
if ((isset($_GET['key'])) && (base64_decode($_GET['key']) == 'deactivate_plugin')) {
deactivate_plugins(AJB_PLUGIN_FILE);
wp_die( '<strong>' . $plugin_data['Name'] . '</strong> has now been deactivated!<br /><br />Return to <a href="' . get_bloginfo('url') . '">Home</a>.' );
} else {
wp_die( '<strong>' . $plugin_data['Name'] . '</strong><br /> <br/>Invalid key specified.<br /><br />Return to <a href="' . get_bloginfo('url') . '">Home</a>.' );
}
exit(0);
} else if (substr($path, 0, strlen($adlogicCallbackBaseUrl)) == $adlogicCallbackBaseUrl) {
// Do nothing, authentication should happen here
} else if (substr($path, 0, strlen($adlogicAjaxBaseUrl)) == $adlogicAjaxBaseUrl) {
require_once dirname( __FILE__ ) . '/lib/ajaxServer.php';
/nas
/content
/live
/comsol
/wp-includes
/class-wp-hook.php
$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.
/nas
/content
/live
/comsol
/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 ] );
/nas
/content
/live
/comsol
/wp-includes
/plugin.php
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
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[ $hook_name ]->do_action( $arg );
array_pop( $wp_current_filter );
}
/**
* Calls the callback functions that have been added to an action hook, specifying arguments in an array.
*
* @since 2.1.0
*
* @see do_action() This function is identical, but the arguments passed to the
* functions hooked to `$hook_name` are supplied using an array.
*
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
* @global int[] $wp_actions Stores the number of times each action was triggered.
* @global string[] $wp_current_filter Stores the list of current filters with the current one last.
*
* @param string $hook_name The name of the action to be executed.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
*/
function do_action_ref_array( $hook_name, $args ) {
/nas
/content
/live
/comsol
/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
/nas
/content
/live
/comsol
/wp-config.php
$memcached_servers=array ( 'default' => array ( 0 => 'unix:///tmp/memcached.sock', ), );
# WP Engine ID
# WP Engine Settings
# That's It. Pencils down
if ( !defined('ABSPATH') )
define('ABSPATH', __DIR__ . '/');
require_once(ABSPATH . 'wp-settings.php');
define('WP_TEMP_DIR', ABSPATH . '/wp-content/tmp');
/nas
/content
/live
/comsol
/wp-load.php
* Initialize error reporting to a known set of levels.
*
* This will be adapted in wp_debug_mode() located in wp-includes/load.php based on WP_DEBUG.
* @see https://www.php.net/manual/en/errorfunc.constants.php List of known error levels.
*/
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 . '/version.php';
require_once ABSPATH . WPINC . '/compat.php';
require_once ABSPATH . WPINC . '/load.php';
// Check for the required PHP version and for the MySQL extension or a database drop-in.
wp_check_php_mysql_versions();
// Standardize $_SERVER variables across setups.
wp_fix_server_vars();
/nas
/content
/live
/comsol
/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';
}
/nas
/content
/live
/comsol
/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';