10 |
global $script,$rss_max,$page_title,$whatsnew; |
global $script,$rss_max,$page_title,$whatsnew; |
11 |
|
|
12 |
$self = $script.'?'; |
$self = $script.'?'; |
13 |
|
|
14 |
$page_title_utf8 = $page_title; |
$page_title_utf8 = mb_convert_encoding($page_title,'UTF-8',SOURCE_ENCODING); |
15 |
if (function_exists('mb_convert_encoding')) { |
|
|
$page_title_utf8 = mb_convert_encoding($page_title_utf8,'UTF-8',SOURCE_ENCODING); |
|
|
} |
|
|
|
|
16 |
$items = $rdf_li = ''; |
$items = $rdf_li = ''; |
17 |
|
|
18 |
if (!file_exists(CACHE_DIR.'recent.dat')) { |
if (!file_exists(CACHE_DIR.'recent.dat')) |
19 |
|
{ |
20 |
return ''; |
return ''; |
21 |
} |
} |
22 |
$recent = file(CACHE_DIR.'recent.dat'); |
$recent = file(CACHE_DIR.'recent.dat'); |
23 |
$lines = array_splice($recent,0,$rss_max); |
$lines = array_splice($recent,0,$rss_max); |
24 |
foreach ($lines as $line) { |
foreach ($lines as $line) |
25 |
|
{ |
26 |
list($time,$page) = explode("\t",rtrim($line)); |
list($time,$page) = explode("\t",rtrim($line)); |
27 |
$r_page = rawurlencode($page); |
$r_page = rawurlencode($page); |
28 |
$title = $page; |
$title = mb_convert_encoding($page,'UTF-8',SOURCE_ENCODING); |
|
if (function_exists('mb_convert_encoding')) { |
|
|
$title = mb_convert_encoding($title,'UTF-8',SOURCE_ENCODING); |
|
|
} |
|
29 |
// 'O'が出力する時刻を'+09:00'の形に整形 |
// 'O'が出力する時刻を'+09:00'の形に整形 |
30 |
$dcdate = substr_replace(get_date('Y-m-d\TH:i:sO',$time),':',-2,0); |
$dcdate = substr_replace(get_date('Y-m-d\TH:i:sO',$time),':',-2,0); |
31 |
|
|