zhshero Posted November 18, 2010 Share Posted November 18, 2010 i am looking for help to how to build a function, that will redirect you to a construction page while they site is being updated with new updates, but allow staff only access while its being constructed on, so while i do my updates to my site, i can test the new update, before others have access Link to comment https://forums.phpfreaks.com/topic/219039-functions-for-under-construction/ Share on other sites More sharing options...
seanlim Posted November 18, 2010 Share Posted November 18, 2010 A rough outline: 1. have a login page only for staff members to access the site 2. on every page (e.g. header file) check that user IS a staff member. if user is NOT a staff member, header("Location: ...") them to a page which says under construction. 3. once the updates are done, remove Step 2 from your header file. Note: staff login/under construction page should not perform the check in Step 2, otherwise the login page will never load and it will enter an infinite loop respectively. Link to comment https://forums.phpfreaks.com/topic/219039-functions-for-under-construction/#findComment-1135939 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.