Time 雜誌網頁 格式有少許更動
昨晚我把原來的程式也更新了
內定 time.php 為 U.S. edition
time.php?edition=asia 為亞洲版
分兩個檔案:
time.php
- <?
- $edtion = $_GET['edition'];
- $link = "http://www.time.com/time/magazine";
- $mylogo = "<img src=http://static.flickr.com/60/219160214_e6ed15d559_o.gif> <br>\r\n<font size=\"2\">time.php v1.1</font>";
- $edition = $edt[1];
- $uscover = $cv[1][0].'jpg';
- $asiacover = $cv[1][2].'jpg';
- $uslink = $link;
- $asialink = $el[1][1];
- $link = $uslink;
- $cover = $uscover;
- if ($edtion == 'asia'){
- $link = $dirlink.'/..'.$asialink;
- $cover = $asiacover;
- }
- $line = $head[0];
- $line .= "<b>$head[1]</b><br><img src=$cover>\r\n<hr>\r\n";
- for ($i=0;$i<$z;$i++){
- $area = $matches[0][$i];
- $line .= "<br>\r\n<b><font color=red>$h[1]</font></b><br>\r\n<ul>\r\n";
- for ($j=0;$j<count($t[0]);$j++){
- $title = $t[0][$j];
- $line .= "<li>$title</li>\r\n";
- }
- $line .= "</ul><br>\r\n";
- }
- $line .= "<hr>\r\n$mylogo";
- echo $line;
- ?>
time_view.php
- <?
- $link = $_GET['link'];
- $mylogo = "<img src=http://static.flickr.com/60/219160214_e6ed15d559_o.gif> <br>\n<font size=\"2\">time.php v1.1</font>";
- if ($nl[1]||$nl2[1]){
- $newlink = $nl[1];
- $newlink .= $nl2[1];
- $newlink = 'http://www.time.com/'.$newlink;
- }
- $title = $t[0];
- $area = $a[1];
- $line = $title."\r\n";
- $line .= $area;
- $allowed_tags = "<b>,<p>,<div>,<h1>,<span>,<title>,<br>,<hr>,<img>,<font>";
- $line .=$pix[0];
- $line .= "<hr>\r\n$mylogo";
- echo $line;
- ?>
Webmaster Tools - Advanced
沒有留言:
張貼留言