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/3951573/cwd/tmp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/3951573/cwd/tmp/pll-config.php
<?php
// --- Optionen setzen ---
$opt = get_option('polylang');
if ( ! is_array($opt) ) { $opt = array(); }
$opt['default_lang']  = 'de';
$opt['force_lang']    = 1;   // Sprache im Verzeichnis (/en/)
$opt['hide_default']  = 1;   // Standardsprache (de) ohne Präfix
$opt['rewrite']       = 1;   // saubere URLs
$opt['redirect_lang'] = 0;
$opt['browser']       = 0;   // keine Auto-Weiterleitung per Browsersprache
$opt['post_types']    = array('smi_tool','smi_comparison','smi_product','smi_glossary');
$opt['taxonomies']    = array('smi_topic','smi_tool_cat','smi_product_cat');
$opt['media_support'] = 0;
update_option('polylang', $opt);
echo "Optionen gesetzt.\n";

// Polylang-Funktionen sicherstellen
if ( ! function_exists('pll_set_post_language') ) { echo "pll-Funktionen fehlen\n"; return; }

// --- bestehende Inhalte der Sprache 'de' zuweisen ---
$types = array('post','page','smi_tool','smi_comparison','smi_product','smi_glossary');
$posts = get_posts(array('post_type'=>$types,'numberposts'=>-1,'post_status'=>'any','fields'=>'ids','suppress_filters'=>true));
$pc = 0;
foreach ($posts as $pid) {
  if ( ! pll_get_post_language($pid) ) { pll_set_post_language($pid,'de'); $pc++; }
}
echo "Beiträge/Seiten auf DE gesetzt: $pc\n";

// --- Terme der Sprache 'de' zuweisen ---
$taxes = array('smi_topic','smi_tool_cat','smi_product_cat','category','post_tag');
$tc = 0;
foreach ($taxes as $tax) {
  $terms = get_terms(array('taxonomy'=>$tax,'hide_empty'=>false,'fields'=>'ids'));
  if ( is_wp_error($terms) ) continue;
  foreach ($terms as $tid) {
    if ( ! pll_get_term_language($tid) ) { pll_set_term_language($tid,'de'); $tc++; }
  }
}
echo "Terme auf DE gesetzt: $tc\n";

Youez - 2016 - github.com/yon3zu
LinuXploit