diff --git a/VERSIONS_HOTLINE/178166 b/VERSIONS_HOTLINE/178166 new file mode 100644 index 0000000000000000000000000000000000000000..3ef4765e4159a47a3f7dd71f6bdf4bc8ab785a19 --- /dev/null +++ b/VERSIONS_HOTLINE/178166 @@ -0,0 +1 @@ + - correctif #178166 : ajoute un script dédié au moissonnage des albums Cafeyn \ No newline at end of file diff --git a/scripts/cafeyn_harvest.php b/scripts/cafeyn_harvest.php new file mode 100644 index 0000000000000000000000000000000000000000..086f9d80e4fceb9f31f08775939c7d360a069ca8 --- /dev/null +++ b/scripts/cafeyn_harvest.php @@ -0,0 +1,26 @@ +<?php +/** + * Copyright (c) 2012-2022, Agence Française Informatique (AFI). All rights reserved. + * + * BOKEH 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. + * + * There are special exceptions to the terms and conditions of the AGPL as it + * is applied to this software (see README file). + * + * BOKEH 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 + * along with BOKEH; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +error_reporting(E_ALL^E_DEPRECATED); +require __DIR__ . '/../console.php'; + +$service = new Cafeyn_Service(Cafeyn_Config::getInstance()); +$service->harvest();