| 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 : /tmp/ |
Upload File : |
<?php
// READ-ONLY Reproduktion: kein DB-Schreibzugriff, keine Aktivierung.
define('WP_USE_THEMES', false);
$_SERVER['HTTP_HOST']='www.drogentest-online.de';
$_SERVER['REQUEST_URI']='/';
$_SERVER['REQUEST_METHOD']='GET';
$_SERVER['SERVER_PROTOCOL']='HTTP/1.1';
require '/var/www/clients/client2/web20/web/wp-load.php';
$theme='drogentest-online';
$dir = WP_CONTENT_DIR.'/themes/'.$theme;
add_filter('template', function() use ($theme){ return $theme; });
add_filter('stylesheet', function() use ($theme){ return $theme; });
add_filter('template_directory', function() use ($dir){ return $dir; });
add_filter('stylesheet_directory', function() use ($dir){ return $dir; });
add_filter('template_directory_uri', function(){ return content_url('themes/drogentest-online'); });
add_filter('stylesheet_directory_uri', function(){ return content_url('themes/drogentest-online'); });
require_once $dir.'/functions.php';
do_action('after_setup_theme');
// Frontpage-Query simulieren
global $wp_query, $wp_the_query;
$q = new WP_Query(array('post_type'=>'page','posts_per_page'=>1));
$wp_query = $wp_the_query = $q;
echo "=== RENDER START ===\n";
ob_start();
get_header();
echo '<!-- body -->';
get_footer();
$html = ob_get_clean();
echo "HTML-Bytes: ".strlen($html)."\n";
echo "=== RENDER OK ===\n";