From: Rusty Russell Date: Mon, 11 Aug 2008 05:11:42 +0000 (+1000) Subject: Add main index page. Needs more polish. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=58e2f5cb465ee8b5cacc8a05c10dc11b0765cc83 Add main index page. Needs more polish. --- diff --git a/web/index.html b/web/index.html deleted file mode 100644 index b3e3c954..00000000 --- a/web/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - -ccan - - - - - - diff --git a/web/index.php b/web/index.php new file mode 100644 index 00000000..20f400c5 --- /dev/null +++ b/web/index.php @@ -0,0 +1,40 @@ +Please enter some keyword to search'; + exit(); + } +} +else if($_GET['author'] != '') { + $searchtext = $_GET['author']; + $in = "author"; +} +else if ($_GET['disp'] == 'all') { + $searchtext = ""; + $in = "module"; +} +else + exit(); + +$result = searchdb($searchtext, $in, $db); +echo ''; +if($row = sqlite3_fetch_array($result)) + echo ""; +else + echo '
No results found
'; +while($row = sqlite3_fetch_array($result)) { + echo ""; +} +echo '
".$row["module"]."
". + "".$row["author"]." : ". $row["title"]."

".$row["module"]."
". + "".$row["author"]." : ". $row["title"]."

'; +?> diff --git a/web/main.html b/web/main.html new file mode 100644 index 00000000..773e3a13 --- /dev/null +++ b/web/main.html @@ -0,0 +1,46 @@ +

CCAN provides two kinds of useful C +code: junkcode is a +collection of uploaded code with no particular order, and + +CCAN modules are more structured, +with documentation, dependencies and testcases. + +

+ +

Using The Code

+ +

+ +You can search, browse summary pages for all the modules or use the +Bazaar repository +at http://ccan.ozlabs.org/repo. + +

+ +

Contributing Code

+ +

+You can upload a .tar.gz, .tar.bz, .tar or .zip +containing C code; if you have not created an account this won't be +visible until the contents have been checked by a human. +

+ +

"GPLv2 or later" and supersets thereof (eg. LGPLv2+ or BSD) +licenses preferred. +

+ +

Questions?

+ +

+We have a low volume +mailing list for discussion of CCAN in general, and you're welcome +to join. +

+ +

+We also have an IRC channel: #ccan on Freenode. +

+ +

+We also have a wiki; feel free to enhance it. +

diff --git a/web/menulist.html b/web/menulist.html index 6e7e63b0..7e0232cb 100644 --- a/web/menulist.html +++ b/web/menulist.html @@ -27,4 +27,4 @@ session_start(); Logout -
\ No newline at end of file +