!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/aps/resizeimg/thumb_plugins/   drwxr-xr-x
Free 182.6 GB of 490.84 GB (37.2%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     gd_watermark.inc.php (2.32 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 * GD Watermark Lib Plugin Definition File
 *
 * This file contains the plugin definition for the GD Watermark Lib for PHP Thumb
 *
 * PHP Version 5 with GD 2.0+
 * PhpThumb : PHP Thumb Library <http://phpthumb.gxdlabs.com>
 * Copyright (c) 2009, Ian Selby/Gen X Design
 *
 * Author(s): Cleber Willian dos Santos <e@binho.net>
 *
 * Licensed under the MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @author Cleber Willian dos Santos <e@binho.net>
 * @copyright Copyright (c) 2009 Gen X Design
 * @link http://phpthumb.gxdlabs.com
 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
 * @version 3.0
 * @package PhpThumb
 * @filesource
 */

/*
 * GD Watermark Lib Plugin
 *
 * This plugin allows you to create watermark on your photos
 *
 * @package PhpThumb
 * @subpackage Plugins
 */
class GdWatermarkLib
{
    
/*
     * Instance of GdThumb passed to this class
     * @var GdThumb
     */
    
protected $parentInstance;
    protected 
$currentDimensions;
    protected 
$workingImage;
    protected 
$newImage;
    protected 
$options;
    protected 
$originPath;

    
/*
     * Create a watermark on working image, where $image_path is the watermark image file
     * @param string $image_path
     * @param int $right_margin
     * @param int $bottom_margin
     * @return object
     */
    
public function createWatermark($image_path$right_margin$bottom_margin$that)
    {
        
$this->parentInstance    $that;
        
$this->currentDimensions $this->parentInstance->getCurrentDimensions();
        
$this->workingImage         $this->parentInstance->getWorkingImage();
        
$this->newImage             $this->parentInstance->getOldImage();
        
$this->options             $this->parentInstance->getOptions();
        
$this->originPath        $this->parentInstance->getFileName();

        
// load image used as watermark
        
        
$stamp imagecreatefrompng$image_path );

        
$sx imagesx($stamp);
        
$sy imagesy($stamp);

        
imagecopy($this->workingImage,
                  
$stamp,
                  
imagesx($this->workingImage) - $sx $right_margin,
                  
imagesy($this->workingImage) - $sy $bottom_margin,
                  
0,
                  
0,
                  
imagesx($stamp),
                  
imagesy($stamp));

        
$this->parentInstance->setOldImage$this->workingImage );

        return 
$that;
    }
}

$pt PhpThumb::getInstance();
$pt->registerPlugin('GdWatermarkLib''gd');

:: 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.0078 ]--