It's complicated. Its a mix of krpano plugin (doubleclick show interface) + facebook auth (javascript/php) + write to db (php) + some sort of mini cms for deleting unwanted spots + filter on FOV + pan/tilt (so you dont load all the spots at once but only in currentview). Not something you do with a bit of xml :P