/*
Trip Pictures v1.0
Created by Paul O'Russa
Last modified 4/21/2005
*/
?>
Trip Pictures
require "header.inc"; ?>
function parseFile() {
$params = file("./default.ini") or die('Could not read ini file!');
$count = 0;
$first = true;
foreach ($params as $line) {
$line = rtrim($line, "\n\r");
//print "|$line|
";
//Skip empty commented lines.
if ($line == "" || substr($line,0,2) == "//")
continue;
$arData = explode("\t", $line);
if (count($arData) == 1) {
if (!$first) {
for ($i=$count; $i < 3; $i++)
print " | \n";
print "\n";
}
print "
" . $arData[0] . " |
";
print " \n";
$count = 0;
$first = false;
}
else {
if ($count > 2) {
print "\n
\n\n";
$count = 0;
}
print '
' . $arData[0] . '
' . $arData[1] . '
| ' . "\n";
$count++;
}
}
for ($i=$count; $i < 3; $i++)
print " | \n";
print "
\n";
}
?>