diff --git a/.jenkins/configuration/default-environment/unattended_install/unattended_install.php b/.jenkins/configuration/default-environment/unattended_install/unattended_install.php index 504757673..bbd92da5f 100644 --- a/.jenkins/configuration/default-environment/unattended_install/unattended_install.php +++ b/.jenkins/configuration/default-environment/unattended_install/unattended_install.php @@ -1,7 +1,26 @@ /** - * Data structures (i.e. PHP classes) to manage "graphs" + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2015-2017 Combodo SARL - * @license http://opensource.org/licenses/AGPL-3.0 - * - * Example: - * require_once('../bootstrap.inc.php'); - * require_once(APPROOT.'application/startup.inc.php'); - * require_once(APPROOT.'core/simplegraph.class.inc.php'); - * - * $oGraph = new SimpleGraph(); - * - * $oNode1 = new GraphNode($oGraph, 'Source1'); - * $oNode2 = new GraphNode($oGraph, 'Sink'); - * $oEdge1 = new GraphEdge($oGraph, 'flow1', $oNode1, $oNode2); - * $oNode3 = new GraphNode($oGraph, 'Source2'); - * $oEdge2 = new GraphEdge($oGraph, 'flow2', $oNode3, $oNode2); - * $oEdge2 = new GraphEdge($oGraph, 'flow3', $oNode2, $oNode3); - * $oEdge2 = new GraphEdge($oGraph, 'flow4', $oNode1, $oNode3); - * - * echo $oGraph->DumpAsHtmlImage(); // requires graphviz - * echo $oGraph->DumpAsHtmlText(); + * 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 */ /** diff --git a/datamodels/2.x/itop-attachments/ajax.attachment.php b/datamodels/2.x/itop-attachments/ajax.attachment.php index 4c8836d23..ab41f7c4d 100755 --- a/datamodels/2.x/itop-attachments/ajax.attachment.php +++ b/datamodels/2.x/itop-attachments/ajax.attachment.php @@ -1,30 +1,24 @@ - - /** - * Handles various ajax requests + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2016 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 */ -require_once('../../bootstrap.inc.php'); +require_once('../../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/webpage.class.inc.php'); require_once(APPROOT.'/application/ajaxwebpage.class.inc.php'); diff --git a/datamodels/2.x/itop-backup/ajax.backup.php b/datamodels/2.x/itop-backup/ajax.backup.php index 029f8d0b4..3d72e8144 100644 --- a/datamodels/2.x/itop-backup/ajax.backup.php +++ b/datamodels/2.x/itop-backup/ajax.backup.php @@ -1,30 +1,25 @@ - /** - * Backup from an interactive session + * Copyright (C) 2013-2019 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__)); -if (!defined('APPROOT')) require_once(__DIR__.'/../../bootstrap.inc.php'); +if (!defined('APPROOT')) require_once(__DIR__.'/../../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/webpage.class.inc.php'); require_once(APPROOT.'/application/ajaxwebpage.class.inc.php'); diff --git a/datamodels/2.x/itop-backup/backup.php b/datamodels/2.x/itop-backup/backup.php index 521ef69c4..884f9c01b 100644 --- a/datamodels/2.x/itop-backup/backup.php +++ b/datamodels/2.x/itop-backup/backup.php @@ -1,31 +1,35 @@ - - /** - * Monitor the backup + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2016-2018 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__)); -if (!defined('APPROOT')) require_once(__DIR__.'/../../bootstrap.inc.php'); +if (!defined('APPROOT')) require_once(__DIR__.'/../../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'application/application.inc.php'); require_once(APPROOT.'application/itopwebpage.class.inc.php'); diff --git a/datamodels/2.x/itop-hub-connector/myextensions.php b/datamodels/2.x/itop-hub-connector/myextensions.php index 60c56e013..5578d5a91 100644 --- a/datamodels/2.x/itop-hub-connector/myextensions.php +++ b/datamodels/2.x/itop-hub-connector/myextensions.php @@ -1,28 +1,24 @@ - /** - * Tools to design OQL queries and test them + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2016 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 */ -require_once ('../bootstrap.inc.php'); + +require_once ('../approot.inc.php'); +require_once (APPROOT.'/bootstrap.inc.php'); require_once (APPROOT.'/application/application.inc.php'); require_once (APPROOT.'/application/itopwebpage.class.inc.php'); require_once (APPROOT.'setup/extensionsmap.class.inc.php'); diff --git a/datamodels/2.x/itop-portal-base/index.php b/datamodels/2.x/itop-portal-base/index.php index eb25deb46..77ace9157 100644 --- a/datamodels/2.x/itop-portal-base/index.php +++ b/datamodels/2.x/itop-portal-base/index.php @@ -16,8 +16,6 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * - * */ /** @@ -26,14 +24,15 @@ */ // Load current environment -if (file_exists(__DIR__.'/../../bootstrap.inc.php')) +if (file_exists(__DIR__.'/../../approot.inc.php')) { - require_once __DIR__.'/../../bootstrap.inc.php'; // When in env-xxxx folder + require_once __DIR__.'/../../approot.inc.php'; // When in env-xxxx folder } else { - require_once __DIR__.'/../../../bootstrap.inc.php'; // When in datamodels/x.x folder + require_once __DIR__.'/../../../approot.inc.php'; // When in datamodels/x.x folder } +require_once APPROOT.'/bootstrap.inc.php'; require_once APPROOT.'application/startup.inc.php'; // Load frontal diff --git a/datamodels/2.x/itop-portal-base/portal/config/bootstrap.php b/datamodels/2.x/itop-portal-base/portal/config/bootstrap.php index 302b34d31..10d7beb5b 100644 --- a/datamodels/2.x/itop-portal-base/portal/config/bootstrap.php +++ b/datamodels/2.x/itop-portal-base/portal/config/bootstrap.php @@ -16,8 +16,6 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * - * */ // Disable PhpUnhandledExceptionInspection as the exception handling is made by the file including this one @@ -32,14 +30,15 @@ require_once APPROOT.'/lib/autoload.php'; // Load current environment if necessary (typically from CLI as the app is not started yet) if (!defined('MODULESROOT')) { - if (file_exists(__DIR__.'/../../../../bootstrap.inc.php')) + if (file_exists(__DIR__.'/../../../../approot.inc.php')) { - require_once __DIR__.'/../../../../bootstrap.inc.php'; // When in env-xxxx folder + require_once __DIR__.'/../../../../approot.inc.php'; // When in env-xxxx folder } else { - require_once __DIR__.'/../../../../../bootstrap.inc.php'; // When in datamodels/x.x folder + require_once __DIR__.'/../../../../../approot.inc.php'; // When in datamodels/x.x folder } + require_once APPROOT.'/bootstrap.inc.php'; require_once APPROOT.'/application/startup.inc.php'; } diff --git a/datamodels/2.x/itop-portal/index.php b/datamodels/2.x/itop-portal/index.php index 797832ceb..dd7786330 100644 --- a/datamodels/2.x/itop-portal/index.php +++ b/datamodels/2.x/itop-portal/index.php @@ -16,8 +16,6 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * - * */ /** @@ -40,14 +38,15 @@ ); // Load current environment -if (file_exists(__DIR__.'/../../bootstrap.inc.php')) +if (file_exists(__DIR__.'/../../approot.inc.php')) { - require_once __DIR__.'/../../bootstrap.inc.php'; // When in env-xxxx folder + require_once __DIR__.'/../../approot.inc.php'; // When in env-xxxx folder } else { - require_once __DIR__.'/../../../bootstrap.inc.php'; // When in datamodels/x.x folder + require_once __DIR__.'/../../../approot.inc.php'; // When in datamodels/x.x folder } +require_once APPROOT.'/bootstrap.inc.php'; require_once APPROOT.'application/startup.inc.php'; // Protection against setup in the following configuration : ITIL Ticket with Enhanced Portal selected but neither UserRequest or Incident. Which would crash the portal. diff --git a/pages/UI.php b/pages/UI.php index 8f78e4af0..8a3acb42b 100644 --- a/pages/UI.php +++ b/pages/UI.php @@ -1,31 +1,22 @@ - - /** - * Main page of iTop + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-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 */ - /** * Displays a popup welcome message, once per session at maximum * until the user unchecks the "Display welcome at startup" @@ -340,7 +331,8 @@ function DisplayNavigatorGroupTab($oP) * Main user interface page starts here * ***********************************************************************************/ -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/itopwebpage.class.inc.php'); require_once(APPROOT.'/application/wizardhelper.class.inc.php'); diff --git a/pages/UniversalSearch.php b/pages/UniversalSearch.php index d8d103623..f584ca043 100644 --- a/pages/UniversalSearch.php +++ b/pages/UniversalSearch.php @@ -1,30 +1,24 @@ - - /** - * Analytical search + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2016 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 */ -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/itopwebpage.class.inc.php'); require_once(APPROOT.'/application/applicationcontext.class.inc.php'); diff --git a/pages/ajax.csvimport.php b/pages/ajax.csvimport.php index a058f41b1..5d401c8c8 100644 --- a/pages/ajax.csvimport.php +++ b/pages/ajax.csvimport.php @@ -1,29 +1,24 @@ - /** - * Specific to the interactive csv import + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2012 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 */ -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/webpage.class.inc.php'); require_once(APPROOT.'/application/ajaxwebpage.class.inc.php'); diff --git a/pages/ajax.document.php b/pages/ajax.document.php index a3f579fc2..c4600d182 100644 --- a/pages/ajax.document.php +++ b/pages/ajax.document.php @@ -15,11 +15,10 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * - * */ -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'application/utils.inc.php'); diff --git a/pages/ajax.render.php b/pages/ajax.render.php index eeb7afc79..2f706a810 100644 --- a/pages/ajax.render.php +++ b/pages/ajax.render.php @@ -15,11 +15,10 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * - * */ -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'application/application.inc.php'); require_once(APPROOT.'application/webpage.class.inc.php'); require_once(APPROOT.'application/ajaxwebpage.class.inc.php'); diff --git a/pages/ajax.searchform.php b/pages/ajax.searchform.php index 5db43e012..97b1e77a1 100644 --- a/pages/ajax.searchform.php +++ b/pages/ajax.searchform.php @@ -1,11 +1,11 @@ - * */ use Combodo\iTop\Application\Search\AjaxSearchException; use Combodo\iTop\Application\Search\CriterionParser; -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/webpage.class.inc.php'); require_once(APPROOT.'/application/ajaxwebpage.class.inc.php'); diff --git a/pages/audit.php b/pages/audit.php index 1e8650606..864b06dda 100644 --- a/pages/audit.php +++ b/pages/audit.php @@ -1,27 +1,22 @@ - /** - * Execute and shows the data quality audit + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-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 */ + /** * Adds the context parameters to the audit rule query * @@ -163,7 +158,8 @@ function GetReportColor($iTotal, $iErrors) try { - require_once('../bootstrap.inc.php'); + require_once('../approot.inc.php'); + require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/itopwebpage.class.inc.php'); require_once(APPROOT.'/application/csvpage.class.inc.php'); diff --git a/pages/csvimport.php b/pages/csvimport.php index 7078891a9..c6b3c1015 100644 --- a/pages/csvimport.php +++ b/pages/csvimport.php @@ -1,32 +1,27 @@ - /** - * CSV Import Page - * Wizard to import CSV (or TSV) data into the database + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2016 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 */ + try { ini_set('memory_limit', '256M'); - require_once('../bootstrap.inc.php'); + require_once('../approot.inc.php'); + require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/itopwebpage.class.inc.php'); require_once(APPROOT.'/application/ajaxwebpage.class.inc.php'); diff --git a/pages/exec.php b/pages/exec.php index a83002ba5..62e527dda 100644 --- a/pages/exec.php +++ b/pages/exec.php @@ -1,38 +1,24 @@ - - /** - * Execute a module page - this is an alternative to invoking /myItop/env-production/myModule/somePage.php + * Copyright (C) 2013-2019 Combodo SARL * - * The recommended way to build an URL to a module page is to invoke utils::GetAbsoluteUrlModulePage() - * or its javascript equivalent GetAbsoluteUrlModulePage() - * - * To be compatible with this mechanism, the called page must include approot - * with an absolute path OR not include it at all (losing the direct access to the page) - * if (!defined('__DIR__')) define('__DIR__', dirname(__FILE__)); - * require_once(__DIR__.'/../../approot.inc.php'); - * - * @copyright Copyright (C) 2013 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 */ -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); // Needed to read the parameters (with sanitization) require_once(APPROOT.'application/utils.inc.php'); diff --git a/pages/graphviz.php b/pages/graphviz.php index 1e29dd121..a2f9f875b 100644 --- a/pages/graphviz.php +++ b/pages/graphviz.php @@ -1,30 +1,24 @@ - - /** - * Renders a graph of the class' lifecycle as a png (directly in the HTTP response) + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2012 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 */ -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/itopwebpage.class.inc.php'); diff --git a/pages/logoff.php b/pages/logoff.php index b64731fb0..f4fd08c8e 100644 --- a/pages/logoff.php +++ b/pages/logoff.php @@ -1,22 +1,24 @@ +/** + * Copyright (C) 2013-2019 Combodo SARL + * + * 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 + */ -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/itopwebpage.class.inc.php'); require_once(APPROOT.'/application/wizardhelper.class.inc.php'); diff --git a/pages/navigator.php b/pages/navigator.php index a59e14b60..621102c86 100755 --- a/pages/navigator.php +++ b/pages/navigator.php @@ -1,26 +1,28 @@ +/** + * Copyright (C) 2013-2019 Combodo SARL + * + * 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 + */ /** * Display the Flash navigator, in the whole pane */ -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/itopwebpage.class.inc.php'); diff --git a/pages/notifications.php b/pages/notifications.php index fa7679962..6f7c67727 100644 --- a/pages/notifications.php +++ b/pages/notifications.php @@ -1,30 +1,24 @@ - - /** - * Page to configuration the notifications (triggers and actions) + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2013-2016 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 */ -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/itopwebpage.class.inc.php'); diff --git a/pages/opensearch.xml.php b/pages/opensearch.xml.php index 62105845d..8b84bd568 100644 --- a/pages/opensearch.xml.php +++ b/pages/opensearch.xml.php @@ -1,29 +1,24 @@ - - /** - * ??? + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2012 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 */ -require_once('../bootstrap.inc.php'); + +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/startup.inc.php'); diff --git a/pages/preferences.php b/pages/preferences.php index ce42981f3..fd1cabf4b 100644 --- a/pages/preferences.php +++ b/pages/preferences.php @@ -1,29 +1,24 @@ - /** - * User preferences page - * Displays / edit some user preferences + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-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 */ -require_once('../bootstrap.inc.php'); + +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/itopwebpage.class.inc.php'); require_once(APPROOT.'/application/startup.inc.php'); diff --git a/pages/run_query.php b/pages/run_query.php index e65253ad1..1aec65971 100644 --- a/pages/run_query.php +++ b/pages/run_query.php @@ -1,30 +1,24 @@ - - /** - * Tools to design OQL queries and test them + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2016 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 */ -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/itopwebpage.class.inc.php'); require_once(APPROOT.'/application/startup.inc.php'); diff --git a/pages/schema.php b/pages/schema.php index eeb4b4628..4f8c56a32 100644 --- a/pages/schema.php +++ b/pages/schema.php @@ -1,30 +1,24 @@ - - /** - * Presentation of the data model + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2018 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 */ -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/itopwebpage.class.inc.php'); diff --git a/pages/tagadmin.php b/pages/tagadmin.php index 7acbdb36b..005e82697 100644 --- a/pages/tagadmin.php +++ b/pages/tagadmin.php @@ -1,30 +1,24 @@ - - /** - * Page to configuration the tag sets + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2018 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 */ -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'application/application.inc.php'); require_once(APPROOT.'application/itopwebpage.class.inc.php'); require_once(APPROOT.'application/startup.inc.php'); diff --git a/portal/index.php b/portal/index.php index ba341733e..701fa662b 100644 --- a/portal/index.php +++ b/portal/index.php @@ -16,11 +16,10 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * - * */ -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); try diff --git a/setup/ajax.dataloader.php b/setup/ajax.dataloader.php index 09ffae17c..7ede187a9 100644 --- a/setup/ajax.dataloader.php +++ b/setup/ajax.dataloader.php @@ -1,27 +1,20 @@ - - /** - * Does load data from XML files (currently used in the setup only) + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2018 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 */ /** @@ -41,7 +34,8 @@ * 'percent': integer 0..100 the percentage of completion once the file has been loaded */ define('SAFE_MINIMUM_MEMORY', 64*1024*1024); -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/utils.inc.php'); require_once(APPROOT.'/setup/setuppage.class.inc.php'); require_once(APPROOT.'/setup/moduleinstaller.class.inc.php'); diff --git a/setup/email.test.php b/setup/email.test.php index e1ab91d9a..25c685f8f 100644 --- a/setup/email.test.php +++ b/setup/email.test.php @@ -1,33 +1,27 @@ - - /** - * Emailing: helper for the admins to troubleshoot email issues + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2012 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 */ /** * Wizard to configure and initialize the iTop application */ -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/utils.inc.php'); require_once(APPROOT.'/core/email.class.inc.php'); require_once('./setuppage.class.inc.php'); diff --git a/setup/index.php b/setup/index.php index 14abfc796..186dac86a 100644 --- a/setup/index.php +++ b/setup/index.php @@ -1,29 +1,24 @@ - /** - * Wizard to configure and initialize the iTop application + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2012 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 */ -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/utils.inc.php'); require_once(APPROOT.'/core/config.class.inc.php'); require_once(APPROOT.'/setup/setuppage.class.inc.php'); diff --git a/setup/phpinfo.php b/setup/phpinfo.php index 9181c67ef..4c3b90328 100644 --- a/setup/phpinfo.php +++ b/setup/phpinfo.php @@ -1,5 +1,24 @@ - /** - * Internal: synchronize part of the records - cannot be invoked separately + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2012 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__)); -require_once(__DIR__.'/../bootstrap.inc.php'); +require_once(__DIR__.'/../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/webpage.class.inc.php'); require_once(APPROOT.'/application/csvpage.class.inc.php'); diff --git a/synchro/replica.php b/synchro/replica.php index 9e32f77eb..c2607c17f 100644 --- a/synchro/replica.php +++ b/synchro/replica.php @@ -1,28 +1,24 @@ - /** - * Display and search synchro replicas - * - * @copyright Copyright (C) 2010-2017 Combodo SARL - * @license http://opensource.org/licenses/AGPL-3.0 + * Copyright (C) 2013-2019 Combodo SARL + * + * 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 */ -require_once('../bootstrap.inc.php'); + +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/itopwebpage.class.inc.php'); diff --git a/synchro/synchro_exec.php b/synchro/synchro_exec.php index fc6733b95..686c724a5 100644 --- a/synchro/synchro_exec.php +++ b/synchro/synchro_exec.php @@ -1,26 +1,20 @@ - /** - * Import web service + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2012 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 */ // @@ -34,7 +28,8 @@ // if (!defined('__DIR__')) define('__DIR__', dirname(__FILE__)); -require_once(__DIR__.'/../bootstrap.inc.php'); +require_once(__DIR__.'/../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/webpage.class.inc.php'); require_once(APPROOT.'/application/csvpage.class.inc.php'); diff --git a/synchro/synchro_import.php b/synchro/synchro_import.php index d9eeb5a83..c58a8ebf3 100644 --- a/synchro/synchro_import.php +++ b/synchro/synchro_import.php @@ -1,26 +1,20 @@ - /** - * Data Exchange web service + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-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 */ // @@ -33,7 +27,8 @@ if (!defined('__DIR__')) /** @noinspection DirectoryConstantCanBeUsedInspection */ define('__DIR__', dirname(__FILE__)); } -require_once __DIR__.'/../bootstrap.inc.php'; +require_once __DIR__.'/../approot.inc.php'; +require_once APPROOT.'/bootstrap.inc.php'; require_once APPROOT.'/application/application.inc.php'; require_once APPROOT.'/application/webpage.class.inc.php'; require_once APPROOT.'/application/csvpage.class.inc.php'; diff --git a/test/GroupByAndFunctions.php b/test/GroupByAndFunctions.php index fd44527b7..287201022 100644 --- a/test/GroupByAndFunctions.php +++ b/test/GroupByAndFunctions.php @@ -1,23 +1,24 @@ -// +/** + * Copyright (C) 2013-2019 Combodo SARL + * + * 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 + */ -require_once ('../bootstrap.inc.php'); +require_once ('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'application/application.inc.php'); require_once(APPROOT.'application/itopwebpage.class.inc.php'); require_once(APPROOT.'application/startup.inc.php'); diff --git a/test/ItopTestCase.php b/test/ItopTestCase.php index 96f83c2ad..c99d35dfd 100644 --- a/test/ItopTestCase.php +++ b/test/ItopTestCase.php @@ -1,21 +1,21 @@ -// +/** + * Copyright (C) 2013-2019 Combodo SARL + * + * 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 + */ namespace Combodo\iTop\Test\UnitTest; /** @@ -33,14 +33,15 @@ class ItopTestCase extends TestCase { protected function setUp() { - @include_once '../bootstrap.inc.php'; - @include_once '../../bootstrap.inc.php'; - @include_once '../../../bootstrap.inc.php'; - @include_once '../../../../bootstrap.inc.php'; - @include_once '../../../../../bootstrap.inc.php'; - @include_once '../../../../../../bootstrap.inc.php'; - @include_once '../../../../../../../bootstrap.inc.php'; - @include_once '../../../../../../../../bootstrap.inc.php'; + @include_once '../approot.inc.php'; + @include_once '../../approot.inc.php'; + @include_once '../../../approot.inc.php'; + @include_once '../../../../approot.inc.php'; + @include_once '../../../../../approot.inc.php'; + @include_once '../../../../../../approot.inc.php'; + @include_once '../../../../../../../approot.inc.php'; + @include_once '../../../../../../../../approot.inc.php'; + @require_once APPROOT.'/bootstrap.inc.php'; $this->debug("\n----------\n---------- ".$this->getName()."\n----------\n"); diff --git a/test/benchmark.php b/test/benchmark.php index 2f66215cf..7031072b7 100644 --- a/test/benchmark.php +++ b/test/benchmark.php @@ -1,30 +1,24 @@ - - /** - * Page designed to help in benchmarkink the scalability of itop + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2012 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 */ -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/itopwebpage.class.inc.php'); require_once(APPROOT.'/application/wizardhelper.class.inc.php'); diff --git a/test/display_cache_content.php b/test/display_cache_content.php index 44ce59281..10b59c950 100644 --- a/test/display_cache_content.php +++ b/test/display_cache_content.php @@ -1,27 +1,28 @@ -// +/** + * Copyright (C) 2013-2019 Combodo SARL + * + * 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 + */ /** * Date: 06/10/2017 */ -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'application/startup.inc.php'); diff --git a/test/replay_query_log.php b/test/replay_query_log.php index 7bd1c1fad..b3aedeb20 100644 --- a/test/replay_query_log.php +++ b/test/replay_query_log.php @@ -1,29 +1,22 @@ - /** - * Replay the query log made when log_queries = 1 + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2015 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 */ - function LogResult($sString) { file_put_contents(APPROOT.'data/queries.results.log', "\n".$sString, FILE_APPEND); @@ -210,7 +203,8 @@ class QueryLogEntry // ///////////////////////////////////////////////////////////////////////////// -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/ajaxwebpage.class.inc.php'); diff --git a/test/test.php b/test/test.php index 1863ae544..f73f85e2c 100644 --- a/test/test.php +++ b/test/test.php @@ -1,27 +1,20 @@ - - /** - * Core test page + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2014 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 */ ?> @@ -92,7 +85,8 @@ function DisplayEvents($aEvents, $sTitle) date_default_timezone_set('Europe/Paris'); -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/utils.inc.php'); require_once('./test.class.inc.php'); require_once('./testlist.inc.php'); diff --git a/webservices/backoffice.dataloader.php b/webservices/backoffice.dataloader.php index dc71e6764..37ff476f1 100644 --- a/webservices/backoffice.dataloader.php +++ b/webservices/backoffice.dataloader.php @@ -1,27 +1,20 @@ - - /** - * Does load data from XML files (currently used in the setup and the backoffice data loader utility) + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2012 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 */ /** @@ -31,7 +24,8 @@ */ define('SAFE_MINIMUM_MEMORY', 256*1024*1024); -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/startup.inc.php'); diff --git a/webservices/createfrommail.php b/webservices/createfrommail.php index fb82f67cc..147265761 100644 --- a/webservices/createfrommail.php +++ b/webservices/createfrommail.php @@ -1,35 +1,20 @@ - /** - * Specific page to read a mailbox using the POP3 protocol, get the incoming - * mails, turn them into UserRequest tickets, then remove the mails - * from the mailbox. In order to create tickets from emails received into - * such an inbox, this page must be called at frequent intervals, since it - * will process all the messages sitting in the inbox, then exit. - * You can use a simple scheduled 'wget' command line script to call this page - * from either a 'cron'' (Unix) or 'at' (Windows) command. - * - * Use this page as an example and feel free to tailor it to your needs, - * especially the default settings for the ticket (see below) + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2012 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 */ // Some PEAR includes that are required for reading emails @@ -51,7 +36,8 @@ define('DEFAULT_PRODUCT', 'Request via eMail'); define('DEFAULT_WORKGROUP_ID', 5); if (!defined('__DIR__')) define('__DIR__', dirname(__FILE__)); -require_once(__DIR__.'/../bootstrap.inc.php'); +require_once(__DIR__.'/../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/startup.inc.php'); diff --git a/webservices/cron.php b/webservices/cron.php index 5bdaccf1a..4c872a92d 100644 --- a/webservices/cron.php +++ b/webservices/cron.php @@ -1,30 +1,25 @@ - /** - * Heart beat of the application (process asynchron tasks such as broadcasting email) + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2016 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__)); -require_once(__DIR__.'/../bootstrap.inc.php'); +require_once(__DIR__.'/../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/nicewebpage.class.inc.php'); require_once(APPROOT.'/application/webpage.class.inc.php'); diff --git a/webservices/export-v2.php b/webservices/export-v2.php index 5929aa12a..6e715c6a8 100644 --- a/webservices/export-v2.php +++ b/webservices/export-v2.php @@ -1,30 +1,25 @@ - /** - * Export data specified by an OQL or a query phrasebook entry + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2015-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__)); -require_once(__DIR__.'/../bootstrap.inc.php'); +require_once(__DIR__.'/../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/nicewebpage.class.inc.php'); require_once(APPROOT.'/application/ajaxwebpage.class.inc.php'); diff --git a/webservices/export.php b/webservices/export.php index d10f9016b..3481307b3 100644 --- a/webservices/export.php +++ b/webservices/export.php @@ -1,31 +1,25 @@ - - /** - * Export data specified by an OQL + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-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__)); -require_once(__DIR__.'/../bootstrap.inc.php'); +require_once(__DIR__.'/../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/nicewebpage.class.inc.php'); require_once(APPROOT.'/application/ajaxwebpage.class.inc.php'); diff --git a/webservices/import.php b/webservices/import.php index 3903b2eb4..0b5eec6fe 100644 --- a/webservices/import.php +++ b/webservices/import.php @@ -1,27 +1,20 @@ - - /** - * Import web service + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2012 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 */ // @@ -35,7 +28,8 @@ // if (!defined('__DIR__')) define('__DIR__', dirname(__FILE__)); -require_once(__DIR__.'/../bootstrap.inc.php'); +require_once(__DIR__.'/../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/webpage.class.inc.php'); require_once(APPROOT.'/application/csvpage.class.inc.php'); diff --git a/webservices/itop.wsdl.php b/webservices/itop.wsdl.php index 1602dc6c4..553a6d88f 100644 --- a/webservices/itop.wsdl.php +++ b/webservices/itop.wsdl.php @@ -1,26 +1,20 @@ - /** - * Dynamic generation of the WSDL file for SOAP Web services + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2012 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 (isset($_REQUEST['debug'])) @@ -43,7 +37,8 @@ else header('Content-Disposition: online; filename="itop.wsdl"'); } -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'webservices/webservices.class.inc.php'); require_once(APPROOT.'core/config.class.inc.php'); require_once(APPROOT.'application/utils.inc.php'); diff --git a/webservices/rest.php b/webservices/rest.php index 774e7087d..ba6760034 100644 --- a/webservices/rest.php +++ b/webservices/rest.php @@ -1,67 +1,25 @@ - /** - * Entry point for all the REST services + * Copyright (C) 2013-2019 Combodo SARL * - * -------------------------------------------------- - * Create an object - * -------------------------------------------------- - * POST itop/webservices/rest.php - * { - * operation: 'object_create', - * comment: 'Synchronization from blah...', - * class: 'UserRequest', - * results: 'id, friendlyname', - * fields: - * { - * org_id: 'SELECT Organization WHERE name = "Demo"', - * caller_id: - * { - * name: 'monet', - * first_name: 'claude', - * } - * title: 'Houston, got a problem!', - * description: 'The fridge is empty' - * contacts_list: - * [ - * { - * role: 'pizza delivery', - * contact_id: - * { - * finalclass: 'Person', - * name: 'monet', - * first_name: 'claude' - * } - * } - * ] - * } - * } + * 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. * - * @copyright Copyright (C) 2010-2013 Combodo SARL - * @license http://opensource.org/licenses/AGPL-3.0 - * @link https://www.itophub.io/wiki/page?id=2_5_0%3Aadvancedtopics%3Arest_json REST service documentation - * @example https://www.itophub.io/wiki/page?id=2_5_0%3Aadvancedtopics%3Arest_json_playground + * 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__)); -require_once(__DIR__.'/../bootstrap.inc.php'); +require_once(__DIR__.'/../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/loginwebpage.class.inc.php'); require_once(APPROOT.'/application/ajaxwebpage.class.inc.php'); diff --git a/webservices/soapserver.php b/webservices/soapserver.php index f313a7f0e..fb2c783f6 100644 --- a/webservices/soapserver.php +++ b/webservices/soapserver.php @@ -1,33 +1,27 @@ - - /** - * Handling of SOAP queries + * Copyright (C) 2013-2019 Combodo SARL * - * @copyright Copyright (C) 2010-2012 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 */ // Important note: if some required includes are missing, this might result // in the error "looks like we got no XML document"... -require_once('../bootstrap.inc.php'); +require_once('../approot.inc.php'); +require_once(APPROOT.'/bootstrap.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/startup.inc.php');