X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=web%2Fstaticmoduleinfo.php;h=ac4ac68f1bb19226ee184adfe9af73dd1e7420b8;hp=17c3454af0a40d8fbddf4188f8d3ffe6da598f1a;hb=4f6d604ce616e70659b8494fd41ecd41e8fca30a;hpb=3c6506bdbc2ee29f57f7c810fd54a8ac37d42e98 diff --git a/web/staticmoduleinfo.php b/web/staticmoduleinfo.php index 17c3454a..ac4ac68f 100644 --- a/web/staticmoduleinfo.php +++ b/web/staticmoduleinfo.php @@ -4,7 +4,7 @@ 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); @@ -15,115 +15,99 @@ $dependencies=htmlspecialchars(shell_exec('tools/ccan_depends --direct '.$module $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"); ?> - - - - -
-Browse Source - -Download -(without any required ccan dependencies) -
+
-

-

+

Browse Source Download (without any required ccan dependencies)

- - - - +

Module:

+

- - - +

Summary:

+

- - - +

Maintainer:

+

- - - +

Author:

+

- - - +?> + + - - - +?> + - - - + +

Description:

+

- - - - - - - + - - - +

Example:

+
+
+
- - - +

License:

+

-

Module:

Summary:

Maintainer:

Author:

Dependencies:

 Dependencies:
+
    +'.$dep.' '; + if ($dep) { + echo '
  • '.$dep.'
  • '; + } } -?>

External dependencies:

External dependencies: +
    +" . $fields[0].' '; if (count($fields) > 1) echo '(version '.$fields[1].') '; - echo '
    '; + echo ''; } -?>

Description:

See Also:

 See Also:
+

Example:

License:

License:


+