Uname:Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64

Base Dir : /var/www/html

User : gavin


403WebShell
403Webshell
Server IP : 68.183.124.220  /  Your IP : 216.73.216.141
Web Server : Apache/2.4.18 (Ubuntu)
System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User : gavin ( 1000)
PHP Version : 7.0.33-0ubuntu0.16.04.16
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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/wp-content/plugins/popup-builder/com/classes/popups/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/popup-builder/com/classes/popups/ImagePopup.php
<?php
namespace sgpb;
require_once(dirname(__FILE__).'/SGPopup.php');

class ImagePopup extends SGPopup
{
	public function save()
	{
		$imageData = '';
		$savedImageUrl = '';
		$data = $this->getSanitizedData();
		$imageUrl = @$data['sgpb-image-url'];
		$savedPopup = $this->getSavedPopup();

		if (is_object($savedPopup)) {
			$imageData = $savedPopup->getOptionvalue('sgpb-image-data');
			$savedImageUrl = $savedPopup->getOptionValue('sgpb-image-url');
		}

		if ($imageUrl != $savedImageUrl) {
			$imageUrl = AdminHelper::getImageDataFromUrl($imageUrl, true);
		}

		$data['sgpb-image-url'] = $imageUrl;
		$this->setSanitizedData($data);

		parent::save();
	}

	public function getOptionValue($optionName, $forceDefaultValue = false)
	{
		return parent::getOptionValue($optionName, $forceDefaultValue);
	}

	public function getPopupTypeOptionsView()
	{
		return array();
	}

	public function getRemoveOptions()
	{

		// Where 1 mean this options must not show for this popup type
		$removeOptions = array(
			'sgpb-reopen-after-form-submission' => 1,
			'sgpb-background-image' => 1,
			'sgpb-background-image-mode' => 1,
			'sgpb-force-rtl' => 1,
			'sgpb-content-padding' => 1
		);
		$parentOptions = parent::getRemoveOptions();
		if ($this->getType() != 'image') {
			return $parentOptions;
		}

		return $removeOptions + $parentOptions;
	}

	public function getPopupTypeMainView()
	{
		return array(
			'filePath' => SG_POPUP_TYPE_MAIN_PATH.'image.php',
			'metaboxTitle' => 'Image Popup Main Options'
		);
	}

	/**
	 * It returns what the current post supports (for example: title, editor, etc...)
	 *
	 * @since 1.0.0
	 *
	 * @return array
	 */
	public static function getPopupTypeSupports()
	{
		return array('title');
	}

	public function getPopupTypeContent()
	{
		$id = $this->getId();
		$imageUrl = $this->getOptionValue('sgpb-image-url');

		return '<img width="1" height="1" class="sgpb-preloaded-image-'.$id.'" src="'.$imageUrl.'" style="position:absolute;right:9999999999999px;">';
	}

	public function getExtraRenderOptions()
	{
		return array();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit