Uname:Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64

403WebShell
403Webshell
Server IP : 188.114.96.2  /  Your IP : 104.23.197.230
Web Server : Apache/2.4.59 (Debian)
System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
User : edlftp ( 1002)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/nicolasj/www/ecoledelangues.be/wp-content/plugins/wp-google-maps/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nicolasj/www/ecoledelangues.be/wp-content/plugins/wp-google-maps/includes/class.rectangle.php
<?php

namespace WPGMZA;

if(!defined('ABSPATH'))
	return;

class Rectangle extends Feature
{
	private $_cornerA;
	private $_cornerB;
	
	public function __construct($id_or_fields=-1, $read_mode=Crud::SINGLE_READ)
	{
		global $wpdb;
		global $WPGMZA_TABLE_NAME_RECTANGLES;
		
		$this->_cornerA = new LatLng();
		$this->_cornerB = new LatLng();
		
		Crud::__construct($WPGMZA_TABLE_NAME_RECTANGLES, $id_or_fields, $read_mode);
	}
	
	protected function get_column_parameter($name)
	{
		switch($name)
		{
			case "cornerA":
			case "cornerB":
				return "POINT(" . floatval($this->{"_$name"}->lat) . " " . floatval($this->{"_$name"}->lng) . ")";
				break;
			
			default:
				break;
		}
		
		return Crud::get_column_parameter($name);
	}
	
	public function __get($name)
	{
		switch($name) {
			case "cornerA":
			case "cornerB":
				return $this->{"_$name"};
				break;
				
			default:
				break;
		}

		return Feature::__get($name);
	}
	
	public function __set($name, $value)
	{
		switch($name) {
			case "cornerA":
			case "cornerB":
				$this->{"_$name"} = new LatLng($value);
				break;
				
			default:
				Feature::__set($name, $value);
				break;
		}
	}
	
	public function set($arg, $val=null)
	{
		if(is_array($arg) && isset($arg['cornerA']))
			$arg['cornerA'] = $this->_cornerA = new LatLng($arg['cornerA']);
		else if(is_object($arg) && isset($arg->cornerA))
			$arg->cornerA = $this->_cornerA = new LatLng($arg->cornerA);
		
		if(is_array($arg) && isset($arg['cornerB']))
			$arg['cornerB'] = $this->_cornerB = new LatLng($arg['cornerB']);
		else if(is_object($arg) && isset($arg->cornerB))
			$arg->cornerB = $this->_cornerB = new LatLng($arg->cornerB);
		
		Crud::set($arg, $val);
	}

	public static function get_table_name_static() {
		global $WPGMZA_TABLE_NAME_RECTANGLES;
		return $WPGMZA_TABLE_NAME_RECTANGLES;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit