... by posting what I did I am infringing on copyright laws. ...
My take on this is that as long as you post the proper credits (who wrote it) and the publishing information (ie original source where it is available), AND as long as no money changes hands (ie you don't profit from it), AND if it is available on line without fee, then no harm no foul.