From c14be6f224586eacfa67204574210d832812e895 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 27 Jan 2008 01:20:55 +0000 Subject: [PATCH] Suppression composants non compatibles GPL --- COPYRIGHT | 1 - .../modules/barcode/pibarcode.modules.php | 103 ------------------ 2 files changed, 104 deletions(-) delete mode 100644 htdocs/includes/modules/barcode/pibarcode.modules.php diff --git a/COPYRIGHT b/COPYRIGHT index 50a62d3c6e2..2cff7459edd 100644 --- a/COPYRIGHT +++ b/COPYRIGHT @@ -15,7 +15,6 @@ Smarty 2.6.0 LGPL 2.1 Oui Some pages templa In alphabetical order of includes directory: AdoDb-Date 0.21 Modified BSD License Oui Conversion dates Php-barcode 0.3pl1 GPL 2.0 Oui Bar code generation -Pibarcode 2.05 Perso (ask mail) Non! Bar code generation FCKEditor 2.4.4 GPL 2.0 Oui Editor WYSIWYG FPDF 1.53 Public Domain (not clear) Oui PDF generation (le code d'origine a été modifié et complété) FPDI 1.2 Apache License 2.0 Non GPL3 uniqmt PDF encryption diff --git a/htdocs/includes/modules/barcode/pibarcode.modules.php b/htdocs/includes/modules/barcode/pibarcode.modules.php deleted file mode 100644 index 1bd95c772a1..00000000000 --- a/htdocs/includes/modules/barcode/pibarcode.modules.php +++ /dev/null @@ -1,103 +0,0 @@ - - * Copyright (C) 2005 Regis Houssin - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * or see http://www.gnu.org/ - * - * $Id$ - */ - -/** - \file htdocs/includes/modules/barcode/pibarcode.modules.php - \ingroup facture - \brief Fichier contenant la classe du modèle de generation code barre pibarcode - \version $Revision$ -*/ - -require_once(DOL_DOCUMENT_ROOT ."/includes/modules/barcode/modules_barcode.php"); - -/** \class modPibarcode - \brief Classe du modèle de generation code barre pibarcode -*/ - -class modPibarcode extends ModeleBarCode -{ - var $version='dolibarr'; // 'development', 'experimental', 'dolibarr' - var $error=''; - - /** \brief Renvoi la description du modele de numérotation - * \return string Texte descripif - */ - function info() - { - global $langs; - - return 'Pi-barcode'; - } - - /** \brief Test si les numéros déjà en vigueur dans la base ne provoquent pas de - * de conflits qui empechera cette numérotation de fonctionner. - * \return boolean false si conflit, true si ok - */ - function canBeActivated() - { - global $langs; - - return true; - } - - /** - \brief Return true if encodinf is supported - \return int >0 if supported, 0 if not - */ - function encodingIsSupported($encoding) - { - $supported=0; - if ($encoding == 'EAN8') $supported=1; - if ($encoding == 'EAN13') $supported=1; - if ($encoding == 'UPC') $supported=1; - if ($encoding == 'C39') $supported=1; - if ($encoding == 'C128') $supported=1; - return $supported; - } - - /** - \brief Retourne fichier image - \param $code Valeur numérique a coder - \param $encoding Mode de codage - \param $readable Code lisible - */ - function buildBarCode($code,$encoding,$readable='Y') - { - global $_GET; - - if (! $this->encodingIsSupported($encoding)) return -1; - - if ($encoding == 'EAN8' || $encoding == 'EAN13') $encoding = 'EAN'; - - $_GET["code"]=$code; - $_GET["type"]=$encoding; - $_GET["height"]=50; - $_GET["readable"]=$readable; - - require_once(DOL_DOCUMENT_ROOT.'/includes/barcode/pi_barcode/pi_barcode.php'); - - return 1; - } - -} - -?>