This should be a fairly easy thing to add in. Since it starts from the send_header function which also looks to see what script we are being called from we can use that information and avoid putting the sidebar in with showflat/showthreaded php scripts.
