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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/3951573/root/tmp/build_preview.php
<?php
// Erzeugt eine statische Vorschau aus den echten Theme-Templates,
// indem die nötigen WP-Funktionen gestubbt werden. Kein Einfluss auf die Live-Seite.
$TH = '/var/www/clients/client2/web20/web/wp-content/themes/drogentest-online';
$ASSET = 'file://' . $TH . '/assets';

// --- Minimal-Stubs der verwendeten WP-Funktionen ---
function language_attributes(){ echo 'lang="de-DE"'; }
function bloginfo($k){ echo $k==='charset'?'UTF-8':'Drogentest Online'; }
function body_class(){ echo 'class="dgt-site"'; }
function wp_body_open(){}
function esc_attr_e($s,$d=null){ echo htmlspecialchars($s); }
function esc_attr($s){ return htmlspecialchars($s); }
function esc_url($s){ return htmlspecialchars($s); }
function esc_html($s){ return htmlspecialchars($s); }
function wp_kses_post($s){ return $s; }
function home_url($p='/'){ return '#'; }
function wp_login_url(){ return '#'; }
function has_custom_logo(){ return false; }
function has_nav_menu($l){ return false; }
function the_custom_logo(){}
function get_template_directory_uri(){ global $ASSET; return dirname($ASSET); }
function dgt_img($f){ global $ASSET; return $ASSET.'/img/'.ltrim($f,'/'); }
function dgt_check(){ return '<svg class="dgt-check" width="20" height="20" viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="9" fill="#108e6c" fill-opacity=".12"/><path d="m6 10.2 2.6 2.6L14 7.4" stroke="#108e6c" stroke-width="1.7" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>'; }
function dgt_default_menu(){
  $items=[['Drogentests',true],['AU-Bescheinigung',false],['Info & Hilfe',true],["So funktioniert's",false]];
  echo '<ul id="primary-menu" class="navbar-nav dgt-nav mx-lg-auto">';
  foreach($items as $i){ printf('<li class="nav-item"><a class="nav-link%s" href="#">%s%s</a></li>', $i[1]?' dgt-has-caret':'', htmlspecialchars($i[0]), $i[1]?' <svg class="dgt-caret" width="10" height="6" viewBox="0 0 10 6" aria-hidden="true"><path d="M1 1l4 4 4-4" stroke="currentColor" stroke-width="1.6" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>':''); }
  echo '</ul>';
}
function wp_head(){ global $ASSET;
  echo '<link rel="stylesheet" href="'.$ASSET.'/css/bootstrap.min.css">';
  echo '<link rel="stylesheet" href="'.$ASSET.'/css/main.css">';
}
function wp_footer(){ global $ASSET; echo '<script src="'.$ASSET.'/js/bootstrap.bundle.min.js"></script><script src="'.$ASSET.'/js/main.js"></script>'; }
function get_header(){ global $TH; include $TH.'/header.php'; }
function get_footer(){ global $TH; include $TH.'/footer.php'; }

ob_start();
include $TH.'/front-page.php';
$html = ob_get_clean();
file_put_contents('/tmp/preview/index.html', $html);
echo "Vorschau geschrieben: ".strlen($html)." bytes\n";

Youez - 2016 - github.com/yon3zu
LinuXploit