2 //temp folder for uploads
3 $tempfolder = "/home/ccan/upload-temp/";
5 //location of upload script (for posting uploads)
6 $uploadscript = "http://ccodearchive.net/uploader.php";
12 $ccanadmin = "rusty@rustcorp.com.au";
15 $frommail = "ccan@ozlabs.org";
18 $tar_dir = 'tarballs';
20 //where repo is: attach module name to browse
21 $repo_base = 'http://git.ozlabs.org/?p=ccan;a=tree;f=ccan/';
23 function extract_field($field,$module)
25 return htmlspecialchars(shell_exec('tools/doc_extract '.$field.' '.$module.'/_info'));
28 // Convert double line breaks into paragraphs, and blank spaces into preformat.
29 function htmlize_field($field,$module)
33 $raw=extract_field($field,$module);
34 foreach (explode("\n", $raw) as $line) {
42 } else if ($line[0] == " " || $line[0] == "\t") {
61 $result .= $line . "\n";