2007年9月1日 星期六
FON chilli.conf
radiusserver2 radius02.fon.com
radiussecret garrafon
dhcpif eth1
uamsecret garrafon
uamallowed 60.199.247.73
uamanydns
uamallowed www.martinvarsavsky.net,www.google.com,www.flickr.com,static.flickr.com,video.google.com,216.239.51.0/24,66.249.81.0/24
uamallowed www.fon.com,www.paypal.com,www.paypalobjects.com,www.skype.com,66.249.93.0/24,72.14.207.0/24,72.14.209.0/24,84.96.67.0/24,213.91.9.0/24,80.118.99.0/24
uamallowed shop.fon.co.kr,secure.nuguya.com,inilite.inicis.com,fon-en.custhelp.com,maps.fon.com,c20.statcounter.com
uamallowed www.excite.co.jp,image.excite.co.jp,adimp.excite.co.jp,202.47.16.159,202.47.16.161,202.47.17.159,202.47.17.161,202.47.18.159
uamallowed 202.47.18.161,202.47.19.159,202.47.19.161,ssl.google-analytics.com,c26.statcounter.com,www.fonshop.jp,gringo.fon.com
uamallowed labs.fon.com,213.134.44.0/23,www.fonshop.com.tw,shop.hk.fon.com,maps.naver.com
uamserver https://www.fon.com/login/gateway/sec/bcaeb47c9e2dee6f7b30ad7d009e6be4
2007年8月31日 星期五
Blog顯示衛星雲圖(動態進階版)
<img id="MTSAT" width="200" height="215" onerror="ChangePicture()">
<SCRIPT language="javascript">
var PictureNumber=6;
var GoPicrures="";
var previousPicrures="";
var NextPicrures="";
var HttpUrls="";
var now = new Date();
var years = now.getYear();
var months = now.getMonth()+1;
var days = now.getDate();
var hours = now.getHours();
HttpUrls=imgurl(years,months,days,hours);
MTSAT.src=HttpUrls;
for(i=(-1)*(PictureNumber-1);i<=0;i++){
NextNow = addDate(years,months-1,days,hours,0,i);
years_tmp = NextNow.getYear();
months_tmp = NextNow.getMonth()+1;
days_tmp = NextNow.getDate();
hours_tmp = NextNow.getHours();
if(i<0){
GoPicrures+=","+imgurl(years_tmp,months_tmp,days_tmp,hours_tmp);
}else{
NextPicrures=imgurl(years_tmp,months_tmp,days_tmp,hours_tmp);
}
}
function addDate(dy,dmomth,dd,dh,dm,dadd){
var a = new Date(dy,dmomth,dd,dh,dm)
a = a.valueOf()
a = a + dadd * 1 * 60 * 60 * 1000
a = new Date(a)
return a;
}
function imgurl(dy,dm,dd,dh){
// AreaType 參數 ( 全球:s0p 東亞:s1p 台灣:s3p )
AreaType="s1p";
FileName = AreaType + "-";
FileName += dy+"-";
FileName += ((dm < 10) ? "0" : "") + dm + "-";
FileName += ((dd < 10) ? "0" : "") + dd + "-";
FileName += ((dh < 10) ? "0" : "") + dh + "-00.jpg";
return "http://www.cwb.gov.tw/V6/observe/satellite/Data/" + AreaType + "/" + FileName;
}
function ChangePicture(){
NextNow = addDate(years,months-1,days,hours,0,(-1)*(PictureNumber-1));
years_tmp = NextNow.getYear();
months_tmp = NextNow.getMonth()+1;
days_tmp = NextNow.getDate();
hours_tmp = NextNow.getHours();
previousPicrures=imgurl(years_tmp,months_tmp,days_tmp,hours_tmp);
MTSAT.src=previousPicrures;
}
function ActivePicture(i){
StrLen=previousPicrures.length;
if(StrLen){
GoPicrures_tmp=GoPicrures+","+NextPicrures;
}else{
GoPicrures_tmp=","+previousPicrures+GoPicrures;
}
UrlPicrures=GoPicrures_tmp.split(",");
//alert(i+"="+UrlPicrures[i])
MTSAT.src=UrlPicrures[i];
PictureCount=UrlPicrures.length-1;
if(i==PictureCount){
i=1;
}else{
i++;
}
setTimeout("ActivePicture("+i+")",1500)
}
ActivePicture(1);
</SCRIPT>
Blog顯示衛星雲圖
<img id="MTSAT" width="200" height="215" onerror="ChangePicture()">
<SCRIPT language="javascript">
function addDate(dy,dmomth,dd,dh,dm,dadd){
var a = new Date(dy,dmomth,dd,dh,dm)
a = a.valueOf()
a = a + dadd * 1 * 60 * 60 * 1000
a = new Date(a)
return a;
}
function imgurl(dy,dm,dd,dh){
// AreaType 參數 ( 全球:s0p 東亞:s1p 台灣:s3p )
AreaType="s1p";
FileName = AreaType + "-";
FileName += dy+"-";
FileName += ((dm < 10) ? "0" : "") + dm + "-";
FileName += ((dd < 10) ? "0" : "") + dd + "-";
FileName += ((dh < 10) ? "0" : "") + dh + "-00.jpg";
return "http://www.cwb.gov.tw/V6/observe/satellite/Data/" + AreaType + "/" + FileName;
}
var HttpUrls="";
var now = new Date();
var years = now.getYear();
var months = now.getMonth()+1;
var days = now.getDate();
var hours = now.getHours();
var minutes = now.getMinutes();
HttpUrls=imgurl(years,months,days,hours);
MTSAT.src=HttpUrls;
function ChangePicture(){
if(hours==0){
NextNow = addDate(years,months-1,days,hours,0,-1);
years = NextNow.getYear();
months = NextNow.getMonth()+1;
days = NextNow.getDate();
hours = NextNow.getHours();
}else{
hours-=1;
}
HttpUrls=imgurl(years,months,days,hours);
MTSAT.src=HttpUrls;
}
</SCRIPT>