Source code :: Data.php

[Return]
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
##!/usr/bin/env python

<%page args="shot, page"/>

<%
    import os
    from pygolem_lite.web import cat, emph, get_page_paths
    page_path, base_path, page  = get_page_paths(shot, page)
%>



 <?php

 for ($i=1; $i<=2; $i++)
{

 if (file_exists("$i/")) {
   echo "<h3><a href='$i/'> Camera $i</a></h3><ul>";
   $thelist="";

 if ($handle = opendir("$i/")) {
   while (false !== ($file = readdir($handle)))
      {
          if ($file != "." && $file != "..")
          {
                $thelist .= '<a href="'.$i.'/'.$file.'">'.$file.'</a><br>';
          }
       }
  closedir($handle);
  }
  echo "<p>$thelist</p></ul>";
 }
}

if (file_exists("tomography/")) {

   echo "<h3><a href='tomography/'> Tomography</a></h3><ul>";
 $thelist="";
 if ($handle = opendir("tomography/")) {
   while (false !== ($file = readdir($handle)))
      {
          if ($file != "." && $file != "..")
          {
                $thelist .= '<a href="tomography/'.$file.'">'.$file.'</a><br>';
          }
       }
  closedir($handle);
  }
  echo "<p>$thelist</p></ul>";
}
?>
 


 
<h3> Makefile: </h3>
<ul>
<li><a href='makefile'>Makefile</a></li>
</ul>

Navigation