Fixed the paths to my files

I've fixed the path issue that my post.php had. I've made a config.php file where I made a $path variable that is where I will be able to change the path for post.php much easier.