Michael Sheldon's Bazaar

Michael Sheldon (webmaster at mikeasoft dot com)

About

This site contains Bazaar-NG repositories for some of my odd projects, to grab a copy of one just run the command bzr branch http://bazaar.mikeasoft.com/project_name.

Projects
Invalid project format"; } $dh = opendir($project . $bzrdir); while(false !==($filename = readdir($dh))) { if(substr($filename, 0, 1) != ".") { $files[] = $filename; } } $last_date = 0; foreach($files as $filename) { $dh = opendir($project . $bzrdir . $filename); while(false !==($filename2 = readdir($dh))) { preg_match("-\d\d\d\d\d\d\d\d\d\d\d\d-",$filename2, $matches); if($matches[0] > $last_date) { $last_date = $matches[0]; $last_changed = $project . "/.bzr/revision-store/" . $filename . "/" . $filename2; } } } $handle = fopen($last_changed, "r"); $contents = @fread($handle, filesize($last_changed)); @fclose($handle); ereg("committer=\".*>", $contents, $match); $author = $match[0]; $author = ereg_replace("committer=\"", "", $author); ereg(".*", $contents, $match); $message = $match[0]; $message = ereg_replace("", "", $message); $change = $last_changed; $year = substr($last_date, 0, 4); $month = substr($last_date, 4, 2); $day = substr($last_date, 6, 2); $hour = substr($last_date, 8, 2); $minute = substr($last_date, 10, 2); $second = substr($last_date, 12, 2); $timestamp = mktime($hour, $minute, $second, $month, $day, $year); $last_date = date("r", $timestamp); $author = spam_confuse($author); return "Latest Change: $message
By: $author
On: $last_date
"; } function spam_confuse($email) { $email = str_replace("@", " at ", $email); $email = str_replace(".", " dot ", $email); return $email; } ?>