Siteβ―Builder
Editing:
index.php
writable 0666
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Index of Articles</title> <meta name="description" content="Explore BestDealOn.com's collection of resources, guides, and insights. Learn about building trust and credibility through Web3.0 credit scores, peer-to-peer marketplaces, global commerce, and decentralized finance." /> <meta name="keywords" content="BestDealOn, Web3.0 credit scores, blockchain trust, peer-to-peer marketplace, decentralized commerce, crypto credibility, global economy, transparency, blockchain credit score, credibility building" /> <meta name="author" content="BestDealOn.com"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Open Graph Meta Tags --> <meta property="og:title" content="Index of Articles - BestDealOn.com"> <meta property="og:description" content="Discover articles on Web3.0 credit scores, building blockchain credibility, peer-to-peer marketplaces, and decentralized commerce at BestDealOn.com." /> <meta property="og:type" content="website"> <style> /* Basic Reset */ * { margin:0; padding:0; box-sizing:border-box; } html, body { height:100%; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; color:#333; } body { /* Animated gradient background */ background: linear-gradient(45deg, #8EC5FC, #E0C3FC, #FFDDC1, #FEC9D7); background-size:400% 400%; animation: gradientBG 20s ease infinite; } @keyframes gradientBG { 0% { background-position:0% 50%; } 50% { background-position:100% 50%; } 100% { background-position:0% 50%; } } header { text-align:center; padding:60px 20px 30px 20px; color:#222; } header h1 { font-size:3rem; margin-bottom:10px; } header h3 { font-weight: normal; font-size:1.2rem; max-width:700px; margin:0 auto; color:#444; } .container { max-width:800px; margin:60px auto 40px auto; padding:20px; background:rgba(255,255,255,0.85); border-radius:10px; box-shadow:0 4px 14px rgba(0,0,0,0.1); } .container h1 { font-size:2rem; margin-bottom:30px; text-align:center; color:#222; } .article-list { list-style-type:none; padding-left:0; } .article-item { margin-bottom:15px; font-size:1.1rem; } .article-item a { text-decoration:none; color:#333; font-weight:bold; transition: color 0.3s ease; border-bottom:2px solid #333; } .article-item a:hover { color:#555; border-color:#555; } footer { text-align:center; padding:40px 20px; font-size:0.9rem; color:#666; } footer a { color:#333; text-decoration:underline; } @media (max-width:768px) { header h1 { font-size:2rem; } .article-item { font-size:1rem; } } </style> </head> <body> <header> <h1>Index of Articles</h1> <h3>Explore Our Comprehensive Collection of Insights</h3> </header> <div class="container"> <h1>Browse Our Articles</h1> <ul class="article-list"> <?php /** * Converts a slug (e.g., "trace-life") into a human-readable format (e.g., "Trace Life"). */ function unslug($slug) { return ucwords(str_replace('-', ' ', $slug)); } /** * Generates a list of HTML articles in the current directory. */ function createArticleList($dir, $relativePath) { $items = scandir($dir); foreach ($items as $item) { if ($item == '.' || $item == '..') continue; $path = "$dir/$item"; if (is_file($path)) { $fileExt = pathinfo($item, PATHINFO_EXTENSION); if (strtolower($fileExt) == 'html') { $fileName = pathinfo($item, PATHINFO_FILENAME); $displayName = unslug($fileName); echo "<li class='article-item'><a href='$relativePath/$item'>$displayName</a></li>"; } } } } $currentDir = __DIR__; $relativePath = dirname($_SERVER['SCRIPT_NAME']); createArticleList($currentDir, $relativePath); ?> </ul> </div> <footer> © <?php echo date('Y'); ?> RF Safe. All rights reserved.<br> Contact Us: <a href="tel:7276101188">727-610-1188</a> | <a href="mailto:john.coates@rfsafe.com">jc@bestdealon.com</a> </footer> </body> </html>
Save changes
Create folder
writable 0777
Create
Cancel