403Webshell
Server IP : 192.64.118.117  /  Your IP : 18.188.27.20
Web Server : LiteSpeed
System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64
User : thecgapy ( 1160)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/thecgapy/mobilecreationz.com/wp-content/plugins/duplicator/classes/ui/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/thecgapy/mobilecreationz.com/wp-content/plugins/duplicator/classes/ui/class.dialog.php
<?php

/**
 * Inline Dialog:
 * Used to generate a thinkbox inline dialog.
 */
class DUP_Dialog
{
	//All Dialogs
	public $title;
	public $message;
	public $width;
	public $height;
	
	//Confirm Only
	public $progress_text;
	public $progress_on = true;
	public $jscallback;
	
	private $id;
	private $uniqid;
	
	public function __construct()  
	{
		add_thickbox(); 
		$this->progress_text = __('Processing please wait...', 'duplicator');
		$this->uniqid = uniqid();
		$this->id = 'dup-dlg-' . $this->uniqid;
	}
	
	
	/**
	 * Gets unique ID:
	 * Get the unique id that is assigned to each instance of a dialog
     *
     * @access public
     * @return int
     */
	public function get_id() 
	{
		return $this->id;
	}
	
	/**
	 * Gets unique ID:
	 * Get the unique id that is assigned to each instance of a dialog
     *
     * @access public
     * @return int
     */
	public function get_message_id() 
	{
		return "{$this->id}_message";
	}
	

	/**
	 * Init Alert:
	 * Initilizes the alert base html code used to display when needed
     *
     * @access public
     * @return string	The html content used for the alert dialog
     */
	public function init_alert() 
	{
		$ok	= __('OK', 'duplicator');
		
		$html = <<<HTML
		<div id="{$this->id}" style="display:none">
			<div class="dup-dlg-alert-txt">
				{$this->message}
				<br/><br/>
			</div>
			<div class="dup-dlg-alert-btns">
				<input type="button" class="button button-large" value="{$ok}" onclick="tb_remove()" />
			</div>
		</div>		
HTML;
					
		echo $html;
	}
	
	
	/**
	 * Show Alert:
	 * Shows the alert base js code used to display when needed
     *
     * @access public
     * @return string	The javascript content used for the alert dialog
     */
	public function show_alert() 
	{
		$this->width  = is_numeric($this->width)  ? $this->width  : 475;
		$this->height = is_numeric($this->height) ? $this->height : 125;
		
		echo "tb_show('{$this->title}', '#TB_inline?width={$this->width}&height={$this->height}&inlineId={$this->id}');";
	}
	
	
	/**
	 * Init Confirm:
	 * Shows the confirm base js code used to display when needed
     *
     * @access public
     * @return string	The javascript content used for the confirm dialog
     */
	public function init_confirm() 
	{
		$ok			= __('OK', 'duplicator');
		$cancel		= __('Cancel', 'duplicator');
		
		$progress_data   = '';
		$progress_func2  = '';
		
		//Enable the progress spinner
		if ($this->progress_on)
		{
			$progress_func1   = "__dup_dialog_" . $this->uniqid;						
			$progress_func2   = ";{$progress_func1}(this)";						
			$progress_data = <<<HTML
				<div class='dup-dlg-confirm-progress'><i class='fa fa-circle-o-notch fa-spin fa-lg fa-fw'></i> {$this->progress_text}</div>
				<script> 
					function {$progress_func1}(obj) 
					{
						jQuery(obj).parent().parent().find('.dup-dlg-confirm-progress').show();
						jQuery(obj).closest('.dup-dlg-confirm-btns').find('input').attr('disabled', 'true');
					}
				</script>
HTML;
		}
		
		$html = <<<HTML
			<div id="{$this->id}" style="display:none">
				<div class="dup-dlg-confirm-txt">
					<span id="{$this->id}_message">{$this->message}</span>
					<br/><br/>
					{$progress_data}
				</div>
				<div class="dup-dlg-confirm-btns">
					<input type="button" class="button button-large" value="{$ok}" onclick="{$this->jscallback}{$progress_func2}" />
					<input type="button" class="button button-large" value="{$cancel}" onclick="tb_remove()" />
				</div>
			</div>		
HTML;
					
		echo $html;
	}

	
	/**
	 * Show Confirm:
	 * Shows the confirm base js code used to display when needed
     *
     * @access public
     * @return string	The javascript content used for the confirm dialog
     */
	public function show_confirm() 
	{
		$this->width  = is_numeric($this->width)  ? $this->width  : 500;
		$this->height = is_numeric($this->height) ? $this->height : 150;
		echo  "tb_show('{$this->title}', '#TB_inline?width={$this->width}&height={$this->height}&inlineId={$this->id}');";
	}

}


Youez - 2016 - github.com/yon3zu
LinuXploit