X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=web%2Fstaticmoduleinfo.php;h=8f736337c8cb63a6c575565fddbeb3dfdb4cabaf;hp=0d04d6686a9ab86373f451e02a24f86b878bd9bb;hb=39ea444c9dc03f923f7a06fd037084746ddbe518;hpb=56cfebd643ca686a480e9395100ad2ad2eaf93fb diff --git a/web/staticmoduleinfo.php b/web/staticmoduleinfo.php index 0d04d668..8f736337 100644 --- a/web/staticmoduleinfo.php +++ b/web/staticmoduleinfo.php @@ -4,103 +4,108 @@ 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"); ?> - - - - -
-Browse Source - -Download -(without any required ccan dependencies) -
+
-

-

+

Browse Source Download (without any required ccan dependencies)

- - - - +

Module:

+

- - - +

Summary:

+

- - - +

Maintainer:

+

- - - +

Author:

+

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

Description:

+

+ +

See Also:

+ + - - - +

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:

Example:

Licence:


+