File manager - Edit - /home/meharhashir55/passivemrbot/index.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>'; ?> <!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 - Your Guide to Financial Freedom</title> <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/daisyui@3.5.1/dist/full.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="./assets/css/style.css"> <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script> <style> /* Custom styles can be added here */ .hero-section { background-image: url('https://images.pexels.com/photos/3183197/pexels-photo-3183197.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1'); background-size: cover; background-position: center; height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: white; } .article-card { transition: transform 0.3s ease-in-out; } .article-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); } </style> </head> <body class="bg-gray-100"> <header class="bg-gradient-to-r from-cyan-500 to-blue-500 text-white py-4 shadow-lg"> <div class="container mx-auto px-4 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; ?>" class="hover:underline">Home</a></li> <li><a href="<?php echo $base_url; ?>about-us.php" class="hover:underline">About Us</a></li> <li><a href="<?php echo $base_url; ?>contact-us.php" class="hover:underline">Contact Us</a></li> <li><a href="<?php echo $base_url; ?>privacy-policy.php" class="hover:underline">Privacy Policy</a></li> <li><a href="<?php echo $base_url; ?>terms-of-service.php" class="hover:underline">Terms of Service</a></li> </ul> </div> </header> <section class="hero-section"> <h1 class="text-5xl font-extrabold mb-4">Unlock Your Financial Freedom</h1> <p class="text-xl mb-8">Discover proven passive income strategies to build wealth and achieve your financial goals.</p> <button class="btn btn-primary">Explore Now</button> </section> <main class="container mx-auto px-4 py-8"> <h2 class="text-3xl font-bold mb-4 text-center">Featured Articles</h2> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"> <?php $articles_dir = "./articles/"; $articles = scandir($articles_dir); $articles = array_diff($articles, array('.', '..')); foreach ($articles as $article) { $article_path = $articles_dir . $article; $article_content = file_get_contents($article_path); preg_match('/<h1>(.*?)<\/h1>/', $article_content, $matches); $article_title = isset($matches[1]) ? $matches[1] : 'Untitled'; preg_match('/<p>(.*?)<\/p>/', $article_content, $matches); $article_excerpt = isset($matches[1]) ? $matches[1] : 'No excerpt available'; $article_excerpt = substr($article_excerpt, 0, 150) . "..."; ?> <article class="article-card card bg-base-100 shadow-xl"> <div class="card-body"> <h2 class="card-title"><?php echo $article_title; ?></h2> <p class="text-gray-600"><?php echo $article_excerpt; ?></p> <a href="<?php echo $base_url . 'article.php?file=' . $article; ?>" class="btn btn-primary">Read More</a> </div> </article> <?php } ?> </div> </main> <footer class="bg-gray-200 py-4 text-center mt-8"> <p>© <?php echo date("Y"); ?> Passive Income Strategies. All rights reserved.</p> </footer> <script> // GSAP Animations gsap.fromTo(".hero-section h1", { opacity: 0, y: 50 }, { opacity: 1, y: 0, duration: 1, ease: "power1.out", delay: 0.5 }); gsap.fromTo(".hero-section p", { opacity: 0, y: 50 }, { opacity: 1, y: 0, duration: 1, ease: "power1.out", delay: 1 }); gsap.fromTo(".hero-section button", { opacity: 0, y: 50 }, { opacity: 1, y: 0, duration: 1, ease: "power1.out", delay: 1.5 }); //Stagger for article cards gsap.fromTo(".article-card", { opacity: 0, y: 20 }, { opacity: 1, y: 0, duration: 1, ease: "power1.out", stagger: 0.2, delay: 0.5}); </script> <?php echo $adsense_code; ?> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.3.24 | Generation time: 0.08 |
proxy
|
phpinfo
|
Settings