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_old /
btm2000.bak /
core /
modules /
Delete
Unzip
Name
Size
Permission
Date
Action
action
[ DIR ]
drwxr-xr-x
2025-11-25 13:16
bank
[ DIR ]
drwxr-xr-x
2025-11-25 13:16
barcode
[ DIR ]
drwxr-xr-x
2025-11-25 13:16
cheque
[ DIR ]
drwxr-xr-x
2025-11-25 13:16
commande
[ DIR ]
drwxr-xr-x
2025-11-25 13:16
contract
[ DIR ]
drwxr-xr-x
2025-11-25 13:16
dons
[ DIR ]
drwxr-xr-x
2025-11-25 13:16
expedition
[ DIR ]
drwxr-xr-x
2025-11-25 13:16
expensereport
[ DIR ]
drwxr-xr-x
2025-11-25 13:16
export
[ DIR ]
drwxr-xr-x
2025-11-25 13:16
facture
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
fichinter
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
import
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
livraison
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
mailings
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
member
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
oauth
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
payment
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
printing
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
printsheet
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
product
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
product_batch
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
project
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
propale
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
rapport
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
security
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
societe
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
stock
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
supplier_invoice
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
supplier_order
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
supplier_payment
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
supplier_proposal
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
syslog
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
ticket
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
user
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
usergroup
[ DIR ]
drwxr-xr-x
2025-11-25 13:15
website
[ DIR ]
drwxr-xr-x
2025-11-25 12:58
DolibarrModules.class.php
58.88
KB
-rw-r--r--
2025-11-25 13:16
index.html
0
B
-rw-r--r--
2025-11-25 13:15
modAccounting.class.php
11.74
KB
-rw-r--r--
2025-11-25 13:15
modAdherent.class.php
18.27
KB
-rw-r--r--
2025-11-25 13:15
modAgenda.class.php
18.61
KB
-rw-r--r--
2025-11-25 13:15
modApi.class.php
13.55
KB
-rw-r--r--
2025-11-25 13:15
modAsset.class.php
19.68
KB
-rw-r--r--
2025-11-25 13:15
modBanque.class.php
10.09
KB
-rw-r--r--
2025-11-25 13:15
modBarcode.class.php
8.19
KB
-rw-r--r--
2025-11-25 13:15
modBlockedLog.class.php
9.69
KB
-rw-r--r--
2025-11-25 13:15
modBookmark.class.php
3.52
KB
-rw-r--r--
2025-11-25 13:15
modCashDesk.class.php
5.6
KB
-rw-r--r--
2025-11-25 13:15
modCategorie.class.php
22.76
KB
-rw-r--r--
2025-11-25 13:15
modClickToDial.class.php
2.31
KB
-rw-r--r--
2025-11-25 13:15
modCollab.class.php
4.88
KB
-rw-r--r--
2025-11-25 13:15
modCommande.class.php
13.43
KB
-rw-r--r--
2025-11-25 13:15
modComptabilite.class.php
3.75
KB
-rw-r--r--
2025-11-25 13:15
modContrat.class.php
9.99
KB
-rw-r--r--
2025-11-25 13:15
modCron.class.php
5.96
KB
-rw-r--r--
2025-11-25 13:15
modDav.class.php
18.94
KB
-rw-r--r--
2025-11-25 13:15
modDeplacement.class.php
6.25
KB
-rw-r--r--
2025-11-25 13:15
modDocumentGeneration.class.php
3.41
KB
-rw-r--r--
2025-11-25 13:15
modDon.class.php
5.27
KB
-rw-r--r--
2025-11-25 13:15
modDynamicPrices.class.php
2.88
KB
-rw-r--r--
2025-11-25 13:15
modECM.class.php
6.37
KB
-rw-r--r--
2025-11-25 13:15
modExpedition.class.php
15.36
KB
-rw-r--r--
2025-11-25 13:15
modExpenseReport.class.php
9.03
KB
-rw-r--r--
2025-11-25 13:15
modExport.class.php
2.93
KB
-rw-r--r--
2025-11-25 13:15
modExternalRss.class.php
4.21
KB
-rw-r--r--
2025-11-25 13:15
modExternalSite.class.php
4.42
KB
-rw-r--r--
2025-11-25 13:15
modFTP.class.php
4.43
KB
-rw-r--r--
2025-11-25 13:15
modFacture.class.php
20.27
KB
-rw-r--r--
2025-11-25 13:15
modFckeditor.class.php
3.58
KB
-rw-r--r--
2025-11-25 13:15
modFicheinter.class.php
9.78
KB
-rw-r--r--
2025-11-25 13:15
modFournisseur.class.php
31.32
KB
-rw-r--r--
2025-11-25 13:15
modGeoIPMaxmind.class.php
3.1
KB
-rw-r--r--
2025-11-25 13:15
modGravatar.class.php
10.38
KB
-rw-r--r--
2025-11-25 13:15
modHRM.class.php
4.2
KB
-rw-r--r--
2025-11-25 13:15
modHoliday.class.php
13.49
KB
-rw-r--r--
2025-11-25 13:15
modImport.class.php
2.99
KB
-rw-r--r--
2025-11-25 13:15
modIncoterm.class.php
4.33
KB
-rw-r--r--
2025-11-25 13:15
modLabel.class.php
3.55
KB
-rw-r--r--
2025-11-25 13:15
modLdap.class.php
3.46
KB
-rw-r--r--
2025-11-25 13:15
modLoan.class.php
4.37
KB
-rw-r--r--
2025-11-25 13:15
modMailing.class.php
4.76
KB
-rw-r--r--
2025-11-25 13:15
modMailmanSpip.class.php
3.05
KB
-rw-r--r--
2025-11-25 13:15
modMargin.class.php
6.4
KB
-rw-r--r--
2025-11-25 13:15
modModuleBuilder.class.php
3.88
KB
-rw-r--r--
2025-11-25 13:15
modMultiCurrency.class.php
17.97
KB
-rw-r--r--
2025-11-25 13:15
modNotification.class.php
2.95
KB
-rw-r--r--
2025-11-25 13:15
modOauth.class.php
5.8
KB
-rw-r--r--
2025-11-25 13:15
modOpenSurvey.class.php
7.65
KB
-rw-r--r--
2025-11-25 13:15
modPaybox.class.php
10.65
KB
-rw-r--r--
2025-11-25 13:15
modPaypal.class.php
11.25
KB
-rw-r--r--
2025-11-25 13:15
modPrelevement.class.php
4.97
KB
-rw-r--r--
2025-11-25 13:15
modPrinting.class.php
5.2
KB
-rw-r--r--
2025-11-25 13:15
modProduct.class.php
29.09
KB
-rw-r--r--
2025-11-25 13:15
modProductBatch.class.php
4.49
KB
-rw-r--r--
2025-11-25 13:15
modProjet.class.php
18.04
KB
-rw-r--r--
2025-11-25 13:15
modPropale.class.php
13.75
KB
-rw-r--r--
2025-11-25 13:15
modReceiptPrinter.class.php
6.3
KB
-rw-r--r--
2025-11-25 13:15
modResource.class.php
13.05
KB
-rw-r--r--
2025-11-25 13:15
modSalaries.class.php
6.33
KB
-rw-r--r--
2025-11-25 13:15
modService.class.php
20.12
KB
-rw-r--r--
2025-11-25 13:15
modSkype.class.php
3.17
KB
-rw-r--r--
2025-11-25 13:15
modSociete.class.php
30.45
KB
-rw-r--r--
2025-11-25 13:15
modStock.class.php
19.88
KB
-rw-r--r--
2025-11-25 13:15
modStripe.class.php
6.59
KB
-rw-r--r--
2025-11-25 13:15
modSupplierProposal.class.php
9.07
KB
-rw-r--r--
2025-11-25 13:15
modSyslog.class.php
3.74
KB
-rw-r--r--
2025-11-25 13:15
modTax.class.php
7.86
KB
-rw-r--r--
2025-11-25 13:15
modTicket.class.php
14.47
KB
-rw-r--r--
2025-11-25 13:15
modUser.class.php
12.59
KB
-rw-r--r--
2025-11-25 13:15
modVariants.class.php
4.67
KB
-rw-r--r--
2025-11-25 13:15
modWebServices.class.php
2.96
KB
-rw-r--r--
2025-11-25 13:15
modWebServicesClient.class.php
2.93
KB
-rw-r--r--
2025-11-25 13:15
modWebsite.class.php
6.24
KB
-rw-r--r--
2025-11-25 13:15
modWorkflow.class.php
6.22
KB
-rw-r--r--
2025-11-25 13:15
Save
Rename
<?php /* Copyright (C) 2013-2014 Olivier Geffroy <jeff@jeffinfo.com> * Copyright (C) 2013-2018 Alexandre Spangaro <aspangaro@zendsi.com> * Copyright (C) 2014 Ari Elbaz (elarifr) <github@accedinfo.com> * Copyright (C) 2014 Florian Henry <florian.henry@open-concept.pro> * Copyright (C) 2016-2017 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2017 Open-DSI <support@open-dsi.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 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 <http://www.gnu.org/licenses/>. */ /** * \file htdocs/core/modules/modAccounting.class.php * \ingroup Advanced accountancy * \brief Module to activate Accounting Expert module */ include_once DOL_DOCUMENT_ROOT .'/core/modules/DolibarrModules.class.php'; /** * Description and activation class for module accounting expert */ class modAccounting extends DolibarrModules { /** * Constructor. Define names, constants, directories, boxes, permissions * * @param DoliDB $db Database handler */ function __construct($db) { global $conf; $this->db = $db; $this->numero = 50400; $this->family = "financial"; $this->module_position = 610; // 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 = "Advanced accounting management"; // Possible values for version are: 'development', 'experimental', 'dolibarr' or 'dolibarr_deprecated' or version $this->version = 'dolibarr'; $this->const_name = 'MAIN_MODULE_' . strtoupper($this->name); $this->picto = 'accounting'; // Data directories to create when module is enabled $this->dirs = array('/accounting/temp'); // Config pages $this->config_page_url = array(); // Dependencies $this->depends = array("modFacture","modBanque","modTax"); // 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("modComptabilite"); // List of modules are in conflict with this module $this->phpmin = array(5, 3); // Minimum version of PHP required by module $this->need_dolibarr_version = array(3, 9); // Minimum version of Dolibarr required by module $this->langfiles = array("accountancy","compta"); // Constants // List of particular constants to add when module is enabled (key, 'chaine', value, desc, visible, 'current' or 'allentities', deleteonunactive) // Example: $this->const=array(0=>array('MYMODULE_MYNEWCONST1','chaine','myvalue','This is a constant to add',1), // 1=>array('MYMODULE_MYNEWCONST2','chaine','myvalue','This is another constant to add',0, 'current', 1) // ); $this->const = array(); $this->const[1] = array( "MAIN_COMPANY_CODE_ALWAYS_REQUIRED", "chaine", "1", "With this constants on, third party code is always required whatever is numbering module behaviour", 0, 'current', 0 ); $this->const[2] = array( "MAIN_BANK_ACCOUNTANCY_CODE_ALWAYS_REQUIRED", "chaine", "1", "With this constants on, bank account number is always required", 0, 'current', 1 ); $this->const[3] = array( "ACCOUNTING_ACCOUNT_SUSPENSE", "chaine", "471", "", 0, 'current', 0 ); $this->const[4] = array( "ACCOUNTING_ACCOUNT_TRANSFER_CASH", "chaine", "58", "", 0, 'current', 0 ); $this->const[5] = array( "CHARTOFACCOUNTS", "chaine", "2", "", 0, 'current', 0 ); $this->const[6] = array( "ACCOUNTING_EXPORT_MODELCSV", "chaine", "1", "", 0, 'current', 0 ); $this->const[7] = array( "ACCOUNTING_LENGTH_GACCOUNT", "chaine", "", "", 0, 'current', 0 ); $this->const[8] = array( "ACCOUNTING_LENGTH_AACCOUNT", "chaine", "", "", 0, 'current', 0 ); $this->const[9] = array( "ACCOUNTING_LIST_SORT_VENTILATION_TODO", "yesno", "1", "", 0, 'current', 0 ); $this->const[10] = array( "ACCOUNTING_LIST_SORT_VENTILATION_DONE", "yesno", "1", "", 0, 'current', 0 ); $this->const[11] = array ( "ACCOUNTING_EXPORT_DATE", "chaine", "%d%m%Y", "", 0, 'current', 0 ); $this->const[12] = array( "ACCOUNTING_EXPORT_SEPARATORCSV", "string", ",", "", 0, 'current', 0 ); $this->const[13] = array( "ACCOUNTING_EXPORT_FORMAT", "chaine", "csv", "", 0, 'current', 0 ); // Tabs $this->tabs = array(); // Css $this->module_parts = array(); // Boxes $this->boxes = array(); // Permissions $this->rights_class = 'accounting'; $this->rights = array(); // Permission array used by this module $r = 0; $this->rights[$r][0] = 50440; $this->rights[$r][1] = 'Manage chart of accounts, setup of accountancy'; $this->rights[$r][2] = 'r'; $this->rights[$r][3] = 0; $this->rights[$r][4] = 'chartofaccount'; $this->rights[$r][5] = ''; $r++; $this->rights[$r][0] = 50401; $this->rights[$r][1] = 'Bind products and invoices with accounting accounts'; $this->rights[$r][2] = 'r'; $this->rights[$r][3] = 0; $this->rights[$r][4] = 'bind'; $this->rights[$r][5] = 'write'; $r++; /* $this->rights[$r][0] = 50402; $this->rights[$r][1] = 'Make binding with products and invoices'; $this->rights[$r][2] = 'r'; $this->rights[$r][3] = 0; $this->rights[$r][4] = 'ventilation'; $this->rights[$r][5] = 'dispatch_advanced'; $r++; */ $this->rights[$r][0] = 50411; $this->rights[$r][1] = 'Read operations in Ledger'; $this->rights[$r][2] = 'r'; $this->rights[$r][3] = 0; $this->rights[$r][4] = 'mouvements'; $this->rights[$r][5] = 'lire'; $r++; $this->rights[$r][0] = 50412; $this->rights[$r][1] = 'Write/Edit operations in Ledger'; $this->rights[$r][2] = 'w'; $this->rights[$r][3] = 0; $this->rights[$r][4] = 'mouvements'; $this->rights[$r][5] = 'creer'; $r++; $this->rights[$r][0] = 50420; $this->rights[$r][1] = 'Report and export reports (turnover, balance, journals, ledger)'; $this->rights[$r][2] = 'r'; $this->rights[$r][3] = 0; $this->rights[$r][4] = 'comptarapport'; $this->rights[$r][5] = 'lire'; $r++; $this->rights[$r][0] = 50430; $this->rights[$r][1] = 'Define and close a fiscal year'; $this->rights[$r][2] = 'r'; $this->rights[$r][3] = 0; $this->rights[$r][4] = 'fiscalyear'; $this->rights[$r][5] = ''; $r++; // Menus //------- $this->menu = 1; // This module add menu entries. They are coded into menu manager. // Exports //-------- $r=0; $r++; $this->export_code[$r]=$this->rights_class.'_'.$r; $this->export_label[$r]='Chartofaccounts'; $this->export_icon[$r]='Accounting'; $this->export_permission[$r]=array(array("accounting","chartofaccount")); $this->export_fields_array[$r]=array('ac.rowid'=>'ChartofaccountsId','ac.pcg_version'=>'Chartofaccounts','aa.rowid'=>'Id','aa.account_number'=>"AccountAccounting",'aa.label'=>"Label",'aa.account_parent'=>"Accountparent",'aa.pcg_type'=>"Pcgtype",'aa.pcg_subtype'=>'Pcgsubtype','aa.active'=>'Status'); $this->export_TypeFields_array[$r]=array('ac.rowid'=>'List:accounting_system:pcg_version','aa.account_number'=>"Text",'aa.label'=>"Text",'aa.pcg_type'=>'Text','aa.pcg_subtype'=>'Text','aa.active'=>'Status'); $this->export_entities_array[$r]=array('ac.rowid'=>"Accounting",'ac.pcg_version'=>"Accounting",'aa.rowid'=>'Accounting','aa.account_number'=>"Accounting",'aa.label'=>"Accounting",'aa.accountparent'=>"Accounting",'aa.pcg_type'=>"Accounting",'aa.pcgsubtype'=>"Accounting",'aa_active'=>"Accounting"); $this->export_sql_start[$r]='SELECT DISTINCT '; $this->export_sql_end[$r] =' FROM '.MAIN_DB_PREFIX.'accounting_account as aa, '.MAIN_DB_PREFIX.'accounting_system as ac'; $this->export_sql_end[$r] .=' WHERE ac.pcg_version = aa.fk_pcg_version AND aa.entity IN ('.getEntity('accounting').') '; // Imports //-------- $r=0; // General ledger $r++; $this->import_code[$r]=$this->rights_class.'_'.$r; $this->import_label[$r]='ImportAccountingEntries'; $this->import_icon[$r]=$this->picto; $this->import_entities_array[$r]=array(); // We define here only fields that use another icon that the one defined into import_icon $this->import_tables_array[$r]=array('b'=>MAIN_DB_PREFIX.'accounting_bookkeeping'); // List of tables to insert into (insert done in same order) $this->import_fields_array[$r]=array('b.doc_date'=>"Docdate",'b.code_journal'=>'Codejournal','b.numero_compte'=>'AccountAccountingShort','b.label_operation'=>'LabelOperation','b.debit'=>"Debit",'b.credit'=>"Credit",'b.date_creation'=>"DateCreation"); $this->import_fieldshidden_array[$r]=array('b.fk_user'=>'user->id'); // aliastable.field => ('user->id' or 'lastrowid-'.tableparent) $this->import_convertvalue_array[$r]=array( 't.fk_projet'=>array('rule'=>'fetchidfromref','classfile'=>'/projet/class/project.class.php','class'=>'Project','method'=>'fetch','element'=>'Project'), 't.ref'=>array('rule'=>'getrefifauto') ); //$this->import_convertvalue_array[$r]=array('s.fk_soc'=>array('rule'=>'lastrowid',table='t'); $this->import_regex_array[$r]=array('b.doc_date'=>'^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]$'); //$this->import_examplevalues_array[$r]=array('t.fk_projet'=>'MyProjectRef','t.ref'=>"auto or TK2010-1234",'t.label'=>"My task",'t.progress'=>"0 (not started) to 100 (finished)",'t.datec'=>'1972-10-10','t.note_private'=>"My private note",'t.note_public'=>"My public note"); // Chart of accounts $r++; $this->import_code[$r]=$this->rights_class.'_'.$r; $this->import_label[$r]="Chartofaccounts"; // Translation key $this->import_icon[$r]=$this->picto; $this->import_entities_array[$r]=array(); // We define here only fields that use another icon that the one defined into import_icon $this->import_tables_array[$r]=array('aa'=>MAIN_DB_PREFIX.'accounting_account'); $this->import_tables_creator_array[$r]=array('aa'=>'fk_user_author'); // Fields to store import user id $this->import_fields_array[$r]=array('aa.fk_pcg_version'=>"Chartofaccounts*",'aa.account_number'=>"AccountAccounting*",'aa.label'=>"Label*",'aa.account_parent'=>"Accountparent","aa.fk_accounting_category"=>"AccountingCategory","aa.pcg_type"=>"Pcgtype*",'aa.pcg_subtype'=>'Pcgsubtype*','aa.active'=>'Status*','aa.datec'=>"DateCreation"); $this->import_regex_array[$r]=array('aa.fk_pcg_version'=>'pcg_version@'.MAIN_DB_PREFIX.'accounting_system','aa.account_number'=>'^\d{1,32}$','aa.label'=>'^.{1,255}$','aa.account_parent'=>'^\d{0,32}$','aa.fk_accounting_category'=>'rowid@'.MAIN_DB_PREFIX.'c_accounting_category','aa.pcg_type'=>'^.{1,20}$','aa.pcg_subtype'=>'^.{1,20}$','aa.active'=>'^0|1$','aa.datec'=>'^\d{4}-\d{2}-\d{2}$'); $this->import_convertvalue_array[$r]=array( 'aa.fk_accounting_category'=>array('rule'=>'fetchidfromcodeorlabel','classfile'=>'/accountancy/class/accountancycategory.class.php','class'=>'AccountancyCategory','method'=>'fetch','dict'=>'DictionaryAccountancyCategory'), 'aa.account_parent'=>array('rule'=>'zeroifnull'), ); $this->import_examplevalues_array[$r]=array('aa.fk_pcg_version'=>"PCG99-ABREGE",'aa.account_number'=>"707",'aa.label'=>"Product sales",'aa.account_parent'=>"1407","aa.fk_accounting_category"=>"","aa.pcg_type"=>"PROD",'aa.pcg_subtype'=>'PRODUCT','aa.active'=>'1','aa.datec'=>"2017-04-28"); } }