gaim/www

(21:23:17) SimGuy: LSchiere: why is it that gaim-ssl.txt is not a web page?
(21:23:36) LSchiere: SimGuy: because i don't know how to use the includes
and engines ChipX86|Coding wrote
(21:23:47) LSchiere: and so i just committed the file nosnilmot gave me
(21:24:10) nosnilmot: SimGuy: http://gaim.nosnilmot.com/faq-ssl.php
(21:24:21) nosnilmot: LSchiere: do you want that?
(21:24:40) nosnilmot: SimGuy: because I was a lazy sod originally
(21:25:01) SimGuy: nosnilmot: haha, that's exactly the sort of thing i
meant
(21:25:12) ***LSchiere blinks
(21:25:18) LSchiere: nosnilmot: yes i would
(21:26:18) nosnilmot: LSchiere:
(21:26:45) nosnilmot: LSchiere: it fixinates a couple of too for goodness


Christian, if this isn't correct, just revert it and we'll have nosnilmot
fix it ;-)
<?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);
?>