Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
maintenance mode?
-
- Posts: 92
- Joined: Mon May 14, 2018 3:26 pm
maintenance mode?
Is there some kind of maintenance mode that can be activated? When a user logs in, a message is to be displayed indicating that the system is in maintenance mode. All forms should then not be accessible. Only the administrator should be able to log in.
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: maintenance mode?
Hi,
As there isn't a maintenance mode, you need to implement it yourself.
Something like this should work:
In PHP, BE: Run a query to check if maintenance mode is on
You would retrieve the maintenance time, message to be shown to the user etc. from a table.
Then show a message to the users and call nuLogout().
As there isn't a maintenance mode, you need to implement it yourself.
Something like this should work:
In PHP, BE: Run a query to check if maintenance mode is on
You would retrieve the maintenance time, message to be shown to the user etc. from a table.
Then show a message to the users and call nuLogout().
Re: maintenance mode?
marc,
You could do this in the Javascript section of any Home Page used by Access Levels.
Steven
You could do this in the Javascript section of any Home Page used by Access Levels.
Code: Select all
if(nuUserName() != null){
window.onbeforeunload == null;
nuLogout();
}