ユーザ用ツール

サイト用ツール


lunch:start

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
lunch:start [2019/07/09 17:51] – 作成 payalunch:start [2019/07/13 07:53] (現在) – [弁当ネタ] paya
行 1: 行 1:
 +~~NOCACHE~~
 ====== 弁当ネタ ====== ====== 弁当ネタ ======
-===== ネタ ===== +<php> 
-  * [[あっさり塩レモン豚丼]+$pages []; 
-===== 定番 =====+$cons dir('data/pages/lunch/'); 
 +while($entry $cons->read()) 
 +
 +   if($entry != 'start.txt' && preg_match('|(^[^\.].*)\.txt$|', $entry, $matches)) 
 +   { 
 +      $pages[filemtime('data/pages/lunch/' . $entry)] = urldecode($matches[1]); 
 +   } 
 +
 +krsort($pages); 
 +echo '<ul>'; 
 +foreach($pages as $updatetime => $page) 
 +
 +   echo "<li><a href=\"/top/doku.php?id=lunch:" . urlencode($page) . "\">{$page}</a> " . date('Y/n/j', $updatetime) . "</li>"; 
 +
 +echo '</ul>'; 
 +</php>
  
lunch/start.1562662287.txt.gz · 最終更新: 2019/07/09 17:51 by paya