File : key_kritsada.php. ID : 9149
Skin : Default | Sons-of-obsidian | Sunburst | Highlighter | Frame
<!DOCTYPE html><html lang="th"><head><title>กฤษฎา ตันเปาว์</title>
<meta charset="utf-8" />
<meta name="keywords" content="kritsada" />
<meta name="description" content="กฤษฎา ตันเปาว์" />
<link type="text/css" rel="stylesheet" href="rsp81.css" />
</head><body id="main" style="font-family:sawasdee;font-size:16px;">
<?php /* http://www.thaiall.com/web2/key.php?topic=kritsada_fb 
http://www.thaiall.com/web2/key_kritsada.php */
$ar = @file("../tec/handbook_tec_63.txt");
$found = false;
$i=0;	
$first_header = 0;
foreach($ar as $v){
  if($found){
    $v = str_replace(array(chr(147),chr(148)), array(chr(34), chr(34)), $v);
    $v = @iconv('tis-620','utf-8//ignore',$v);  // left + right double quotation
    if(strlen($v) <= 2) $i=0; /* windows = 2 but linux = 1 */
  }
  if(substr($v,1,14) == "kritsada:begin") { $found = true; $i++; } 
  elseif($found && $i++ == 1 && substr($v,0,1) != '[') { 
    if($first_header++ != 0) echo "</fieldset>";
    echo "<fieldset class='m_still'><legend>$v</legend>"; } 
  elseif($found && $i > 0 && strlen($v) > 2) { echo "&nbsp;$v<br/>";	} 
  if(substr($v,1,12) == "kritsada:end") $found = false;
}
echo "</fieldset>"; 		
?>
</body></html>