function ad1(){ //16x600 ?> } function ad2(){ //200x200 ?> } function ad_eachside(){ //120x240 ?> } ?> function only_ad1(){ //180x150 ?> } ?> function ad_linkunit(){ ?> } ?> function ad_half(){ //234x60 ?> } ?> function ad_picture4(){ ?> } ?> function ad_picture1(){ ?> } ?> function ad_original1(){ //180x150 ?> } ?> function ad_original1_opp(){ //180x150 ?> } ?> function ad_coz_picture4($dir="Ad95"){ $picture=get4pictures($dir); //728x90 ?> } ?> function scan_dir($dir="Ad95/"){ $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { $files[] = $filename; } rsort($files); return $files; } function get4pictures($dir="Ad95/"){ $files = scan_dir($dir); array_pop($files); //'.'を取り除く array_pop($files); //'..'を取り除く $rand_keys=array_rand($files,4); for($i=0; $i<4; $i++){ $picture[$i]=$files[$rand_keys[$i]]; } return $picture; } function get6pictures($dir="Ad95/"){ $files = scan_dir($dir); array_pop($files); //'.'を取り除く array_pop($files); //'..'を取り除く $rand_keys=array_rand($files,6); for($i=0; $i<6; $i++){ $picture[$i]=$files[$rand_keys[$i]]; } return $picture; } ?> function ad_coz_link_picture6(){ $dir="Ad95"; $picture=get6pictures($dir); ?> } ?> function ad_tate(){ //336x280 ?> } ?> function get_todays_str(){ $today = getdate(); $today_str=$today["year"] . str_pad($today["mon"], 2, 0, STR_PAD_LEFT) . str_pad($today["mday"], 2, 0, STR_PAD_LEFT) . "00"; return $today_str; } ?>
日 | 月 | 火 | 水 | 木 | 金 | 土 |
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |