NEW #0002205 Mode maintenance

This commit is contained in:
sparkyx 2023-01-14 12:59:26 +01:00
parent 1a20f95ca0
commit 6620a4cd07
17 changed files with 55 additions and 7 deletions

View file

@ -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;
}
}