X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=web%2Fstaticmoduleinfo.php;h=17c3454af0a40d8fbddf4188f8d3ffe6da598f1a;hp=b9fac443d5439fd659dbdb1bcb64b62e1397bfd3;hb=3c6506bdbc2ee29f57f7c810fd54a8ac37d42e98;hpb=e30753942e5a5ea6e958fdd850fc7a9c33285dae diff --git a/web/staticmoduleinfo.php b/web/staticmoduleinfo.php index b9fac443..17c3454a 100644 --- a/web/staticmoduleinfo.php +++ b/web/staticmoduleinfo.php @@ -3,16 +3,18 @@ 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); +$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); ?> @@ -20,8 +22,8 @@ $licence=extract_field('licence',$module); Browse Source
-Download -(without any required ccan dependencies) +Download +(without any required ccan dependencies)
@@ -85,7 +87,20 @@ if ($extdepends) {

Description:

+ + +

See Also:

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

Licence:

+

License:

+ + + +

License: