2 require("config.inc.php");
3 require("header.inc.php");
4 $res = mysql_query("select path from file where id=$id");
5 if (!list($page)=mysql_fetch_row($res)) {
6 echo "file $id not found";
7 include("footer.inc.php");
12 <h1
>Dependencies
for <?php
echo $page; ?
></h1
>
14 Current context is highlighted in yellow
.<br
/>
15 <a href
="list.php">back to file
list</a
>
18 <h2
>files that
<?php
echo $page; ?
> depends on
</h2
>
26 $res = mysql_query("select dep.dir,dep.type,dep.dep,file.path from dep left join file on dep.dep=file.id where page=$id order by dep.dir");
27 while (list($dir,$type,$cid,$cpath)=mysql_fetch_row($res)) {
28 $res2 = mysql_query("select path from dir where id=$dir");
29 list($dirname)=mysql_fetch_row($res2);
31 <tr
<?php
if ($d==$dir) echo 'class="current"'; ?
>>
32 <td
><?php
echo $type; ?
></td
>
33 <td
><?php
echo $dirname; ?
></td
>
34 <td
><a href
="file.php?id=<?php echo $cid; ?>&d=<?php echo $dir; ?>"><?php
echo $cpath; ?
></a
></td
>
41 <h2
>files that depend on
<?php
echo $page; ?
></h2
>
49 $res = mysql_query("select dep.dir,dep.type,dep.page,file.path from dep left join file on dep.page=file.id where dep=$id order by dep.dir");
50 while (list($dir,$type,$pid,$ppath)=mysql_fetch_row($res)) {
51 $res2 = mysql_query("select path from dir where id=$dir");
52 list($dirname)=mysql_fetch_row($res2);
54 <tr
<?php
if ($d==$dir) echo 'class="current"'; ?
>>
55 <td
><?php
echo $type; ?
></td
>
56 <td
><?php
echo $dirname; ?
></td
>
57 <td
><a href
="file.php?id=<?php echo $pid; ?>&d=<?php echo $dir; ?>"><?php
echo $ppath; ?
></a
></td
>
66 require("footer.inc.php");