|
|
Logbook
|
|
Reports and pictures of our trips: |
";
while(false !== ($entry = $folder->read()))
{
if($entry!=="." && $entry!=="..")
{
$year[$x] = $entry;
$x++;
$test = $entry;
}
}
$x=0;
foreach($year as $val)
{
if(($val==$test && $x==0)|| $val==$anno)
{
echo "$val ";
$dat = $val;
$x++;
}
else
{
$url ="http://localhost/inula/deu/d_Destinations.php?anno=$val";
echo "$val ";
}
}
echo " | | Kurzberichte und Fotos unserer Fahrten | ";
if(file_exists($dat."/".$dat.".txt"))
{
$handle = fopen($dat."/".$dat.".txt","r");
while ($line = fgets($handle,1000))
{
if(substr($line,0,1)=="<" && strlen($line)!==6)//
{
$bild=substr($line,1,2);
echo "| ".substr($line,4)." | ";
}
}
fclose($handle);
}
else
{
echo "| ".$dat."/".$dat.".txt | ";
}
/*$path =getcwd()."/".$dat;
$folder = dir($path);
while(false !== ($entry = $folder->read()))
{
if($entry!=="." && $entry!=="..")
{
echo "".str_replace("-"," / ",str_replace('_',' ',$entry))."
| ";
}
}*/
?>
|
|