N°2311 - Login Page extensibility

This commit is contained in:
Eric
2019-08-29 10:59:12 +02:00
parent 9bd1da95e0
commit b2ab07aa69
35 changed files with 974 additions and 291 deletions

View File

@@ -1835,6 +1835,22 @@ EOF
{
return APPROOT.'log/setup-queries-'.strftime('%Y-%m-%d_%H_%M').'.sql';
}
public final static function EnterMaintenanceMode($bCheckBackgroundTask = false)
{
@touch(APPROOT.'.maintenance');
if ($bCheckBackgroundTask)
{
// Assume database is OK but datamodel is not usable
$iCount = CMDBSource::QueryToScalar('SELECT COUNT(*) FROM priv_backgroundtask WHERE running=1');
}
}
public final static function ExitMaintenanceMode()
{
@unlink(APPROOT.'.maintenance');
}
}
/**