]+encoding)="(.+?)"/','\\1="'.$out_enc.'"',$source); } return simplexml_load_string($source); } $gisa_id = $_GET["id"]; $gisa_name = $_GET["name"]; if ($gisa_id == "") { ?> Header as $item) { $createdate = iconv("UTF-8","euc-kr",$item->CreateDate); $modifydate = iconv("UTF-8","euc-kr",$item->ModifyDate); $crmrelationname = iconv("UTF-8","euc-kr",$item->CmsRelationName); $newstitle = iconv("UTF-8","euc-kr",$item->NewsTitle); $subtitle = iconv("UTF-8","euc-kr",$item->SubTitleList); $photocount = iconv("UTF-8","euc-kr",$item->PhotoCount); settype($photocount, "integer"); $gijaname = iconv("UTF-8","euc-kr",$item->GijaID); $tmparr2 = array($modifydate, $crmrelationname, $newstitle, $subtitle, $photocount, $gijaname); array_push($list2, $tmparr2); } $ennewstitle = urlencode($newstitle); $dabletime = $modifydate; $modifydate = strtr($modifydate, "T", " "); $createdate = strtr($createdate, "T", " "); $list3 = array(); foreach($results2->NewsMetadata as $item) { $credit = iconv("UTF-8","euc-kr",$item->Credit); $largeclass = iconv("UTF-8","euc-kr",$item->NewsClassList->NewsClass->LargeClass['name']); $middleclass = iconv("UTF-8","euc-kr",$item->NewsClassList->NewsClass->MiddleClass['name']); $smallclass = iconv("UTF-8","euc-kr",$item->NewsClassList->NewsClass->SmallClass['name']); $tmparr3 = array($credit, $largeclass, $middleclass, $smallclass); array_push($list3, $tmparr3); } $list4 = array(); foreach($results2->WebContent as $item) { $webbody = iconv("UTF-8","euc-kr",$item->WebBody); $webtext = iconv("UTF-8","euc-kr",$item->WebText); $photosize = iconv("UTF-8","euc-kr",$item->AppendDataList->AppendData['ImageSizeType']); $tmparr4 = array($webbody, $photosize); array_push($list4, $tmparr4); } $dable_description = $webtext; $dable_description = str_replace("<", "", $dable_description); $dable_description = str_replace(">", "", $dable_description); $dabletitle = $newstitle; $dabletitle = str_replace("'", "'", $dabletitle); $dabletitle = str_replace(chr(34), """, $dabletitle); ?> "> "> "/> <? echo $newstitle; ?> :

    Է
    Է  | 
    0) { if ($list4[0][1] == "1") { $strLine = ereg_replace($file_id . "1.jpg" . "[^>]+>", $file_id . "1.jpg' width='540'>
    ", $strLine); } elseif ($list4[0][1] == "2") { $strLine = ereg_replace($file_id . "1.jpg" . "[^>]+>", $file_id . "1.jpg' width='250'>
    ", $strLine); } elseif ($list4[0][1] == "3") { $strLine = ereg_replace($file_id . "1.jpg" . "[^>]+>", $file_id . "1.jpg' width='180'>
    ", $strLine); } else { $strLine = ereg_replace($file_id . "1.jpg" . "[^>]+>", $file_id . "1.jpg'>
    ", $strLine); } } if (substr($newstitle, 0, 5) == "[" OR substr($newstitle, 0, 5) == "[캰" OR substr($newstitle, 0, 5) == "[2014") { ?>

    "); $midpoint1 = strpos($strLine,"

    "); if ($midpoint1 == "") { $midpoint1 = strpos($strLine,"

    "); } if ($midpoint1 == "") { $midpoint1 = strpos($strLine,"
    \n
    "); } $midpoint1 = $midpoint1 + 8; $strLine2 = substr($strLine,$midpoint1,$midpoint2); $midpoint3 = strpos($strLine2,"

    "); if ($midpoint3 == "") { $midpoint3 = strpos($strLine2,"

    "); } if ($midpoint3 == "") { $midpoint3 = strpos($strLine2,"
    \n
    "); $kk = 1; } $midpoint3 = $midpoint1 + $midpoint3 + 8 + $kk; $endpoint = strlen($strLine); ?>
    • 縮Ʈ
    • |
    • 縮Ʈ