if(!$doumy_ad_no){ echo"";
exit;
}
include "dbopen.inc";
//// include "process.inc";
$ad_no1=substr($doumy_ad_no, 0, 3);
$folder="0".$ad_no1;
$saveDir="/$DOCUMENT_ROOT/ad_page/$folder";
####À̹ÌÁö ¾÷·Îµå, µ¤¾î¾²±â ¸ðµå ######
if($picMode=="picUp" and $no){
///À̹ÌÁö ¿Ã¸®±â
if($pic1_name!=""){
$filecode=explode(".",$pic1_name);
$filecode[1]=strtolower($filecode[1]);
if($filecode[1]!="gif" and $filecode[1]!="jpg" and $filecode[1]!="jpeg" ){ echo ""; exit;}
if($pic1_size>200000){ echo ""; exit; }
$picfileNo=$no."-1"; //**ÀúÀåÇÒ À̹ÌÁöÀÇ ÆÄÀϸí: $picfileNo
$picName=$picfileNo.".".$filecode[1];
if($filecode[1]=="gif"){ $picName1=$picfileNo.".jpg"; }else { $picName1=$picfileNo.".gif"; }
if(file_exists("$saveDir/$picName1")){unlink("$saveDir/$picName1");}
copy($pic1, "$saveDir/$picName"); //**ÀúÀåÇÒ Æú´õ°æ·Î(Àý´ë): $saveDir
unlink($pic1); //Àӽ÷ÎÀúÀåÇß´ø±×¸²»èÁ¦
$temp1=$folder."/".$picName; //db¿¡ ÀúÀåÇÒ ºÎºÐ
echo ("");
$filecode[1]="";
}
else
{ $temp1=""; }
if($pic2_name!=""){
$filecode=explode(".",$pic2_name);
$filecode[1]=strtolower($filecode[1]);
if($filecode[1] != "gif" and $filecode[1] != "jpg" and $filecode[1] != "jpeg" ){ echo ""; exit;}
if($pic2_size>200000){ echo ""; exit; }
$picfileNo=$no."-2"; //**ÀúÀåÇÒ À̹ÌÁöÀÇ ÆÄÀϸí: $picfileNo
$picName=$picfileNo.".".$filecode[1];
if($filecode[1]=="gif"){ $picName1=$picfileNo.".jpg"; }else { $picName1=$picfileNo.".gif"; }
if(file_exists("$saveDir/$picName1")){unlink("$saveDir/$picName1");}
copy($pic2, "$saveDir/$picName"); //**ÀúÀåÇÒ Æú´õ°æ·Î(Àý´ë): $saveDir
unlink($pic2); //Àӽ÷ÎÀúÀåÇß´ø±×¸²»èÁ¦
$temp2=$folder."/".$picName; //db¿¡ ÀúÀåÇÒ ºÎºÐ
echo ("");
}
else
{ $temp2=""; }
if($pic3_name!=""){
$filecode=explode(".",$pic3_name);
$filecode[1]=strtolower($filecode[1]);
if($filecode[1] != "gif" and $filecode[1] != "jpg" and $filecode[1] != "jpeg" ){ echo ""; exit;}
if($pic3_size>200000){ echo ""; exit; }
$picfileNo=$no."-3"; //**ÀúÀåÇÒ À̹ÌÁöÀÇ ÆÄÀϸí: $picfileNo
$picName=$picfileNo.".".$filecode[1];
if($filecode[1]=="gif"){ $picName1=$picfileNo.".jpg"; }else { $picName1=$picfileNo.".gif"; }
if(file_exists("$saveDir/$picName1")){unlink("$saveDir/$picName1");}
copy($pic3, "$saveDir/$picName"); //**ÀúÀåÇÒ Æú´õ°æ·Î(Àý´ë): $saveDir
unlink($pic3); //Àӽ÷ÎÀúÀåÇß´ø±×¸²»èÁ¦
$temp3=$folder."/".$picName; //db¿¡ ÀúÀåÇÒ ºÎºÐ
echo ("");
}
else
{ $temp3=""; }
if($pic4_name!=""){
$filecode=explode(".",$pic4_name);
$filecode[1]=strtolower($filecode[1]);
if($filecode[1] != "gif" and $filecode[1] != "jpg" and $filecode[1] != "jpeg" ){ echo ""; exit;}
if($pic4_size>200000){ echo ""; exit; }
$picfileNo=$no."-4"; //**ÀúÀåÇÒ À̹ÌÁöÀÇ ÆÄÀϸí: $picfileNo
$picName=$picfileNo.".".$filecode[1];
if($filecode[1]=="gif"){ $picName1=$picfileNo.".jpg"; }else { $picName1=$picfileNo.".gif"; }
if(file_exists("$saveDir/$picName1")){unlink("$saveDir/$picName1");}
copy($pic4, "$saveDir/$picName"); //**ÀúÀåÇÒ Æú´õ°æ·Î(Àý´ë): $saveDir
unlink($pic4); //Àӽ÷ÎÀúÀåÇß´ø±×¸²»èÁ¦
$temp4=$folder."/".$picName; //db¿¡ ÀúÀåÇÒ ºÎºÐ
echo ("");
}
else
{ $temp4=""; }
if($mapyn==1 and $map_name!=""){
$filecode=explode(".",$map_name);
$filecode[1]=strtolower($filecode[1]);
if($filecode[1] != "gif" and $filecode[1] != "jpg" and $filecode[1] != "jpeg"){ echo ""; exit;}
if($map_size>200000){ echo ""; exit; }
$picfileNo=$no."-map"; //**ÀúÀåÇÒ À̹ÌÁöÀÇ ÆÄÀϸí: $picfileNo
$picName=$picfileNo.".".$filecode[1];
if($filecode[1]=="gif"){ $picName1=$picfileNo.".jpg"; }else { $picName1=$picfileNo.".gif"; }
if(file_exists("$saveDir/$picName1")){unlink("$saveDir/$picName1");}
copy($map, "$saveDir/$picName"); //**ÀúÀåÇÒ Æú´õ°æ·Î(Àý´ë): $saveDir
unlink($map); //Àӽ÷ÎÀúÀåÇß´ø±×¸²»èÁ¦
$tempmap=$folder."/".$picName; //db¿¡ ÀúÀåÇÒ ºÎºÐ
echo ("");
}
else
{ $tempmap=""; }
if($mainskin_name!=""){
$filecode=explode(".",$mainskin_name);
$filecode[1]=strtolower($filecode[1]);
if($filecode[1] != "gif" and $filecode[1] != "jpg" and $filecode[1] != "jpeg"){ echo ""; exit;}
if($mainskin_size>200000){ echo ""; exit; }
$picfileNo=$no."-mainskin"; //**ÀúÀåÇÒ À̹ÌÁöÀÇ ÆÄÀϸí: $picfileNo
$picName=$picfileNo.".".$filecode[1];
if($filecode[1]=="gif"){ $picName1=$picfileNo.".jpg"; }else { $picName1=$picfileNo.".gif"; }
if(file_exists("$saveDir/$picName1")){unlink("$saveDir/$picName1");}
copy($mainskin, "$saveDir/$picName"); //**ÀúÀåÇÒ Æú´õ°æ·Î(Àý´ë): $saveDir
unlink($mainskin); //Àӽ÷ÎÀúÀåÇß´ø±×¸²»èÁ¦
$tempskin=$folder."/".$picName; //db¿¡ ÀúÀåÇÒ ºÎºÐ
echo ("");
$tempskin=0;
}
///À̹ÌÁö ¿Ã¸®±â ³¡
////DBÀúÀå
$up_day= date("Ymd H½ÃiºÐ"); //¼öÁ¤½Ã°£
$str_pic="";
if($temp1 !="") { $str_pic=$str_pic."pic1='".$temp1."',"; }
if($temp2 !="") { $str_pic=$str_pic."pic2='".$temp2."',"; }
if($temp3 !="") { $str_pic=$str_pic."pic3='".$temp3."',"; }
if($temp4 !="") { $str_pic=$str_pic."pic4='".$temp4."',"; }
if($tempmap !="") { $str_pic=$str_pic."map='".$tempmap."',"; }
if($tempskin =="0") { $str_pic=$str_pic."title_no='0',"; }
if($titlehd=="ok") { $str_pic=$str_pic."title_no='-1',"; } ///»óÈ£¾Èº¸ÀÌ°Ô ÇÒ¶§
else if($t_no=="-1" and $titlehd!="ok")
{ $str_pic=$str_pic."title_no='0',"; } ///»óÈ£¾ÈÀÌ°Ô ÇÒ¶§
$result = mysql_query("update doumy_data set ".$str_pic." up_day='$up_day' where no = '$no'");
if(!$result) {
$errorNo = mysql_errno();
$errorMsg = mysql_error();
echo "QUERY_ERROR" . $errorNo . ":" . $errorMsg;
exit;
}
if($conn){mysql_query($conn);}
/// ÀúÀåÈÄ À̵¿¸µÅ©
if($no<=19172) {
echo "";
exit;
}
else
{
echo "";
exit;
}
} ///pinMode if¹® ³¡
include "process.inc";
#############ÀڱⱤ°í°¡ ¾Æ´Ï¸é ¼öÁ¤ ¾ÈµÊ############
$res1 = mysql_query("select no, ad_no from doumy_data where ad_no='$doumy_ad_no'");
$res1_row=mysql_fetch_array($res1);
mysql_free_result($res1);
if($res1_row[no]!=$no){
echo "";
exit;
}
?>
±¤°í´Â µµ¿ì¹Ì114¿¡¼!!
|
|
$mainskin="skin/$resRow[title_no]".".gif";
if($resRow[title_no]=="0" or $resRow[title_no]=="-1"){
if(file_exists("../$adFolder/$resRow[no]"."-mainskin.gif")){ $mainskin="../$adFolder/$resRow[no]"."-mainskin.gif"; }
else if(file_exists("../$adFolder/$resRow[no]"."-mainskin.jpg")){ $mainskin="../$adFolder/$resRow[no]"."-mainskin.jpg"; }
}
?>
$title2=strip_tags($resRow[title]);
if($resRow[title_no]=="-1") {
echo "";
echo " | $upjong2";
if($upjong3!="") { echo " $upjong3"; }
echo " | ";
}else{
if(strlen($title2)<=24) {
echo "";
echo " | $upjong2";
if($upjong3!="") { echo " $upjong3"; }
echo " | ";
}else{
echo "";
echo " | $upjong2";
if($upjong3!="") { echo " $upjong3"; }
echo " | ";
}
} ///$Á¶°Ç´ÝÀ½
?> |
|
|
|
">
|
if($doumy_id) { echo"".$doumy_id."´Ô ·Î±×ÀÎÁß!";}else{ echo"¼Õ´ÔÀ̽ʴϴÙ.";} ?>
if($doumy_ad_no==$resRow[ad_no]) { /// ±¤°íÁÖ¿¡°Ô¸¸ ±¤°í¸¶°¨ÀÏ º¸ÀÓ
if($resRow[ad_no]<'207-0370'){ $endY=substr($resRow[in_day],0,4) +1; }
else{ $endY=substr($resRow[in_day],0,4) +2; }
$endM=substr($resRow[in_day],4,2);
$endD=substr($resRow[in_day],6,2);
echo " | ±¤°í¸¶°¨ÀÏ:".$endY."/".$endM."/".$endD." ";
}
?>
if($doumy_id and $doumy_ad_no){ echo"·Î±×¾Æ¿ô"; }
else{ echo "°ü¸®ÀÚ"; }
?>
E-mail";} else {echo "E-mail";}?> >µµ¿ì¹ÌȨ |
|
|
|
|
|
|
|
|
|
|
$resRow[pre_p]";?> |
$resRow[next_p]";?> |
if($resRow[comment2]!=""){ echo " $resRow[comment2] | "; }
if($resRow[comment3]!=""){ echo " $resRow[comment3] | "; }
if($resRow[homepage]!=""){ echo " ȨÆäÀÌÁö | "; }
if($resRow[board]!=""){echo " °Ô ½Ã ÆÇ | "; }
if($resRow[map]!=""){echo " ¾à µµ | "; }
?>
|
|
|
if($doumy_ad_no==$resRow[ad_no]) { ?> ">"> } ?> |
»ç Áø ¼ö Á¤ |
|
|
|
|
|
if($resRow[addr]!=""){ echo " ÁÖ¼Ò : ".$resRow[addr]; }
if(substr($resRow[ceo_name],0,1)!="1"){echo " ´ëÇ¥ : $resRow[ceo_name]"; }
if(($resRow[tel1]!="")||($resRow[tel2]!="")){
echo " ";
echo " Tel : ".$resRow[tel1];
if($resRow[tel2]!=""){ echo " / ".$resRow[tel2]; }
}
if(($resRow[hp]!="")||($resRow[fax]!="")||($resRow[no_tel]!="")){ echo " ";}
if($resRow[hp]!=""){ echo " HP : ".$resRow[hp]; }
if($resRow[fax]!=""){ echo " FAX : ".$resRow[fax]; }
if($resRow[no_tel]!=""){ echo " ¹«·áÀüÈ : ".$resRow[no_tel]; }
if(($resRow[mail]!="")||($resRow[homepage]!="")){echo " ";}
if($resRow[mail]!=""){ echo " E-mail : ".$resRow[mail].""; }
if($resRow[homepage]!=""){ echo " ȨÆäÀÌÁö : ".$resRow[homepage].""; }
?> |
|
|
|
|
|
Copyright 2003 ¨Ï 114doumy.com All Rights Reserved [±¤°í½Åû]
|
|
|
|