diff options
-rwxr-xr-x | portdb/portdb/index.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/portdb/portdb/index.php b/portdb/portdb/index.php index 5ce7c25..62a4cd3 100755 --- a/portdb/portdb/index.php +++ b/portdb/portdb/index.php @@ -1,5 +1,7 @@ <?php +$version = "3.0"; + require('DB.php'); $dbhandle = "sqlite:////home/crux/public_html/local/portdb.db"; @@ -15,8 +17,8 @@ function sanitize($str) { } function localrepo($name) { - if (is_dir("/home/crux/git-to-rsync-working-copy/crux-2.7/{$name}")) { - return "http://crux.nu/ports/crux-2.7/{$name}/"; + if (is_dir("/home/crux/git-to-rsync-working-copy/crux-".$version."/{$name}")) { + return "http://crux.nu/ports/crux-".$version."/{$name}/"; } else { return ""; |