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 :  /proc/3951572/cwd/tmp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/3951572/cwd/tmp/filter_feed.php
<?php
$csv = '/tmp/feed/120090-51501.csv';
$fh = fopen($csv, 'r');
$head = fgetcsv($fh, 0, ';', '"');
// Spaltenindex per Name
$col = array_flip($head);
$ti = $col['Produkt-Titel'];
$ci = $col['Produktkategorie'];
$pi = $col['Preis (Brutto)'];
$imi = $col['Produktbild-URL'];

// Drogentest-Filter: ganze Wörter / typische Drogentest-Marken
$re = '/\b(drogentest|drogennachweis|drogenschnelltest|drug\s?expert|drugexpert|drugscreen|drug\s?screen|drug\s?test)\b/i';
$matched = array();
$cats = array();
$n = 0;
while (($r = fgetcsv($fh, 0, ';', '"')) !== false) {
    $n++;
    $title = $r[$ti] ?? '';
    if (preg_match($re, $title)) {
        $matched[] = $r;
        $cats[$r[$ci] ?? ''] = ($cats[$r[$ci] ?? ''] ?? 0) + 1;
    }
}
fclose($fh);
echo "Gesamt-Produkte: $n\n";
echo "Drogentest-Treffer: ".count($matched)."\n\n";
echo "=== Kategorien der Treffer ===\n";
arsort($cats); foreach ($cats as $c=>$cnt) echo "  [$cnt] $c\n";
echo "\n=== Titel | Preis | Bild vorhanden ===\n";
foreach ($matched as $m) {
    printf("  %-58s %8s  %s\n", mb_substr($m[$ti],0,56), $m[$pi], ($m[$imi]?'IMG':'-'));
}

Youez - 2016 - github.com/yon3zu
LinuXploit