PHP 5.5 rewrite of wgtn.geek.nz