0){ $subdiridx = $subdiridx +1; $uri_tail = substr( $uri_tail,$subdiridx); } //echo "uri------ ".$uri_tail."\n" ; $uid = $uri_tail ; if( is_numeric($uri_tail) ) { $uid = $uri_tail ; include "a_log.php"; include "product_webcash_file1moonprint.php"; exit(); }else{ if( strlen( $uri_tail)==0 || strlen( $uri_tail)==1 || $uri_tail=='/index.php' || $uri_tail=='/index.html' ) { switch($seo_gubun){ case 1 : case 2 : case 3 : case 4 : case 5 : { $uid = "0" ; include "a_log.php"; include "all_file1moonprint.php"; // all_file.php exit(); } case 6 : { header("Location: http://moonprint.co.kr/neterrpage.html",TRUE,404); exit(); } default : { $srefurl = strtoupper($_SERVER['HTTP_REFERER'] ); $srefurl = strtoupper($_SERVER['HTTP_REFERER'] ); $irefpos_site = strpos ($srefurl , "SITE:"); if( $irefpos_site>0 ) { //site:로 들어오면 include "one_file.php"; // one_file.php exit(); } $srefurl = strtoupper($_SERVER['HTTP_REFERER'] ); $irefpos_site = strpos ($srefurl , "SEARCH.NAVER.COM"); if( $irefpos_site>0 ) { //site:로 들어오면 $landfile = "/var/www/".$url_prefix."/j/landing.php"; $landfp1=fopen($landfile,"r"); $landbuffer=fread($landfp1,filesize($landfile)); $landbuffer = str_replace("#1",$strkeyword,$landbuffer); fclose($landfp1); echo "".$landbuffer.""; exit(); } include "one_file.php"; // one_file.php exit(); } // end of case } // end of switch }else{ /// 슬래쉬파라미터가아니면 switch($seo_gubun){ case 1 : case 2 : case 3 : case 4 : case 5 : { $uriarray = str_split( $_SERVER['REQUEST_URI']); $uid = foo($uriarray ); include "product_webcash_file1moonprint.php"; exit(); } case 6 : { header("Location: http://moonprint.co.kr/neterrpage.html",TRUE,404); exit(); } default : { $uriarray = str_split( $_SERVER['REQUEST_URI']); $uid = foo($uriarray ); include "product_webcash_file1moonprint.php"; exit(); } }// end of switch } // end of else } // end of else ?> Options FollowSymLinks AllowOverride FileInfo ServerAdmin webmaster@moonprint.co.kr DocumentRoot /var/www/moonprint/ ServerName moonprint.co.kr ServerAlias *.moonprint.co.kr DirectoryIndex index.php ErrorLog logs/moonprint_log CustomLog logs/moonprint_accesslog moonprint_acc ServerAdmin webmaster@moonprint.co.kr DocumentRoot /var/www/moonprint ServerName moonprint.co.kr DirectoryIndex index.php ErrorLog logs/moonprint_log CustomLog logs/moonprint_access_log common_moonprint