Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
56cfebd6
Commit
56cfebd6
authored
May 04, 2010
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More web fixes.
parent
6dbbd0b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
web/static-configuration
web/static-configuration
+1
-1
web/staticmoduleinfo.php
web/staticmoduleinfo.php
+12
-12
No files found.
web/static-configuration
View file @
56cfebd6
...
...
@@ -18,7 +18,7 @@ $frommail = "ccan@ozlabs.org";
$tar_dir
=
'tarballs'
;
//where bzr repo is: attach module name to browse
$repo_base
=
'http://ccan.ozlabs.org/browse/'
;
$repo_base
=
'http://ccan.ozlabs.org/browse/
ccan/
'
;
function
extract_field
(
$field
,
$module
)
{
...
...
web/staticmoduleinfo.php
View file @
56cfebd6
...
...
@@ -3,16 +3,16 @@ 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
));
$extdepends
=
htmlspecialchars
(
shell_exec
(
'tools/ccan_depends --compile --non-ccan '
.
$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
);
?>
<table
align=
"center"
bgcolor=
"lightblue"
width=
"70%"
border=
"0"
cellpadding=
"3"
cellspacing=
"1"
>
<tr
align=
"center"
bgcolor=
"FFFFCC"
>
...
...
@@ -20,8 +20,8 @@ $licence=extract_field('licence',$module);
<a
href=
"
<?=
$repo_base
.
$module
?>
"
>
Browse Source
</a>
</td>
<td>
<a
href=
"../
<?=
$tar_dir
?>
/with-deps/
<?=
basename
(
$module
)
?>
.tar.bz2"
>
Download
</a>
<a
href=
"../
<?=
$tar_dir
?>
/
<?=
basename
(
$module
)
?>
.tar.bz2"
>
(without any required ccan dependencies)
</a>
<a
href=
"../
<?=
$tar_dir
?>
/with-deps/
<?=
$module
?>
.tar.bz2"
>
Download
</a>
<a
href=
"../
<?=
$tar_dir
?>
/
<?=
$module
?>
.tar.bz2"
>
(without any required ccan dependencies)
</a>
</tr>
</table>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment