Made upload.php and addfolder.php go to the folder/dir that they uploaded to/created.