스테미나 앵꼬
어제 오전에 출근해서 립(맥폰트 제어프로그램인데 디자이너분들은 아실지도..)서버 메인보드가 사망하는 바람에 이제야 퇴근하네요 ㅜ.ㅜ 펜티엄3는 너무 간만에 만져봐서ㅜ.ㅜ
완전 약한거 같네요 어질어질하면서 뽀옹가네요
섭스로 os깔면서 잠깐 손본 감자님 스킨입니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$img_width = 302; //큰 썸네일 가로
$img_height = 203; //큰 썸네일 세로
$img_quality = 100; //썸네일 퀄리티
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb_ch13';
$ym = date("ym", $g4[server_time]);
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
//코멘트와 리플글은 제외
$sql = " select * from $tmp_write_table
where wr_comment = '' and wr_reply = ''
order by wr_id DESC LIMIT 0, 1 ";
$result = sql_query($sql);
$last_con = sql_fetch_array($result);
?>
<SCRIPT type=text/javascript>
<!--
old_debate_R='1';
function ComeonR(objid_R){
document.getElementById("debate_R"+old_debate_R).style.display="none";
document.getElementById("debate_R"+old_debate_R+"#1").style.display="";
document.getElementById("debate_R"+objid_R+"#1").style.display="none";
document.getElementById("debate_R"+objid_R).style.display="";
document.getElementById("debate_content_R"+old_debate_R).style.display="none";
document.getElementById("debate_content_R"+objid_R).style.display="";
old_debate_R=objid_R;
}
var objid_R = 1;
var interval_best;
function best_change_R()
{
if( objid_R == <?=count($list)?> ) // 드렁크수달스님의 팁
objid_R = 1;
else
objid_R++;
ComeonR(objid_R);
}
function setInterval_best()
{
interval_best = setInterval("best_change_R()", 4000);//속도조절
}
function clearInterval_best()
{
clearInterval(interval_best);
}
setInterval_best();
//-->
</SCRIPT>
<SCRIPT type=text/javascript>
// PNG관련
function setPng24(obj) {
obj.width=obj.height=1;
obj.className=obj.className.replace(/\bpng24\b/i,'');
obj.style.filter =
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
obj.src='';
return '';
}
</SCRIPT>
<!-- png파일관련-->
<style type="text/css">
.png24 {
tmp:expression(setPng24(this));
}
</style>
<style type="text/css">
.png24 { tmp:expression(setPng24(this)); }
</style>
<!-- png파일관련 끝 -->
<div style="width:100%; height:203px; background:url(<?=$latest_skin_path?>/img/allbg.jpg) no-repeat;">
<div id="layer" style="left:0px; top:18px; width:302px; height:203px; position:absolute; z-index:1;">
<img src="<?=$latest_skin_path?>/img/layer_bg.png" class="png24" width="302" height="203" border="0">
</div>
<? for ($i=0; $i<count($list); $i++) {
$j = $i + 1;
if ($j == "1") {
echo "<DIV id=debate_content_R$j onmouseover=clearInterval_best() onmouseout=setInterval_best()>";
} else {
echo "<DIV id=debate_content_R$j onmouseover=clearInterval_best() onmouseout=setInterval_best() style='DISPLAY: none;'>\n";
}
?>
<div style="float:left;width:302px;padding:18px 0 0 0px;">
<?
//썸네일 생성
$thumfile = "";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
// 썸네일 이미지가 존재하지 않는다면
if (!file_exists($thumb)) {
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
// 업로드된 파일이 이미지라면
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file)) {
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;
$rate = $img_width / $size[0];
$height = (int)($size[1] * $rate);
// 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면
if ($height < $img_height)
// 계산된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $height);
else
// 설정된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $img_height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
} else { //게디터에서 삽입한 이미지 뽑자ㅠㅠ
$edit_img = $list[$i]['wr_content'];
if (eregi("data/cheditor4/{$ym}/[^<>]*\.(gif|jpg|png|bmp)", $edit_img, $tmp)) { // data/geditor------
$file = './' . $tmp[0]; // 파일명
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;
$rate = $img_width / $size[0];
$height = (int)($size[1] * $rate);
// 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면
if ($height < $img_height)
// 계산된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $height);
else
// 설정된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $img_height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
}
if (file_exists($thumb))
$thumfile = "<img src='$thumb' width='{$img_width}' height='{$img_height}' border='0' style='border:0px #ccc solid'></a>";
else
//이미지가 없으면
$thumfile="<img src='$latest_skin_path/img/noimg.gif' width='{$img_width}' height='{$img_height}' style='border:0 #E7E7E7 solid'></a>";
//이미지가 아니네
if(preg_match("/\.(swf|wma|asf)$/i","$file") && file_exists($file))
{ $thumfile = "<script>doc_write(flash_movie('$file', 'flash$i', '$img_width', '$img_height', 'transparent'));</script>"; }
?><a href='<?=$list[$i][href]?>'><?=$thumfile?></a>
</div>
<div style="float:right; height:160px; padding:22px 20px 0 15px;">
<p style="font-size:17px; letter-spacing:-1px; line-height:30px;">
<a href='<?=$list[$i][href]?>'><strong><?=$list[$i][subject]?></strong></a></span>
<br />
<p style="font-size:12px; letter-spacing:-1px; line-height:17px; color:#999;"><?=cut_str(strip_tags($list[$i][wr_content]),270,"...more")?></p>
</div>
<?
echo "</DIV>";
}
?>
<div style="float:right; width:315px; padding:0 0 0 0px;">
<? for ($i=0; $i<count($list); $i++) {
$k = $i + 1;
$img_width_s = 53; //작은 썸네일 가로
$img_height_s = 45; //작은 썸네일 세로
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
$thumb2 = $thumb_path.'/'.$list[$i][wr_id];
?>
<a href='<?=$list[$i][href]?>'onmouseover="javascript:ComeonR('<?=$k?>')"><img src="<?=$thumb2?>" width="<?=$img_width_s?>" height="<?=$img_height_s?>" hspace="0" id="debate_R<?=$k?>" onmouseover="clearInterval_best()" onmouseout="setInterval_best()" <? if($k == "1") { echo "style='border:2px solid #FF6319;' ";} else { echo "style='DISPLAY: none; border:2px solid #FF6319;' ";} ?>><img src="<?=$thumb2?>" width="<?=$img_width_s?>" height="<?=$img_height_s?>" hspace="0" border="0" id="debate_R<?=$k?>#1" <? if($k == "1") { echo "style='DISPLAY: none; border:2px solid #FFFFFF;'"; } else { echo "style='border:2px solid #FFFFFF;'";} ?>></a><? } ?>
</div>
</div>
댓글 1개
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=92493