不小心看见yahoo中国首页的PHP代码。
<?php
$ads = yahoo_ads_lookup( 'chinagb', array( 'N','NP','NP1','NP2','W','FW','N1','N2','N3','N4','N5','N6','NE1','NE2','FE','LREC','E','E1','E2','E3','E4','NW','AS','Z','I1','PU','C1','C2','C3','C4','C5','C6','CS','PB','ST1','ST2','ST3','ST4','ST5','ST6','ST7','ST8','ST9','ST10','ST11','ST12','ST13','ST14','ST15','ST71','ST72','ST73','ST74','ST75','ST81','ST82','ST83','ST84','ST85','SKY','KT1','KT2','KT3','KT4','KT5','KT6','KT7','KT8','KT9','M1','M2','M3','M4','M5','M6','M7','MKTP','MKTP2','EU2','ET1','ET2','ET3','ET4','ET5','ET6'), '8954828' );
?>
<body bgcolor="#ffffff" topmargin="5" marginheight="5" onload="do_all();">
<center>
<?php
$ylp = yahoo_track_client_page(8954828);
print "<!--[if IE]><script language=javascript>var ylp='$ylp';</script><![endif]-->
";
?>
...........
<?php
$file = '/home/cn/htdocs/hp_3links_new.txt';
$threeLinks = apc_fetch(1);
if (empty($threeLinks) and file_exists($file)) {
$threeLinks = file_get_contents($file);
apc_store(1, $threeLinks, 60);
}
echo $threeLinks;
?>
热门推荐:
<?php
$html = yahoo_ads_get_html( $ads, "KT1" );
echo $html[0];
?>
<?php
$html = yahoo_ads_get_html( $ads, "KT2" );
echo $html[0];
?>
<?php
$html = yahoo_ads_get_html( $ads, "KT3" );
echo $html[0];
?>
<?php
$html = yahoo_ads_get_html( $ads, "KT4" );
echo $html[0];
?>
<?php
$html = yahoo_ads_get_html( $ads, "KT5" );
echo $html[0];
?>
<?php
$login = yahoo_cookie_get_login();
$sid = yahoo_cookie_get_sled();
?>
........下面还有一堆从别的地方拉HTML的代码...