i'm asking if anyone knows where i could download the source code for booru type websites
I believe what you are asking is how to download a duplicate template of Safebooru's web architecture. See our front pagehttp://safebooru.org/
under the 'search' button there reads "Serving 1,260,986 posts - Running Gelbooru Beta 0.2.0"
where Gellbooru "Running Gelbooru Beta 0.2.5" and is an version of an "Original concept by Danbooru (http://danbooru.donmai.us/post_versions).'
That's the origin. But to create a 'booru,' you will need to 'create your own booru!' from http://www.booru.org/
If you were hoping to have an XML, PHP, C+, or HTML5 and work independently of the 'booru project' , you may be out of luck there.