X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=web%2Fstaticmoduleinfo.php;h=ba73265696383d7b7898bf38b79b1f6dabf4a5ea;hp=5b16e62d0003afed9a35d1a4f8ea3d62138bdbea;hb=d4941bf8047d16007f19a3b5b2211e1e7571f068;hpb=ad8da11f6d0664e0fb3c8707a869425088daea7e diff --git a/web/staticmoduleinfo.php b/web/staticmoduleinfo.php index 5b16e62d..ba732656 100644 --- a/web/staticmoduleinfo.php +++ b/web/staticmoduleinfo.php @@ -3,15 +3,17 @@ 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=basename($module_path); +$maintainer=extract_field('maintainer',$module_path); +$author=extract_field('author',$module_path); +$summary=extract_field('summary',$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); ?> @@ -19,9 +21,8 @@ $licence=extract_field('licence',$module); Browse Source
-Download: -(standalone) -(with all dependencies) +Download +(without any required ccan dependencies)
@@ -65,6 +66,22 @@ if ($dependencies) { + +

External dependencies:

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

Description:

@@ -81,7 +98,15 @@ if ($example) { if ($licence) { ?> -

Licence:

+

License:

+ + + +

License: