cvs: phpweb /archive 2008.php

From: Date: Sat, 29 Dec 2007 15:12:04 +0000
Subject: cvs: phpweb /archive 2008.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-758@lists.php.net to get a copy of this message
bjori Sat Dec 29 15:12:04 2007 UTC Added files: /phpweb/archive 2008.php Log: Prep for 2008 news http://cvs.php.net/viewvc.cgi/phpweb/archive/2008.php?view=markup&rev=1.1 Index: phpweb/archive/2008.php +++ phpweb/archive/2008.php <?php // $Id: 2008.php,v 1.1 2007/12/29 15:12:04 bjori Exp $ $_SERVER['BASE_PAGE'] = 'archive/2008.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc'; news_archive_sidebar(); site_header("News Archive - 2008"); ?> <h1>News Archive - 2008</h1> <p> Here are the most important news items we have published in 2008 on PHP.net. </p> <hr /> <?php function date_sort($a, $b) { return $a["date"] == $b["date"] ? 0 : (strtotime($a["date"]) > strtotime($b["date"]) ? -1 : 1); } $news = array_merge($NEWS_ENTRIES["frontpage"], $NEWS_ENTRIES["conferences"]); uasort($news, "date_sort"); print_news($news, 2008); /* %s/<a href="\(.*\)"><img src="\/images\/news\/\(.*\)" alt="\(.*\)" width.*><\/a>/<?php news_image("\1", "\2", "\3"); ?>/g */ site_footer();

« previous php.webmaster (#758) next »