summaryrefslogtreecommitdiff
path: root/website/include/news.inc.php
blob: 92e6486c97388800624fdceba063cdd47c9289c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/*
 * Copyright 2004 Matt Brubeck
 * This file is licensed under a Creative Commons license:
 * http://creativecommons.org/licenses/by/2.0/
 */
class NewsItem {
  var $id;
  var $date;
  var $title;
  var $body;

  // Constructor.
  function NewsItem($date, $title, $body) {
    $this->date = $date;
    $this->title = $title;
    $this->body = $body;
  }

  // Returns the date, in the preferred format for the current locale.
  function dateStr() {
    // i18n-hint: Controls how dates are formatted.
    // See http://www.php.net/manual/function.strftime.php for details.
    return locale_to_unicode(strftime(_("%B %d, %Y"), $this->date));
  }
}

$news_items = array();
function add_news_item($dateStr, $id, $title, $body) {
  global $news_items;
  $date = strtotime($dateStr);
  $key = strftime("%Y-%m-%d", $date)."/".$id;
  $news_items[$key] = new NewsItem($date, $title, $body);
}
function most_recent_news_item() {
}

add_news_item(
  "November 24, 2005",
	"0.3-release",
  _("Oreka 0.3 Released"),
  _('<p>A windows installer and a debian/ubuntu package are now available, making it easier for users to install the orkaudio recorder. Orkaudio can now run as a daemon under Linux.</p>')
);



add_news_item(
  "November 02, 2005",
	"0.2-release",
  _("Oreka 0.2 Released"),
  _('<p>OrkAudio now supports Cisco Skinny (aka SCCP) recording. This allows Cisco Call Manager sessions to be captured. Also, Support for raw RTP recording has been added. OrkAudio defaults to this for RTP based protocols other than SIP and Skinny.</p>')
);


add_news_item(
  "October 26, 2005",
	"0.1-release",
  _("Oreka 0.1 Released"),
  _('<p>This is the first public release of oreka. Please check it out and let us know issues you are encountering on oreka-devel and oreka-user mailing lists.</p>')
);
?>