X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;ds=inline;f=web%2Findex.php;fp=web%2Findex.php;h=20f400c527eb54e19add80b8cdbcde21783a8a77;hb=58e2f5cb465ee8b5cacc8a05c10dc11b0765cc83;hp=0000000000000000000000000000000000000000;hpb=d2c982b37f3c4373e99e7c60c19d048de02b5919;p=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"]."

'; +?>