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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/3951572/root/tmp/pll-terms.php
<?php
if ( ! function_exists('pll_set_term_language') ) { echo "pll fehlt\n"; return; }
$map = array(
  'smi_topic' => array('VPN'=>'VPN','Antivirus'=>'Antivirus','Passwort'=>'Passwords','Identität'=>'Identity','Datenlecks'=>'Data Breaches','E-Mail'=>'Email','Webseiten'=>'Websites','Netzwerk'=>'Network','Server'=>'Server','Cloud'=>'Cloud'),
  'smi_tool_cat' => array('Passwort'=>'Passwords','Internet'=>'Internet','Domain'=>'Domain','Mail'=>'Mail','Sicherheit'=>'Security','Datenschutz'=>'Privacy','Entwickler'=>'Developer'),
  'smi_product_cat' => array('VPN'=>'VPN','Passwortmanager'=>'Password Managers','Antivirus'=>'Antivirus','Backup'=>'Backup','Cloud'=>'Cloud','Domains'=>'Domains','NAS'=>'NAS','Hardware-Security'=>'Hardware Security','Router'=>'Router'),
);
$made=0;
foreach ($map as $tax=>$pairs) {
  foreach ($pairs as $de=>$en) {
    $de_term = get_term_by('name',$de,$tax);
    if (!$de_term) continue;
    $tr = pll_get_term_translations($de_term->term_id);
    if (!empty($tr['en'])) continue;
    // eindeutigen Slug je Sprache
    $slug = sanitize_title($en);
    if (get_term_by('slug',$slug,$tax)) $slug .= '-en';
    $res = wp_insert_term($en,$tax,array('slug'=>$slug));
    if (is_wp_error($res)) { echo "  FEHLER $tax/$en: ".$res->get_error_message()."\n"; continue; }
    $en_id = $res['term_id'];
    pll_set_term_language($en_id,'en');
    pll_save_term_translations(array('de'=>$de_term->term_id,'en'=>$en_id));
    $made++;
  }
}
echo "EN-Terme erstellt: $made\n";

Youez - 2016 - github.com/yon3zu
LinuXploit