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/3951580/root/tmp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/3951580/root/tmp/enable_products.php
<?php
define('WP_USE_THEMES', false);
require '/var/www/clients/client2/web20/web/wp-load.php';

// Nur echte Substanz-/Drogentest-Signale → relevant.
$relevant = array('cannabis','marihuana','thc','gras','weed','joint','kiff','haschisch','hanf',
  'kokain','koks','amphetamin','speed','crystal','methamphetamin','mdma','ecstasy','xtc',
  'heroin','morphin','opiat','opioid','codein','psiloc','magic mushroom','mushrooms','lsd',
  'drogentest','drogen-test','drogentest','drug checking','drug-checking','drogenkonsum',
  'drogen testen','drogennachweis','drogen nachweis','drogenscreening');

$posts = get_posts(array('post_type'=>'post','post_status'=>'publish','numberposts'=>-1));
$on=0; $off=array();
foreach ($posts as $p) {
  $text = strtolower($p->post_title.' '.wp_strip_all_tags(strip_shortcodes($p->post_content)));
  $hit = false;
  foreach ($relevant as $k) { if (strpos($text,$k)!==false) { $hit=true; break; } }
  if ($hit) {
    update_post_meta($p->ID,'_dgt_show_products','1');
    $ids = dgt_aff_match_products($p->ID, 3);
    $titles = array_map(function($i){ return mb_substr(get_the_title($i),0,30); }, $ids);
    printf("AKTIV   #%-4d %-50s → %s\n", $p->ID, mb_substr($p->post_title,0,48), implode(' | ',$titles));
    $on++;
  } else {
    delete_post_meta($p->ID,'_dgt_show_products');
    $off[] = mb_substr($p->post_title,0,40);
  }
}
echo "\nAktiviert: $on\n";
echo "Deaktiviert (".count($off)."): ".implode(' · ', $off)."\n";

Youez - 2016 - github.com/yon3zu
LinuXploit