Jump to content

functions for under construction?


zhshero

Recommended Posts

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

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.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.