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";
9 $ccanadmin = "rusty@rustcorp.com.au";
12 $frommail = "ccan@ozlabs.org";
15 $tar_dir = 'tarballs';
17 //where repo is: attach module name to browse
18 $repo_base = 'http://git.ozlabs.org/?p=ccan;a=tree;f=ccan/';
20 function extract_field($field,$module)
22 return htmlspecialchars(shell_exec('tools/doc_extract '.$field.' '.$module.'/_info'));
25 // Convert double line breaks into paragraphs, and blank spaces into preformat.
26 function htmlize_field($field,$module)
30 $raw=extract_field($field,$module);
31 foreach (explode("\n", $raw) as $line) {
39 } else if ($line[0] == " " || $line[0] == "\t") {
58 $result .= $line . "\n";