신묘년 토정비결"; include "ins_title_01.php"; //include "ins_title_tojung.php"; $req_url = $HTTP_HOST; if( $req_url == 'www.0za.to' || $req_url == '0za.to') { dojob(); } else { $tmp = explode( ".", $req_url); $id = ($tmp[0]=='www') ? $tmp[1] : $tmp[0]; if( $id != '') { $sql = "select * from $table where mb_id='$id'"; $result = mysql_query( $sql ); $mb = mysql_fetch_array( $result ); } if( !$mb[mb_id] ) { nodata(); } else { $title = $mb[mb_title]; $url = $mb[mb_url]; //$pay = $mb[mb_pay]; $mb_e_day = $mb[mb_e_day]; $today = date("Y-m-d"); $tmp = explode("-", $today); $today1 = mktime(0,0,0,$tmp[1], $tmp[2], $tmp[0]); if($mb_e_day > $today1) { $pay = 'Y'; } else { $pay = 'N'; } paid($title, $url, $pay,$show_title,$id); } } function dojob() { echo " 공짜.투 도메인 센터 <body bgcolor='#FFFFFF' text='#000000'> </body> "; exit(); } function nodata() { echo " 등록되어 있지 않은 [공짜.투] 주소입니다. "; exit(); } function paid($title, $url, $pay,$show_title,$id) { if( $pay == 'Y'){ if($id=='2013freesite') { echo " $title "; } elseif($id=='yountojung') { echo " $title "; } elseif($id=='allun') { echo " $title "; } elseif($id=='freegunghap') { echo " $title "; } elseif($id=='unse') { echo " $title "; } elseif($id=='oksaju') { echo " $title "; } elseif($id=='freeddigung') { echo " $title "; } elseif($id=='mtojung') { echo " $title "; } elseif($id=='free2011') { echo " $title "; } elseif($id=='freetojung') { echo " $title "; } elseif($id=='mtojung') { echo " $title "; } elseif($id=='2013snake') { echo " $title "; } else { echo " $title "; exit(); } } else { echo " $title "; exit(); } } ?>