feature: Initial info gathering

This commit is contained in:
Keith Solomon
2026-02-08 23:25:50 -06:00
parent e1a144480d
commit 58353b249a
9 changed files with 1153 additions and 8 deletions

42
index.php Normal file
View File

@@ -0,0 +1,42 @@
<?php
/**
* Spacetraders Playground Index Page
*
* This file displays a list of all PHP files in the current directory.
*
* @category Web
* @package Spacetraders
* @author Keith Solomon <keith@keithsolomon.net>
* @license MIT License
* @link https://git.keithsolomon.net/keith/Spacetraders
*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Spacetraders - Agent Information</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="container mx-auto px-4 py-8 bg-stone-800 text-gray-200">
<?php $files = glob( '*.php' ); ?>
<h1 class="text-3xl font-bold mb-6 underline decoration-gray-300 w-full">Spacetraders Playground</h1>
<ol class="list-decimal list-inside">
<?php
foreach ( $files as $file ) {
if ($file === basename( __FILE__ ) ) {
continue; // Skip the index.php file itself
}
echo '<li><a href="' . $file . '" class="text-blue-400 hover:underline">' . $file . '</a></li>';
}
?>
</ol>
</body>
</html>