$ver = "Version 2.254704";
# http://www.yonok.ac.th/lampang/lampanginfo/index.php?file=gt&sub=I05
# dte.txt
# 001Wat Phra That Lampang Luang
# 001
This temple lies 18 kms...
#
# 002Wat Phra Kaew Don Tao
# 002On the right bank of the Wang River is an old building which consists of an impressive chedi on a rectangular base with a round spire, topped with gilded bronze tiles. Nearby is a Burmese-style chapel featuring a multi - tiered roof. The chapel probably dates from the late eighteenth century. Beautiful colors and elaborate harmony make Wat Phra Kaew Don Tao a prime example of Thai architecture.
#
?>
จังหวัดลำปาง : ฐานข้อมูลจังหวัด (ข่าย lampang.net และ lovelampang.com)
if (empty($_GET{'sub'}) || empty($_GET{'file'})) {
if (!file_exists("d".$_GET{'file'}.".txt")) {
echo "โปรดเลือกฐานข้อมูล เพราะแสดงแฟ้มข้อมูลในฐานที่ท่านเลือก";
} else {
$rec = file("d".$_GET{'file'}.".txt");
$trec = count($rec);
$j=0;
$last = "start";
for ($i=$trec-1;$i>=0;$i--) {
if ($last <> substr($rec[$i],0,3) && strlen($rec[$i]) > 3 && $last <> "start") {
$head[$j] = $lastrec;
$j = $j + 1;
}
if (strlen($rec[$i]) > 3) {
$last = substr($rec[$i],0,3);
$lastrec= $rec[$i];
}
}
if (strlen($lastrec) > 3) { $head[$j] = $lastrec; }
echo "";
}
} else {
if (substr($DOCUMENT_ROOT,4,4) == "love") {
echo "";
} else {
echo "";
}
$rec = file("d" . $_GET{'file'} . ".txt");
$trec = count($rec);
$j = 0;
for ($i=0;$i<=$trec-1;$i++) {
if (substr($rec[$i],0,3) == $_GET{'sub'}) {
if ($j == 0) {
echo ":: ";
echo substr($rec[$i],3,strlen($rec[$i])-2)." :: |
";
$j = $j + 1;
} else {
$f2 = substr($rec[$i],3,2);
# if ($f2 == "";
# }
}
}
}
echo "
";
}
echo "";
?>