--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/htdocs/version.php Mon Nov 17 17:12:03 2003 -0500
@@ -0,0 +1,49 @@
+$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; + $cur_ver = $current_version; +$cur_ver_parts = explode(".", $cur_ver); +$my_ver_parts = explode(".", $my_ver); +for($i=0; $i < count($cur_ver_parts); $i++) { + if(!isset($my_ver_parts[$i]) || $cur_ver_parts[$i] > $my_ver_parts[$i]) +if($cur_ver == $my_ver && $cvs) +/* TODO: merge in the stuff from the win32 changelog for them */ +$f = fopen ($changelog_file, "r"); +$changelog_text = fread ($f, filesize ($changelog_file)); +/* 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);