SVNからのミラー

This commit is contained in:
2025-11-07 22:48:07 +09:00
commit 438c7d8aef
68 changed files with 7619 additions and 0 deletions

11
autoload.php Normal file
View File

@@ -0,0 +1,11 @@
<?php
spl_autoload_register(function ($class): void {
$prefix = 'Site\\';
$base = realpath(__DIR__.'/src');
if (strncmp($prefix, $class, strlen($prefix)) !== 0) return;
$ps = str_replace('\\', DIRECTORY_SEPARATOR, $class);
$file = $base.DIRECTORY_SEPARATOR.$ps.'.php';
if (file_exists($file)) require $file;
else error_log("クラス{$class}を見つけられません。試したパス:{$file}");
});