オープンソース・ソフトウェアの開発とダウンロード

CVS リポジトリの参照

Diff of /pukiwiki/pukiwiki/plugin/rss10.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3 by panda, Mon Feb 24 10:09:43 2003 UTC revision 1.4 by arino, Fri May 16 05:58:19 2003 UTC
# Line 10  function plugin_rss10_action() Line 10  function plugin_rss10_action()
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                                    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26