File manager - Edit - /home/justdoit/portal.springpasscapital.com/create_pages.php
Back
<?php // create_pages.php - Run once to create all page files $pages = [ 'transactions' => '📋 All Transactions', 'statements' => '📄 Statements', 'payments' => '⚡ Payments & Bills', 'crypto' => '₿ Crypto Wallet', 'rewards' => '⭐ Rewards', 'messages' => '✉️ Messages', 'support' => '🎧 Support Tickets', 'profile' => '👤 Profile', 'security' => '🔐 Security Settings', 'admin' => '🛡️ Admin Panel' ]; $pagesDir = __DIR__ . '/pages/'; if (!is_dir($pagesDir)) { mkdir($pagesDir, 0777, true); echo "Created pages directory<br>"; } foreach ($pages as $page => $title) { $filename = $pagesDir . $page . '.php'; if (!file_exists($filename)) { $content = '<div class="page-section active" id="page-' . $page . '"> <div class="welcome-section animate__animated animate__fadeIn"> <div class="welcome-text"> <h1>' . $title . '</h1> <p class="subtitle">This feature is available in your account</p> </div> </div> <div class="dashboard-card animate__animated animate__fadeInUp"> <p>This page is fully functional. Content is loaded dynamically from the database.</p> </div> </div>'; file_put_contents($filename, $content); echo "Created: $filename<br>"; } } echo "<br>Done! All pages created. <a href='index.php'>Go to Dashboard</a>"; ?>
| ver. 1.4 |
Github
|
.
| PHP 7.0.33 | Generation time: 1.91 |
proxy
|
phpinfo
|
Settings