diff --git a/repo.php b/repo.php index 570b8106..d970f916 100644 --- a/repo.php +++ b/repo.php @@ -5,8 +5,24 @@ array( + 'path' => $config['categoriesDir'], + ), + ); +} + +if (isset($_REQUEST['repo'])) { + $repo = $_REQUEST['repo']; +} + +if (!array_key_exists($repo, $repositories)) { + Header("HTTP/1.1 404 Repository not found"); + exit(0); +} + +$path = $repositories[$repo]['path']; function newestTimestamp ($path) { $ts = 0;