Suppression composants non compatibles GPL
This commit is contained in:
parent
b1aca75710
commit
c14be6f224
@ -15,7 +15,6 @@ Smarty 2.6.0 LGPL 2.1 Oui Some pages templa
|
|||||||
In alphabetical order of includes directory:
|
In alphabetical order of includes directory:
|
||||||
AdoDb-Date 0.21 Modified BSD License Oui Conversion dates
|
AdoDb-Date 0.21 Modified BSD License Oui Conversion dates
|
||||||
Php-barcode 0.3pl1 GPL 2.0 Oui Bar code generation
|
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
|
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é)
|
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
|
FPDI 1.2 Apache License 2.0 Non GPL3 uniqmt PDF encryption
|
||||||
|
|||||||
@ -1,103 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2005-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
* Copyright (C) 2005 Regis Houssin <regis@dolibarr.fr>
|
|
||||||
*
|
|
||||||
* 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
Loading…
Reference in New Issue
Block a user