partiallt finished the source php file
added getAllSources to source.php