diff --git a/datamodels/2.x/itop-backup/ajax.backup.php b/datamodels/2.x/itop-backup/ajax.backup.php index e9b57ea2df..7a28abfe57 100644 --- a/datamodels/2.x/itop-backup/ajax.backup.php +++ b/datamodels/2.x/itop-backup/ajax.backup.php @@ -1,26 +1,20 @@ - /** - * Backup from an interactive session + * Copyright (C) 2010-2020 Combodo SARL * - * @copyright Copyright (C) 2013-2017 Combodo SARL - * @license http://opensource.org/licenses/AGPL-3.0 + * This file is part of iTop. + * + * iTop is free software; you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * iTop is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License */ if (!defined('__DIR__')) define('__DIR__', dirname(__FILE__)); @@ -50,7 +44,9 @@ function DisplayErrorAndDie($oPage, $sHtmlErrorMessage, $exitCode = null) } - +/** + * Backup from an interactive session + */ try { $sOperation = utils::ReadParam('operation', ''); @@ -68,7 +64,7 @@ try if (utils::GetConfig()->Get('demo_mode')) { - DisplayErrorAndDie($oPage, '
Sorry, iTop is in demonstration mode: the feature is disabled.
'); + DisplayErrorAndDie($oPage, '
Sorry, '.ITOP_APPLICATION_SHORT.' is in demonstration mode: the feature is disabled.
'); } try @@ -141,7 +137,7 @@ JS if (utils::GetConfig()->Get('demo_mode')) { - DisplayErrorAndDie($oPage, '
Sorry, iTop is in demonstration mode: the feature is disabled.
'); + DisplayErrorAndDie($oPage, '
Sorry, '.ITOP_APPLICATION_SHORT.' is in demonstration mode: the feature is disabled.
'); } $sToken = utils::ReadParam('token', '', false, 'raw_data'); @@ -200,7 +196,7 @@ JS if (utils::GetConfig()->Get('demo_mode')) { - throw new Exception('iTop is in demonstration mode: the feature is disabled'); + throw new Exception(ITOP_APPLICATION_SHORT.' is in demonstration mode: the feature is disabled'); } $sFile = utils::ReadParam('file', '', false, 'raw_data'); $oBackup = new DBBackupScheduled();