cvs: php-windows-web /docroot listing.php /include listing.php

From: Date: Sun, 15 Mar 2009 17:17:15 +0000
Subject: cvs: php-windows-web /docroot listing.php /include listing.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-4066@lists.php.net to get a copy of this message
pajoye Sun Mar 15 17:17:15 2009 UTC Modified files: /php-windows-web/include listing.php /php-windows-web/docroot listing.php Log: - restore link to the logs for the snapshot http://cvs.php.net/viewvc.cgi/php-windows-web/include/listing.php?r1=1.5&r2=1.6&diff_format=u Index: php-windows-web/include/listing.php diff -u php-windows-web/include/listing.php:1.5 php-windows-web/include/listing.php:1.6 --- php-windows-web/include/listing.php:1.5 Sat Mar 14 16:54:19 2009 +++ php-windows-web/include/listing.php Sun Mar 15 17:17:15 2009 @@ -98,8 +98,10 @@ $snap_time->setDate($m[1], $m[2], $m[3]); $snap_time->setTime( $m[4], $m[5], 0); $mtime = date_format($snap_time, 'Y-M-d H:i:s'); + $snap_time_suffix = $m[1] . $m[2] . $m[3] . $m[4] . $m[5]; } + $elms = parse_file_name(basename($file)); $key = ($elms['nts'] ? 'nts-' : 'ts-') . $elms['vc'] . '-' . $elms['arch']; $version_short = $elms['version_short']; @@ -112,11 +114,15 @@ 'size' => bytes2string(filesize($file_ori)), 'sha1' => $sha1sums[strtolower($file_ori)] ); + $compile = $configure = $buildconf = false; if ($snaps) { $debug_pack = 'php-debug-pack-' . $elms['version_short'] . ($elms['nts'] ? '-' . $elms['nts'] : '') . '-win32' . ($elms['ts'] ? '-' . $elms['vc'] . '-' . $elms['arch'] . '-latest' : '') . '.zip'; $installer = 'php-' . $elms['version_short'] . ($elms['nts'] ? '-' . $elms['nts'] : '') . '-win32' . ($elms['ts'] ? '-' . $elms['vc'] . '-' . $elms['arch'] . '-latest' : '') . '.msi'; - $source = 'php-' . $elms['version_short'] . '/php-' . $elms['version_short'] . '-src-latest.zip'; + $source = 'php-' . $elms['version_short'] . '/php-' . $elms['version_short'] . '-src-latest.zip'; + $configure = 'configure-' . $elms['version_short'] . '-' . $elms['vc'] . '-' . $elms['arch'] . '-' . ($elms['nts'] ? $elms['nts'] . '-' : '') . $snap_time_suffix . '.log'; + $compile = 'compile-' . $elms['version_short'] . '-' . $elms['vc'] . '-' . $elms['arch'] . '-' . ($elms['nts'] ? $elms['nts'] . '-' : '') . $snap_time_suffix . '.log'; + $buildconf = 'buildconf-'. $elms['version_short'] . '-' . $elms['vc'] . '-' . $elms['arch'] . '-' . ($elms['nts'] ? $elms['nts'] . '-' : '') . $snap_time_suffix . '.log'; } elseif ($version_short != '5.2') { $debug_pack = 'php-debug-pack-' . $elms['version'] . ($elms['nts'] ? '-' . $elms['nts'] : '') . '-Win32-' . $elms['vc'] . '-' . $elms['arch'] . ($elms['ts'] ? '-' . $elms['ts'] : '') . '.zip'; $installer = 'php-' . $elms['version'] . ($elms['nts'] ? '-' . $elms['nts'] : '') . '-Win32-' . $elms['vc'] . '-' . $elms['arch'] . ($elms['ts'] ? '-' . $elms['ts'] : '') . '.msi'; @@ -146,13 +152,24 @@ 'sha1' => $sha1sums[strtolower($installer)] ); } + + if ($snaps) { + if ($buildconf) { + $releases[$version_short][$key]['buildconf'] = $buildconf; + } + if ($compile) { + $releases[$version_short][$key]['compile'] = $compile; + } + if ($configure) { + $releases[$version_short][$key]['configure'] = $configure; + } + } } $cache_content = '<?php $releases = ' . var_export($releases, true) . ';'; $tmp_name = tempnam('.', '_cachinfo'); file_put_contents($tmp_name, $cache_content); rename($tmp_name, 'cache.info'); - chdir($old_cwd); return $releases; } http://cvs.php.net/viewvc.cgi/php-windows-web/docroot/listing.php?r1=1.2&r2=1.3&diff_format=u Index: php-windows-web/docroot/listing.php diff -u php-windows-web/docroot/listing.php:1.2 php-windows-web/docroot/listing.php:1.3 --- php-windows-web/docroot/listing.php:1.2 Sat Mar 14 17:05:50 2009 +++ php-windows-web/docroot/listing.php Sun Mar 15 17:17:15 2009 @@ -134,33 +134,42 @@ </li> <?php } ?> </ul> - </p> - <span class="corners-bottom"><span></span></span> - </div><!-- innerbox --> - <?php -} + if ($mode == 'snapshots') { ?> + <blockquote> + [<a href="<?php echo $baseurl . $versions[$major][$minor]['buildconf']; ?>">Buildconf</a>] [<a href="<?php echo $baseurl . $versions[$major][$minor]['configure']; ?>">Configure</a>] [<a href="<?php echo $baseurl . $versions[$major][$minor]['compile']; ?>">Compile</a>] + </blockquote> <?php - } -?> - </div> - <span class="corners-bottom"><span></span></span> - </div> <!-- block --> -<?php } ?> + </p> + <span class="corners-bottom"><span></span></span> + </div><!-- innerbox --> - <p class="t-center"> - </p> - </div> <!-- .content --> - </li><!-- #main-column --> + <?php + } + ?> + <?php + } + ?> + </div> + <span class="corners-bottom"><span></span></span> + </div> <!-- block --> + <?php + } + ?> - </ul> <!-- #content-columns --> - </li> <!-- #content --> + <p class="t-center"> + </p> + </div> <!-- .content --> + </li><!-- #main-column --> -<?php + </ul> <!-- #content-columns --> + </li> <!-- #content --> + + <?php -include TPL_PATH . 'footer.php'; + include TPL_PATH . 'footer.php'; ?>

« previous php.webmaster (#4066) next »