Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GSMaintenance: Put your site in "Maintenance mode"
#7
(2015-04-27, 18:25:03)maco-nl Wrote: it would be (as maf already said) a great feature when the admin could still see the website (perhaps trough adding their IP ? )

This is pretty simple to achieve in the GS3.1+ versions. GS sets a cookie to tell it whether the admin is logged in. Hide the webpage when the cookie is not present:

PHP Code:
global $USR;
if (isset(
$USR) && $USR == get_cookie('GS_ADMIN_USERNAME')) {
  
// do nothing
} else {
  
// hide website


As for the Dutch translation, "Schakel Onderhoudsmodus in/uit" would be even more correct (although it doesn't matter that much).
Reply


Messages In This Thread
RE: GSMaintenance: Put your site in "Maintenance mode" - by Tyblitz - 2015-04-27, 19:40:39



Users browsing this thread: 1 Guest(s)