gaim/www

(11:09:41) LSchiere2: nosnilmot: i have a report that the paths in the non-root mozilla compile install of gaim are sketchy
(11:10:17) nosnilmot: any specifics?
(11:10:42) LSchiere2: yeah, people don't normally have a "usr" inside ~
(11:14:28) nosnilmot: I do
(11:14:51) nosnilmot: no I don't...
(11:15:41) LSchiere2: its not a big deal, easy to change, i just thought i'd let you know
(11:17:18) nosnilmot: http://www.nosnilmot.com/gaim/gaim-faq-ssl.patch
(11:18:37) LSchiere2: oh wow, ask and i recieve. you rock nosnilmot
(11:18:55) nosnilmot: I don't like to be wrong
<?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);
?>