X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=web%2Fstaticmoduleinfo.php;h=2174f7a598c8c78ef11bed1141010e46684a7791;hp=0d04d6686a9ab86373f451e02a24f86b878bd9bb;hb=737dcc0fe959d67eb29f57df37b0d7f188e0213d;hpb=56cfebd643ca686a480e9395100ad2ad2eaf93fb;ds=sidebyside diff --git a/web/staticmoduleinfo.php b/web/staticmoduleinfo.php index 0d04d668..2174f7a5 100644 --- a/web/staticmoduleinfo.php +++ b/web/staticmoduleinfo.php @@ -4,15 +4,18 @@ include('logo.html'); include('menulist.html'); include('static-configuration'); $module_path=$argv[1]; -$module=basename($module_path); +$module=$argv[2]; $maintainer=extract_field('maintainer',$module_path); $author=extract_field('author',$module_path); $summary=extract_field('summary',$module_path); +$see_also=extract_field('see_also',$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); +$license=extract_field('license',$module_path); +$url_prefix = getenv("URLPREFIX"); ?> @@ -20,8 +23,8 @@ $licence=extract_field('licence',$module_path); Browse Source
-Download -(without any required ccan dependencies) +Download +(without any required ccan dependencies)
@@ -85,7 +88,20 @@ if ($extdepends) {

Description:

+ + +

See Also:

 '.$see.' ';
+        }
+?>
+ + @@ -97,7 +113,15 @@ if ($example) { if ($licence) { ?> -

Licence:

+

License:

+ + + +

License: