From 56cfebd643ca686a480e9395100ad2ad2eaf93fb Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 4 May 2010 17:07:32 +0930 Subject: [PATCH] More web fixes. --- web/static-configuration | 2 +- web/staticmoduleinfo.php | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/web/static-configuration b/web/static-configuration index 3eeda9a2..1f392eba 100644 --- a/web/static-configuration +++ b/web/static-configuration @@ -18,7 +18,7 @@ $frommail = "ccan@ozlabs.org"; $tar_dir = 'tarballs'; //where bzr repo is: attach module name to browse -$repo_base = 'http://ccan.ozlabs.org/browse/'; +$repo_base = 'http://ccan.ozlabs.org/browse/ccan/'; function extract_field($field,$module) { diff --git a/web/staticmoduleinfo.php b/web/staticmoduleinfo.php index b9fac443..0d04d668 100644 --- a/web/staticmoduleinfo.php +++ b/web/staticmoduleinfo.php @@ -3,16 +3,16 @@ session_start(); include('logo.html'); include('menulist.html'); include('static-configuration'); -$module=$argv[1]; - -$maintainer=extract_field('maintainer',$module); -$author=extract_field('author',$module); -$summary=extract_field('summary',$module); -$description=htmlize_field('description',$module); -$example=extract_field('example',$module); -$dependencies=htmlspecialchars(shell_exec('tools/ccan_depends --direct '.$module)); -$extdepends=htmlspecialchars(shell_exec('tools/ccan_depends --compile --non-ccan '.$module)); -$licence=extract_field('licence',$module); +$module_path=$argv[1]; +$module=basename($module_path); +$maintainer=extract_field('maintainer',$module_path); +$author=extract_field('author',$module_path); +$summary=extract_field('summary',$module_path); +$description=htmlize_field('description',$module_path); +$example=extract_field('example',$module_path); +$dependencies=htmlspecialchars(shell_exec('tools/ccan_depends --direct '.$module_path)); +$extdepends=htmlspecialchars(shell_exec('tools/ccan_depends --compile --non-ccan '.$module_path)); +$licence=extract_field('licence',$module_path); ?> @@ -20,8 +20,8 @@ $licence=extract_field('licence',$module); Browse Source
-Download -(without any required ccan dependencies) +Download +(without any required ccan dependencies)
-- 2.39.2