Spaces:
Sleeping
Sleeping
Download index.php from Kush26/KIIT-KAFFE-deploy: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/spaces/Kush26/KIIT-KAFFE-deploy/resolve/main/index.php
- Command line
-
hf download hf://spaces/Kush26/KIIT-KAFFE-deploy/index.php
-
curl -L -o index.php https://huggingface.co/spaces/Kush26/KIIT-KAFFE-deploy/resolve/main/index.php
1.05 kB
| include 'includes/head.php'; | |
| <body> | |
| <div class="item-tooltip" id="tooltip"></div> | |
| <canvas id="canvas3d"></canvas> | |
| <?php | |
| // Basic Routing for PHP to pass initial page to JS | |
| $request = $_SERVER['REQUEST_URI']; | |
| $base = $basePath; // Using the dynamic path defined in head.php | |
| $path = str_replace($base, '', $request); | |
| $path = strtok($path, '?'); // Strip query params | |
| $path = trim($path, '/'); | |
| // Map empty or "index.php" to "landing" | |
| if (empty($path) || $path === 'index.php') $path = 'landing'; | |
| echo "<script> | |
| window.basePath = '$basePath'; | |
| window.initialPage = '$path'; | |
| </script>"; | |
| include 'includes/landing.php'; | |
| include 'includes/auth.php'; | |
| include 'includes/menu.php'; | |
| include 'includes/cart.php'; | |
| include 'includes/payment.php'; | |
| include 'includes/success.php'; | |
| include 'includes/admin.php'; | |
| include 'includes/modals.php'; | |
| include 'includes/scripts.php'; | |
| ?> | |
| </body> | |
| </html> |