WS_OK_7.4.33 HEX
HEX
Server: nginx/1.21.4
System: Linux v12674 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: endtheignorance (1014)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v12674/lcacorpold/public_html/wp-content/plugins/cf-geoplugin/inc/classes/CF_Geoplugin.php
<?php
/**
 * Return deprecated CF_Geoplugin class to support the older projects
 *
 * @link          http://infinitumform.com/
 * @since         8.0.0
 * @package       cf-geoplugin
 * @author        Ivijan-Stefan Stipic
 * @version       1.0.0
 *
 */
// If someone try to called this file directly via URL, abort.
if ( ! defined( 'WPINC' ) ) { die( "Don't mess with us." ); }
if ( ! defined( 'ABSPATH' ) ) { exit; }

if(!class_exists('CF_Geoplugin', false)) : class CF_Geoplugin{
	// Collect API data
	private $data = NULL;
	
	// Construct API response
	function __construct($options=[]){
		// Fetch new data via API
		if( !empty($options) ) {
			$property = [];
			
			if( isset($options['base_currency']) ){
				$property['base_currency']=$options['base_currency'];
			}
			
			if( isset($options['ip']) && ($NEW_API = CFGP_API::lookup( $options['ip'], $property )) ){
				$this->data = $NEW_API;
			} else {
				$this->data = CFGP_U::api(false, CFGP_Defaults::API_RETURN);
			}
		}
		// Or load default data
		else {
			$this->data = CFGP_U::api(false, CFGP_Defaults::API_RETURN);
		}
	}
	
	// Get API data
	public function get(){
		return ((object)$this->data);
	}
	
} endif;