403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/HostingSpaces/admin/tickwaves.com/wwwroot/wp-content/themes/solace/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/tickwaves.com/wwwroot/wp-content/themes/solace//template-preview.php
<?php
/**
 * Template Name: Content Only Preview
 */

// get_header(); // Optional: include header if needed

// Get post ID from query parameter
$post_id = isset($_GET['post_id']) ? intval($_GET['post_id']) : 0;

if ($post_id) {
    $post = get_post($post_id);

    if ($post) {
        // Set up post data
        setup_postdata($post);
        // Output the post content only
        echo '<div class="post-content">';
        echo apply_filters('the_content', $post->post_content);
        echo '</div>';
        // Reset post data
        wp_reset_postdata();
    } else {
        echo '<p>Post not found.</p>';
    }
} else {
    echo '<p>No post ID provided.</p>';
}

// get_footer(); // Optional: include footer if needed
?>

Youez - 2016 - github.com/yon3zu
LinuXploit