4 include('menulist.html');
5 include('static-configuration');
8 $maintainer=extract_field('maintainer',$module_path);
9 $author=extract_field('author',$module_path);
10 $summary=extract_field('summary',$module_path);
11 $see_also=extract_field('see_also',$module_path);
12 $description=htmlize_field('description',$module_path);
13 $example=extract_field('example',$module_path);
14 $dependencies=htmlspecialchars(shell_exec('tools/ccan_depends --direct '.$module_path));
15 $extdepends=htmlspecialchars(shell_exec('tools/ccan_depends --compile --non-ccan '.$module_path));
16 $licence=extract_field('licence',$module_path);
17 $license=extract_field('license',$module_path);
18 $url_prefix = getenv("URLPREFIX");
20 <div class='content moduleinfo'>
22 <p><a href="<?=$repo_base.$module?>">Browse Source</a> <a href="<?=$url_prefix?><?=$tar_dir?>/with-deps/<?=$module?>.tar.bz2">Download</a> <a href="<?=$url_prefix?><?=$tar_dir?>/<?=$module?>.tar.bz2">(without any required ccan dependencies)</a></p>
34 <p><?=$maintainer?></p>
47 <h3>Dependencies:</h3>
48 <ul class='dependencies'>
50 foreach (preg_split("/\s+/", $dependencies) as $dep) {
52 echo '<li><a href="'.substr($dep, 5).'.html">'.$dep.'</a></li>';
63 <h3>External dependencies:</h3>
64 <ul class='external-dependencies'>
66 foreach (split("\n", $extdepends) as $dep) {
67 $fields=preg_split("/\s+/", $dep);
68 echo "<li>" . $fields[0].' ';
69 if (count($fields) > 1)
70 echo '(version '.$fields[1].') ';
80 <p><?=$description;?></p>
88 foreach (preg_split("/[\s,]+/", trim($see_also)) as $see) {
89 echo '<li><a href="'.substr($see, 5).'.html">'.$see.'</a></li>';
99 <pre class="prettyprint">
100 <code class="language-c"><?=$example?></code>