NEW #0002205 Mode maintenance
This commit is contained in:
parent
1a20f95ca0
commit
6620a4cd07
17 changed files with 55 additions and 7 deletions
|
|
@ -1686,3 +1686,15 @@ function linkTo($p_url)
|
|||
return $p_url;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @brief When you want to prevent users to connect, create a file in noalyss/ (NOALYSS_BASE) with the
|
||||
* message in Html
|
||||
* @param string $p_file file in NOALYSS_BASE
|
||||
*/
|
||||
function MaintenanceMode($p_file)
|
||||
{
|
||||
if ( file_exists(NOALYSS_BASE."/".$p_file )) {
|
||||
include NOALYSS_BASE."/".$p_file;
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue