mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°2311 - Login Page extensibility
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user