File manager - Edit - /home/meharhashir55/passivemrbot/article.php
Back
<?php // Base URL $base_url = (isset($_SERVER["HTTPS"]) ? "https://" : "http://") . $_SERVER["HTTP_HOST"] . "/"; // AdSense code (replace with your actual AdSense code) $adsense_code = '<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-YOUR_AD_CLIENT"></script>'; // Get article file name from query string if (isset($_GET['file'])) { $article_file = $_GET['file']; $article_path = "./articles/" . $article_file; if (file_exists($article_path)) { $article_content = file_get_contents($article_path); } else { // Handle case where the article file doesn't exist header("HTTP/1.0 404 Not Found"); echo "<h1>404 Not Found</h1>"; exit; } } else { // Handle case where no article file is specified header("HTTP/1.0 404 Not Found"); echo "<h1>404 Not Found</h1>"; exit; } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Passive Income Strategies</title> <link rel="stylesheet" href="./assets/css/style.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" integrity="sha512-9usAa10IRO0HhonpyAIVpjrylPvoDwiPUiKdWk5t3PyolY1cOd4DSE0Ga+ri4AuTroPR5aQvXU9xC6qOPnzFeg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.css" /> <script src="https://cdn.jsdelivr.net/npm/scrollreveal@4.0.9/dist/scrollreveal.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.5/gsap.min.js"></script> </head> <body> <header class="bg-gradient-to-r from-cyan-500 to-blue-500 text-white py-4"> <div class="container mx-auto px-4"> <nav class="flex justify-between items-center"> <a href="<?php echo $base_url; ?>" class="text-2xl font-bold">Passive Income Strategies</a> <ul class="flex space-x-4"> <li><a href="<?php echo $base_url; ?>">Home</a></li> <li><a href="<?php echo $base_url; ?>about-us.php">About Us</a></li> <li><a href="<?php echo $base_url; ?>contact-us.php">Contact Us</a></li> <li><a href="<?php echo $base_url; ?>privacy-policy.php">Privacy Policy</a></li> <li><a href="<?php echo $base_url; ?>terms-of-service.php">Terms of Service</a></li> </ul> </nav> </div> </header> <main class="container mx-auto px-4 py-8"> <?php echo $article_content; ?> </main> <footer class="bg-gray-200 py-4 text-center"> <p>© <?php echo date("Y"); ?> Passive Income Strategies. All rights reserved.</p> </footer> <script src="https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.js"></script> <script src="./assets/js/app.js"></script> <?php echo $adsense_code; ?> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.3.24 | Generation time: 0.08 |
proxy
|
phpinfo
|
Settings