cvs: php-gcov-web / index.php

From: Date: Mon, 13 Mar 2006 00:57:59 +0000
Subject: cvs: php-gcov-web / index.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-30896@lists.php.net to get a copy of this message
helly Mon Mar 13 00:57:59 2006 UTC Modified files: /php-gcov-web index.php Log: - file times as times not dates http://cvs.php.net/viewcvs.cgi/php-gcov-web/index.php?r1=1.2&r2=1.3&diff_format=u Index: php-gcov-web/index.php diff -u php-gcov-web/index.php:1.2 php-gcov-web/index.php:1.3 --- php-gcov-web/index.php:1.2 Mon Mar 13 00:13:47 2006 +++ php-gcov-web/index.php Mon Mar 13 00:57:59 2006 @@ -27,22 +27,22 @@ <?php $tags = array('PHP_4_4', 'PHP_5_1', 'PHP_HEAD'); -function show_link($tag, $link, $file = NULL, $last_date = false) +function show_link($tag, $link, $file = NULL, $l_time = false) { if (is_null($file)) { $file = $link; } - $date = @filemtime(dirname(__FILE__) . "/$tag/$file"); - if (file_exists(dirname(__FILE__) . "/$tag/$file") && ($last_date === false || $date > $last_date)) + $m_time = @filemtime(dirname(__FILE__) . "/$tag/$file"); + if (file_exists(dirname(__FILE__) . "/$tag/$file") && ($l_time === false || $m_time > $l_time)) { - echo "<td align='left'><a href='/$tag/$link'>" . date("M d Y H:i:s", $date) . "</td>"; + echo "<td align='left'><a href='/$tag/$link'>" . date("M d Y H:i:s", $m_time) . "</td>"; } else { echo "<td>&nbsp;</td>"; } - return $date; + return $m_time; } foreach($tags as $tag) @@ -51,8 +51,8 @@ echo "<th align='left'>$tag</th>"; show_link($tag, 'lcov/index.html'); show_link($tag, 'run-tests.log.php', 'run-tests.html.inc'); - $date = show_link($tag, 'make.log.php', 'make.log'); - show_link($tag, 'make.log.new.php', 'make.log.new', $date); + $l_time = show_link($tag, 'make.log.php', 'make.log'); + show_link($tag, 'make.log.new.php', 'make.log.new', $l_time); echo "</tr>\n"; } ?>

« previous php.mirrors (#30896) next »