Joining upload to protected_page.php

Only allow logged in users to upload files
Fixing upload for logged in users

updating the page. Should display the html file, not the php. Not 100%
sure it will work
Details improved

It works, so fixing small display details.
More layout changes

moved the .css header to the protected page.
File renamed. Security check for uploading added

index.html -> upload_front.php
Page can't be accessed if not logged in.
Extension link fixed. Index page created.

Index page simple include the login.php page
Fixing error

Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at
/home3/ccm2002/public_html/cmcube/index.php:12) in
/home3/ccm2002/public_html/cmcube/includes/functions.php on line 21

Warning: session_regenerate_id(): Cannot regenerate session id - headers
already sent in /home3/ccm2002/public_html/cmcube/includes/functions.php
on line 22
Trying to fix error
Fixing with JQuery?
Adding JQuery from Google

<script
src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"
></script>
Reducing the login div max-width to 600px
Checking if the user is logged in on the homepage
Fixing code - displaying username

Now it (should) display the username
Adding Foundation css to all pages
Something broke the login page
Restored important .js lines
Adding Return to the home page link
upadting CSS to login page instead of index