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 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"
#8
(2015-04-27, 19:40:39)Tyblitz Wrote:
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).

Hi Tybliz,
Many thanks for your fast reply and code
eh , i'm new with GS and need still to discover a lot ,,can you help me out where to add this code ?

the way i was thinking about to add an ip , so you can add also two ip's so a other person can also see the website
(i'm busy with a website for a kids gym club) they use now a other cms but it is far to difficult for the people who arange the content , so i found GS and this is easy for them to keep their site more up to date )
so they could also see what i'm doing and give some directions if they want something else

in very short dutch i'm agree with in/uit tought i translate it a bit more in a common way  Smile
Reply


Messages In This Thread
RE: GSMaintenance: Put your site in "Maintenance mode" - by maco-nl - 2015-04-27, 20:09:37



Users browsing this thread: 3 Guest(s)