The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 861 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




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: 2 Guest(s)