묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
<?
if(eregi(".jpg|.png|.gif|.jpeg|.bmp",$data['file_name1'])&&eregi(".jpg|.png|.gif|.jpeg|.bmp",$data['file_name2'])&&@file_exists($data['+ '+ 'file_name1'])&&@file_exists($data['file_name2'])) {
//사진이 2장 있을때 부분 시작
if($data[is_secret]==1) {
$screenshot = "skin/gallery/secret_write.gif";
$screenshot1 = "<img src=skin/gallery/secret_write.gif width=200 height=150 border=0 class=shadow>";
$screenshot2 = "<img src=skin/gallery/secret_write.gif width=200 height=150 border=0 class=shadow>";
} else {
$screenshot = $data['file_name1'];
$screenshot1 = "<img src=".$data['file_name1']." width=200 height=150 border=0 class=shadow>";
$screenshot2 = "<img src=".$data['file_name2']." width=200 height=150 border=0 class=shadow_vt>";
}
$scrno = 2;
$image_info = @getimagesize($screenshot);
if($image_info[0]>40) {
$_x = 40;
$_y = 30;
}
else {
$_x = $image_info[0];
$_y = $image_info[1];
}
$img_a = "<a href=".$view_file."?$href$sort&no=$data[no] onfocus='this.blur()' onmousemove="msgposit_list2();" onmouseout="msghide_list2();" onmouseover="msgset_list2('.$screenshot1..$screenshot2.','');">";
$img_a2 = "</a>";
// 사진이 2장 있을때 부분 끝
}
// 1번 업로드 항목 제어
else if(eregi(".jpg|.png|.gif|.jpeg|.bmp",$data['file_name1'])&&@file_exists($data['file_name1'])) {
if($data[is_secret]==1) {
$screenshot = "skin/gallery/secret_write.gif";
$screenshot1 = "<img src=skin/gallery/secret_write.gif width=200 height=150 border=0 class=shadow>";
} else {
$screenshot = $data['file_name1'];
$screenshot1 = "<img src=".$data['file_name1']." width=200 height=150 border=0 class=shadow>";
}
$scrno = 1;
$image_info = @getimagesize($screenshot);
if($image_info[0]>40) {
$_x = 40;
$_y = 30;
}
else {
$_x = $image_info[0];
$_y = $image_info[1];
}
$img_a = "<a href=".$view_file."?$href$sort&no=$data[no] onfocus='this.blur()' onmousemove="msgposit_list2();" onmouseout="msghide_list2();" onmouseover="msgset_list2('.$screenshot1.','');">";
$img_a2 = "</a>";
}
// 2번 업로드 항목 제어
else if(eregi(".jpg|.png|.gif|.jpeg|.bmp",$data['file_name2'])&&@file_exists($data['file_name2'])) {
if($data[is_secret]==1) {
$screenshot = "skin/gallery/secret_write.gif";
$screenshot2 = "<img src=skin/gallery/secret_write.gif width=200 height=150 border=0 class=shadow>";
} else {
$screenshot = $data['file_name2'+ '];
$screenshot2 = "<img src=".$data['file_name2']." width=200 height=150 border=0 class=shadow>";
}
$scrno = 1;
$image_info = @getimagesize($screenshot);
if($image_info[0]>40) {
$_x = 40;
$_y = 30;
}
else {
$_x = $image_info[0];
$_y = $image_info[1];
}
$img_a = "<a href=".$view_file."?$href$sort&no=$data[no] onfocus='this.blur()' onmousemove="msgposit_list2();" onmouseout="msghide_list2();" onmouseover="msgset_list2('.$screenshot2.','');">";
$img_a2 = "</a>";
} else {
$screenshot=$dir."/noscreenshot.gif";
$scrno = 0;
$_x = 40;
$_y = 30;
$img_a = $img_a2 = "";
}
unset($_m);
unset($line);
$_m = explode("n",strip_tags($data['memo']));
for($i=0;$i<count($_m);$i++) if(trim($_m[$i])) $line[] = $_m[$i];
$tmp_memo = $line[0]."".$line[1];
$tmp_memox = cut_str(stripslashes($tmp_memo),50);
$tmp_memox.="";
?>
위소스는 업로드 파일 1 , 2 를 뽑아내는 부분인데..저기에서 업로드 그림파일이 아닌
회원 사진을 뽑아낼려면 어느부분을 어떻게수정해야되나요? 제발 알려주세요~ㅠ.ㅠ
아래소스에서 회원사진을 출력할려면..
2003.10.28 10:57
<?
if(eregi(".jpg|.png|.gif|.jpeg|.bmp",$data['file_name1'])&&eregi(".jpg|.png|.gif|.jpeg|.bmp",$data['file_name2'])&&@file_exists($data['+ '+ 'file_name1'])&&@file_exists($data['file_name2'])) {
//사진이 2장 있을때 부분 시작
if($data[is_secret]==1) {
$screenshot = "skin/gallery/secret_write.gif";
$screenshot1 = "<img src=skin/gallery/secret_write.gif width=200 height=150 border=0 class=shadow>";
$screenshot2 = "<img src=skin/gallery/secret_write.gif width=200 height=150 border=0 class=shadow>";
} else {
$screenshot = $data['file_name1'];
$screenshot1 = "<img src=".$data['file_name1']." width=200 height=150 border=0 class=shadow>";
$screenshot2 = "<img src=".$data['file_name2']." width=200 height=150 border=0 class=shadow_vt>";
}
$scrno = 2;
$image_info = @getimagesize($screenshot);
if($image_info[0]>40) {
$_x = 40;
$_y = 30;
}
else {
$_x = $image_info[0];
$_y = $image_info[1];
}
$img_a = "<a href=".$view_file."?$href$sort&no=$data[no] onfocus='this.blur()' onmousemove="msgposit_list2();" onmouseout="msghide_list2();" onmouseover="msgset_list2('.$screenshot1..$screenshot2.','');">";
$img_a2 = "</a>";
// 사진이 2장 있을때 부분 끝
}
// 1번 업로드 항목 제어
else if(eregi(".jpg|.png|.gif|.jpeg|.bmp",$data['file_name1'])&&@file_exists($data['file_name1'])) {
if($data[is_secret]==1) {
$screenshot = "skin/gallery/secret_write.gif";
$screenshot1 = "<img src=skin/gallery/secret_write.gif width=200 height=150 border=0 class=shadow>";
} else {
$screenshot = $data['file_name1'];
$screenshot1 = "<img src=".$data['file_name1']." width=200 height=150 border=0 class=shadow>";
}
$scrno = 1;
$image_info = @getimagesize($screenshot);
if($image_info[0]>40) {
$_x = 40;
$_y = 30;
}
else {
$_x = $image_info[0];
$_y = $image_info[1];
}
$img_a = "<a href=".$view_file."?$href$sort&no=$data[no] onfocus='this.blur()' onmousemove="msgposit_list2();" onmouseout="msghide_list2();" onmouseover="msgset_list2('.$screenshot1.','');">";
$img_a2 = "</a>";
}
// 2번 업로드 항목 제어
else if(eregi(".jpg|.png|.gif|.jpeg|.bmp",$data['file_name2'])&&@file_exists($data['file_name2'])) {
if($data[is_secret]==1) {
$screenshot = "skin/gallery/secret_write.gif";
$screenshot2 = "<img src=skin/gallery/secret_write.gif width=200 height=150 border=0 class=shadow>";
} else {
$screenshot = $data['file_name2'+ '];
$screenshot2 = "<img src=".$data['file_name2']." width=200 height=150 border=0 class=shadow>";
}
$scrno = 1;
$image_info = @getimagesize($screenshot);
if($image_info[0]>40) {
$_x = 40;
$_y = 30;
}
else {
$_x = $image_info[0];
$_y = $image_info[1];
}
$img_a = "<a href=".$view_file."?$href$sort&no=$data[no] onfocus='this.blur()' onmousemove="msgposit_list2();" onmouseout="msghide_list2();" onmouseover="msgset_list2('.$screenshot2.','');">";
$img_a2 = "</a>";
} else {
$screenshot=$dir."/noscreenshot.gif";
$scrno = 0;
$_x = 40;
$_y = 30;
$img_a = $img_a2 = "";
}
unset($_m);
unset($line);
$_m = explode("n",strip_tags($data['memo']));
for($i=0;$i<count($_m);$i++) if(trim($_m[$i])) $line[] = $_m[$i];
$tmp_memo = $line[0]."".$line[1];
$tmp_memox = cut_str(stripslashes($tmp_memo),50);
$tmp_memox.="";
?>
위소스는 업로드 파일 1 , 2 를 뽑아내는 부분인데..저기에서 업로드 그림파일이 아닌
회원 사진을 뽑아낼려면 어느부분을 어떻게수정해야되나요? 제발 알려주세요~ㅠ.ㅠ