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 :  /proc/21571/root/home/queenjbs/yuchun/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21571/root/home/queenjbs/yuchun/admin/fp_write.php
<?include $_SERVER['DOCUMENT_ROOT']."/admin/adminTopMenu.html";?>
<script type="text/javascript">
function validate()
{
	if(!chkBlank(frm.usedate,"날짜를 입력하여 주십시요.")) {return false;}
	if(!chkDate(frm.usedate,"날짜 형식에 맞게 입력해 주세요\n\n예)2012-01-01")) {return false;}
	if(!chkBlank(frm.title,"제목을 기입하여 주십시요.")) {return false;}
	return true;
}

function go_List() {
	var f = document.form;
	f.action = 'fp.php';
	f.submit();
}

function goLang(lang_code) {
	var f = document.form;
	f.lang_code.value = lang_code;
	f.action = 'fp_write.php';
	f.submit();
}
</script>
 <?
 $tableName = "user_ranking";
 if($idx){
	$qry = "SELECT * FROM $tableName where no='$idx'";
	$result= mysql_query($qry,$db_con);
	$row = mysql_fetch_array($result);

	$loginDate = substr($row[logindate],0,10);
	$regDate = substr($row[reg_date],0,10);

	$naviChkName = "수정";
	$mode ="proc";
}else{

	$qry = "SELECT max(inning) as maxInning,enddate FROM $tableName";
	$result= mysql_query($qry,$db_con);
	$row = mysql_fetch_array($result);
	$inning = $row[maxInning] +1;
	if($inning =="") $inning=1;

	$enddateArr = explode("-",$row[enddate]);
	$month   = $enddateArr[1];
	$year    = $enddateArr[0];

	if(!$month) $month   = (int) date('m');
	if(!$year) $year   = (int) date('Y');;

	$startdate = date('Y-m-d', mktime(0, 0, 0, $month + 1, 1, $year)); //first
	$enddate = date('Y-m-d', mktime(0, 0, 0, $month + 7, 0, $year)); //last //6개월month+7

	//$startdate = date("Y")."-".date("m")."-01";
	//$enddate = $today;
	$naviChkName = "등록";
	$mode ="";
}
 ?>
<div id="contents">
<h2>FAN POINT (FP)</h2>
<div id="content">
<form name="form" method="post" action="./Proc/fp_proc.php" onsubmit="return validate();" enctype="multipart/form-data">
	<input type="hidden" name="mode" value="<?=$mode?>">
	<input type="hidden" name="idx" value="<?=$idx?>">
	<table class="write" summary="관리자모드 게시판입니다" cellspacing="0" >
		<colgroup>
			<col width="80"/>
			<col />
		</colgroup>
			<tbody>
				<tr>
					<th>회차</th>
					<td><input type="text" class="title" name="inning" value="<?=$inning?>"/></td>
				</tr>
				<tr>
					<th>시작일</th>
					<td><input type="text" class="title" name="startdate" value="<?=$startdate?>"/></td>
				</tr>
				<tr>
					<th>종료일</th>
					<td><input type="text" class="title" name="enddate" value="<?=$enddate?>"/></td>
				</tr>
				<tr>
					<th>&nbsp;</th>
					<td>*등록할시 모든포인트가 등록된 시작일에 맞춰 계산됩니다. 꼭 신중하게 등록해주세요.</td>
				</tr>

			</tbody>
		</table>
		<div class="btn">
			<input type="submit" value="<?=$naviChkName?>하기" name="" class="btn_red" />
			<input type="button" value="목록보기" class="btn_blue" onClick="go_List();" />
	</div>
	</form>
</div>
<p></p>
</body>
</html>

Anon7 - 2021