gaim/www

(21:38:32) datallah: nosnilmot: why is the Non-root including
mozilla-{nss,nspr} section all a link?
(21:39:09) nosnilmot: datallah: are you using IE or something?
(21:39:11) datallah: yeah
(21:39:17) nosnilmot: datallah: damn you
(21:40:41) datallah: nosnilmot: its missing a >
(21:40:49) nosnilmot: datallah: I know... one mo....
(21:42:20) nosnilmot: LSchiere: sorry :
http://www.nosnilmot.com/patches/gaim-shutup-datallah.patch
(21:43:35) datallah: nosnilmot: much better
(21:44:42) datallah: nosnilmot: btw... i think it looks very nice
(21:44:51) nosnilmot: datallah: why thank you
<?php
require "base.inc.php";
$changelog_file = "ChangeLog";
$changelog_file_win32 = "win32/ChangeLog.win32";
if(!isset($version) || !isset($build)) exit();
if(preg_match("/cvs/",$version)) $cvs = true;
$my_ver = str_replace("cvs","", $version);
if($build == "gaim-win32")
$cur_ver = $current_win32_version;
else
$cur_ver = $current_version;
$cur_ver_parts = explode(".", $cur_ver);
$my_ver_parts = explode(".", $my_ver);
$upgrade = false;
for($i=0; $i < count($cur_ver_parts); $i++) {
if(!isset($my_ver_parts[$i]) || $cur_ver_parts[$i] > $my_ver_parts[$i])
$upgrade = true;
}
if($cur_ver == $my_ver && $cvs)
$upgrade = true;
if(!$upgrade) exit();
print "$cur_ver\n";
/* TODO: merge in the stuff from the win32 changelog for them */
$f = fopen ($changelog_file, "r");
$changelog_text = fread ($f, filesize ($changelog_file));
fclose ($f);
/* skip the Pimpin' Penguin line */
$startpos = strpos($changelog_text, "version");
$oldpos = strpos($changelog_text, "version $my_ver", $startpos);
if($oldpos === FALSE) exit();
print substr($changelog_text, $startpos, $oldpos - $startpos);
?>