4 include('menulist.html');
5 include('configuration');
6 include('search.html');
7 $handle = sqlite3_open($db) or die("Could not open database");
8 $query = "select * from search where module=\"".$_GET['module']."\"";
9 $result = sqlite3_query($handle, $query) or die("Error in query: ".sqlite3_error($handle));
10 $row = sqlite3_fetch_array($result);
12 if (!file_exists($repopath . $ccan_home_dir.$_GET['module']."/".$_GET['module'].".tar")) {
14 exec("tar -cvvf ".$ccan_home_dir. $_GET['module']. "/". $_GET['module'].".tar ". $ccan_home_dir.$_GET['module'], $status);
18 if (!file_exists($repopath . $ccan_home_dir.$_GET['module']."/".$_GET['module']."_dep.tar")) {
20 exec($create_dep_tar." ".$ccan_home_dir.$_GET['module'], $status);
26 <table align="center" bgcolor="lightblue" width="70%" border="0" cellpadding="3" cellspacing="1">
27 <tr align="center" bgcolor="FFFFCC">
28 <td width="50%"><a href=<?=$repopath . $ccan_home_dir.$_GET['module']?>/<?=$_GET['module']?>.tar>Download</a></td>
29 <td><a href=<?=$repopath . $ccan_home_dir.$_GET['module']?>/<?=$_GET['module']?>_dep.tar>Download Dependencies</a></td>
32 <table align="center" bgcolor="lightblue" width="70%" border="0" cellpadding="8" cellspacing="1">
33 <tr align="left" bgcolor="FFFFCC">
34 <td><h3>Module: </h3> <pre><?=$row['module'];?></pre> </td>
37 <tr align="left" bgcolor="FFFFCC">
38 <td><h3>Title: </h3> <pre><?=$row['title'];?> </pre></td>
41 <tr align="left" bgcolor="FFFFCC">
42 <td><h3>Author: </h3> <pre><a href=search.php?author=<?=$row['author'];?>><?=$row['author'];?></a></pre></td>
45 <tr align="left" bgcolor="FFFFCC">
46 <td><h3>Description: </h3> <pre><?=$row['desc'];?></pre></td>