X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=web%2Fstaticmoduleinfo.php;h=2174f7a598c8c78ef11bed1141010e46684a7791;hp=4accde1e83b237dd80c815660e362891586ca4d6;hb=737dcc0fe959d67eb29f57df37b0d7f188e0213d;hpb=6b73d11998591ec50e726cc2d4105ca85f38d87d;ds=sidebyside diff --git a/web/staticmoduleinfo.php b/web/staticmoduleinfo.php index 4accde1e..2174f7a5 100644 --- a/web/staticmoduleinfo.php +++ b/web/staticmoduleinfo.php @@ -3,15 +3,19 @@ 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)); -$licence=extract_field('licence',$module); +$module_path=$argv[1]; +$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"); ?> @@ -19,8 +23,8 @@ $licence=extract_field('licence',$module); Browse Source
-Download -(without any required ccan dependencies) +Download +(without any required ccan dependencies)
@@ -64,11 +68,40 @@ if ($dependencies) { + +

External dependencies:

1) + echo '(version '.$fields[1].') '; + echo '
'; + } +?> + +

Description:

+ + +

See Also:

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

Licence:

+

License:

+ + + +

License: