Qual: Reduce quantity of code. Make code simpler
This commit is contained in:
parent
7697a914d1
commit
754041115f
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2003 Eric Seigne <erics@rycks.com>
|
* Copyright (C) 2003 Eric Seigne <erics@rycks.com>
|
||||||
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -107,7 +107,7 @@ if ($resql)
|
|||||||
|
|
||||||
$name = "actions-".$obj->month."-".$obj->year.".pdf";
|
$name = "actions-".$obj->month."-".$obj->year.".pdf";
|
||||||
$relativepath= $name;
|
$relativepath= $name;
|
||||||
$file = $conf->commercial->dir_actions_temp."/".$name;
|
$file = $conf->agenda->dir_temp."/".$name;
|
||||||
|
|
||||||
if (file_exists($file))
|
if (file_exists($file))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -830,7 +830,7 @@ class BonPrelevement extends CommonObject
|
|||||||
{
|
{
|
||||||
$prev_id = $this->db->last_insert_id(MAIN_DB_PREFIX."prelevement_bons");
|
$prev_id = $this->db->last_insert_id(MAIN_DB_PREFIX."prelevement_bons");
|
||||||
|
|
||||||
$dir=$conf->prelevement->dir_bon;
|
$dir=$conf->prelevement->dir_output.'/receipts';
|
||||||
$file=$filebonprev;
|
$file=$filebonprev;
|
||||||
if (! is_dir($dir)) create_exdir($dir);
|
if (! is_dir($dir)) create_exdir($dir);
|
||||||
|
|
||||||
|
|||||||
@ -58,7 +58,7 @@ if ($_POST["action"] == 'infotrans')
|
|||||||
|
|
||||||
if ($_FILES['userfile']['name'] && basename($_FILES['userfile']['name'],".ps") == $bon->ref)
|
if ($_FILES['userfile']['name'] && basename($_FILES['userfile']['name'],".ps") == $bon->ref)
|
||||||
{
|
{
|
||||||
$dir = $conf->prelevement->dir_bon;
|
$dir = $conf->prelevement->dir_output.'/receipts';
|
||||||
|
|
||||||
if (dol_move_uploaded_file($_FILES['userfile']['tmp_name'], $dir . "/" . $_FILES['userfile']['name'],1) > 0)
|
if (dol_move_uploaded_file($_FILES['userfile']['tmp_name'], $dir . "/" . $_FILES['userfile']['name'],1) > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -61,19 +61,7 @@ class modAdherent extends DolibarrModules
|
|||||||
$this->picto='user';
|
$this->picto='user';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/adherent/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/adherent";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/adherent/temp";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "photos";
|
|
||||||
$this->dirs[$r][1] = "/adherent/photos";
|
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
//-------------
|
//-------------
|
||||||
|
|||||||
@ -23,20 +23,20 @@
|
|||||||
/** \defgroup banque Module banque
|
/** \defgroup banque Module banque
|
||||||
\brief Module pour gérer la tenue d'un compte bancaire et rapprochements
|
\brief Module pour gérer la tenue d'un compte bancaire et rapprochements
|
||||||
\version $Id$
|
\version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/includes/modules/modBanque.class.php
|
\file htdocs/includes/modules/modBanque.class.php
|
||||||
\ingroup banque
|
\ingroup banque
|
||||||
\brief Fichier de description et activation du module Banque
|
\brief Fichier de description et activation du module Banque
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
||||||
|
|
||||||
|
|
||||||
/** \class modBanque
|
/** \class modBanque
|
||||||
\brief Classe de description et activation du module Banque
|
\brief Classe de description et activation du module Banque
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class modBanque extends DolibarrModules
|
class modBanque extends DolibarrModules
|
||||||
{
|
{
|
||||||
@ -65,23 +65,15 @@ class modBanque extends DolibarrModules
|
|||||||
$this->picto='account';
|
$this->picto='account';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/banque/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
// Dependancies
|
||||||
$this->dirs[$r][1] = "/banque";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/banque/temp";
|
|
||||||
|
|
||||||
// Dépendances
|
|
||||||
$this->depends = array();
|
$this->depends = array();
|
||||||
$this->requiredby = array("modComptabilite","modComptabiliteExpert");
|
$this->requiredby = array("modComptabilite","modComptabiliteExpert");
|
||||||
$this->conflictwith = array();
|
$this->conflictwith = array();
|
||||||
$this->langfiles = array("banks","compta","bills","companies");
|
$this->langfiles = array("banks","compta","bills","companies");
|
||||||
|
|
||||||
// Constantes
|
// Constants
|
||||||
$this->const = array();
|
$this->const = array();
|
||||||
|
|
||||||
// Boites
|
// Boites
|
||||||
|
|||||||
@ -59,15 +59,7 @@ class modBarcode extends DolibarrModules
|
|||||||
$this->picto='barcode';
|
$this->picto='barcode';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/barcode/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/barcode";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/barcode/temp";
|
|
||||||
|
|
||||||
// Dependances
|
// Dependances
|
||||||
$this->depends = array("modProduit");
|
$this->depends = array("modProduit");
|
||||||
|
|||||||
@ -18,15 +18,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\defgroup bookmark Module Bookmark
|
* \defgroup bookmark Module Bookmark
|
||||||
\brief Module pour g<EFBFBD>rer les Bookmarks
|
* \brief Module to manage Bookmarks
|
||||||
\version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/includes/modules/modBookmark.class.php
|
* \file htdocs/includes/modules/modBookmark.class.php
|
||||||
\ingroup bookmark
|
* \ingroup bookmark
|
||||||
\brief Fichier de description et activation du module Bookmarks
|
* \brief Fichier de description et activation du module Bookmarks
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
||||||
@ -61,7 +61,7 @@ class modBookmark extends DolibarrModules
|
|||||||
$this->special = 2;
|
$this->special = 2;
|
||||||
$this->picto='bookmark';
|
$this->picto='bookmark';
|
||||||
|
|
||||||
// Dir
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
|
|
||||||
// Dependancies
|
// Dependancies
|
||||||
|
|||||||
@ -58,20 +58,20 @@ class modBoutique extends DolibarrModules
|
|||||||
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
|
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
|
||||||
$this->special = 1;
|
$this->special = 1;
|
||||||
|
|
||||||
// Dir
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
// $this->config_page_url = array("boutique.php","osc-languages.php");
|
// $this->config_page_url = array("boutique.php","osc-languages.php");
|
||||||
$this->config_page_url = array("boutique.php");
|
$this->config_page_url = array("boutique.php");
|
||||||
|
|
||||||
// Dependances
|
// Dependancies
|
||||||
$this->depends = array();
|
$this->depends = array();
|
||||||
$this->requiredby = array();
|
$this->requiredby = array();
|
||||||
$this->conflictwith = array("modOSCommerceWS");
|
$this->conflictwith = array("modOSCommerceWS");
|
||||||
$this->langfiles = array("shop");
|
$this->langfiles = array("shop");
|
||||||
|
|
||||||
// Constantes
|
// Constants
|
||||||
$this->const = array();
|
$this->const = array();
|
||||||
|
|
||||||
// Boites
|
// Boites
|
||||||
|
|||||||
@ -31,9 +31,9 @@ include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\class modCategorie
|
* \class modCategorie
|
||||||
\brief Classe de description et activation du module Categorie
|
* \brief Classe de description et activation du module Categorie
|
||||||
*/
|
*/
|
||||||
class modCashDesk extends DolibarrModules
|
class modCashDesk extends DolibarrModules
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -63,7 +63,7 @@ class modCashDesk extends DolibarrModules
|
|||||||
$this->special = 0;
|
$this->special = 0;
|
||||||
$this->picto = 'generic';
|
$this->picto = 'generic';
|
||||||
|
|
||||||
// Dir
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
|
|
||||||
// Relative path to module style sheet if exists. Example: '/mymodule/mycss.css'.
|
// Relative path to module style sheet if exists. Example: '/mymodule/mycss.css'.
|
||||||
|
|||||||
@ -58,7 +58,7 @@ class modCategorie extends DolibarrModules
|
|||||||
$this->special = 2;
|
$this->special = 2;
|
||||||
$this->picto = 'generic';
|
$this->picto = 'generic';
|
||||||
|
|
||||||
// Dir
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
|
|||||||
@ -60,7 +60,7 @@ class modClickToDial extends DolibarrModules
|
|||||||
$this->special = 1;
|
$this->special = 1;
|
||||||
$this->picto='phoning';
|
$this->picto='phoning';
|
||||||
|
|
||||||
// Dir
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
|
|||||||
@ -64,15 +64,7 @@ class modCommande extends DolibarrModules
|
|||||||
$this->picto='order';
|
$this->picto='order';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/commande/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/commande";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/commande/temp";
|
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
$this->config_page_url = array("commande.php");
|
$this->config_page_url = array("commande.php");
|
||||||
|
|||||||
@ -62,29 +62,13 @@ class modCommercial extends DolibarrModules
|
|||||||
$this->picto='commercial';
|
$this->picto='commercial';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/comm/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/comm";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/comm/temp";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "actions";
|
|
||||||
$this->dirs[$r][1] = "/action";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "actions_temp";
|
|
||||||
$this->dirs[$r][1] = "/action/temp";
|
|
||||||
|
|
||||||
// Dependancies
|
// Dependancies
|
||||||
$this->depends = array("modSociete");
|
$this->depends = array("modSociete");
|
||||||
$this->requiredby = array("modPropale","modContrat","modCommande","modFicheinter");
|
$this->requiredby = array("modPropale","modContrat","modCommande","modFicheinter");
|
||||||
|
|
||||||
// Constantes
|
// Constants
|
||||||
$this->const = array();
|
$this->const = array();
|
||||||
|
|
||||||
// Boxes
|
// Boxes
|
||||||
|
|||||||
@ -77,43 +77,9 @@ class modComptabiliteExpert extends DolibarrModules
|
|||||||
$this->const = array();
|
$this->const = array();
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/comptabiliteexpert/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
// Boxes
|
||||||
$this->dirs[$r][1] = "/comptaexpert";
|
|
||||||
$this->dirs[$r][2] = 1;
|
|
||||||
$this->dirs[$r][3] = "";
|
|
||||||
$this->dirs[$r][4] = "comptaexpert";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/comptaexpert/temp";
|
|
||||||
$this->dirs[$r][2] = 1;
|
|
||||||
$this->dirs[$r][3] = "";
|
|
||||||
$this->dirs[$r][4] = "comptaexpert";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/comptaexpert/rapport";
|
|
||||||
$this->dirs[$r][2] = 1;
|
|
||||||
$this->dirs[$r][3] = "rapport";
|
|
||||||
$this->dirs[$r][4] = "comptaexpert";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/comptaexpert/export";
|
|
||||||
$this->dirs[$r][2] = 1;
|
|
||||||
$this->dirs[$r][3] = "export";
|
|
||||||
$this->dirs[$r][4] = "comptaexpert";
|
|
||||||
|
|
||||||
// Repertoires
|
|
||||||
//$this->dirs = array();
|
|
||||||
//$this->dirs[0] = $conf->comptaexpert->dir_output;
|
|
||||||
//$this->dirs[1] = $conf->comptaexpert->dir_output."/rapport";
|
|
||||||
//$this->dirs[2] = $conf->comptaexpert->dir_output."/export";
|
|
||||||
|
|
||||||
// Boites
|
|
||||||
$this->boxes = array();
|
$this->boxes = array();
|
||||||
|
|
||||||
// Permissions
|
// Permissions
|
||||||
|
|||||||
@ -21,13 +21,13 @@
|
|||||||
\defgroup contrat Module contrat
|
\defgroup contrat Module contrat
|
||||||
\brief Module pour gerer la tenue de contrat de services
|
\brief Module pour gerer la tenue de contrat de services
|
||||||
\version $Id$
|
\version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/includes/modules/modContrat.class.php
|
\file htdocs/includes/modules/modContrat.class.php
|
||||||
\ingroup contrat
|
\ingroup contrat
|
||||||
\brief Fichier de description et activation du module Contrat
|
\brief Fichier de description et activation du module Contrat
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
|||||||
/**
|
/**
|
||||||
\class modContrat
|
\class modContrat
|
||||||
\brief Classe de description et activation du module Contrat
|
\brief Classe de description et activation du module Contrat
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class modContrat extends DolibarrModules
|
class modContrat extends DolibarrModules
|
||||||
{
|
{
|
||||||
@ -62,15 +62,7 @@ class modContrat extends DolibarrModules
|
|||||||
$this->picto='contract';
|
$this->picto='contract';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/contracts/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/contracts";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/contracts/temp";
|
|
||||||
|
|
||||||
// Dependances
|
// Dependances
|
||||||
$this->depends = array("modService");
|
$this->depends = array("modService");
|
||||||
|
|||||||
@ -63,18 +63,18 @@ class modDeplacement extends DolibarrModules
|
|||||||
$this->special = 0;
|
$this->special = 0;
|
||||||
$this->picto = "trip";
|
$this->picto = "trip";
|
||||||
|
|
||||||
// Dir
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
$this->config_page_url = array();
|
$this->config_page_url = array();
|
||||||
$this->langfiles = array("companies","trips");
|
$this->langfiles = array("companies","trips");
|
||||||
|
|
||||||
// Dependances
|
// Dependancies
|
||||||
$this->depends = array();
|
$this->depends = array();
|
||||||
$this->requiredby = array();
|
$this->requiredby = array();
|
||||||
|
|
||||||
// Constantes
|
// Constants
|
||||||
$this->const = array();
|
$this->const = array();
|
||||||
|
|
||||||
// Boxes
|
// Boxes
|
||||||
|
|||||||
@ -61,15 +61,7 @@ class modDocument extends DolibarrModules
|
|||||||
$this->picto='dir';
|
$this->picto='dir';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/ged/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/ged";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/ged/temp";
|
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
//$this->config_page_url = array("document.php");
|
//$this->config_page_url = array("document.php");
|
||||||
|
|||||||
@ -14,13 +14,12 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\defgroup domain Module domain
|
* \defgroup domain Module domain
|
||||||
\brief Module pour g<EFBFBD>rer une base de noms de domaines
|
* \brief Module to manage a list of DNS names
|
||||||
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -66,8 +65,8 @@ class modDomain extends DolibarrModules
|
|||||||
//-------------
|
//-------------
|
||||||
$this->config_page_url = array();
|
$this->config_page_url = array();
|
||||||
|
|
||||||
// D<EFBFBD>pendances
|
// Dependancies
|
||||||
//------------
|
//-------------
|
||||||
$this->depends = array();
|
$this->depends = array();
|
||||||
$this->requiredby = array();
|
$this->requiredby = array();
|
||||||
$this->langfiles = array("domains");
|
$this->langfiles = array("domains");
|
||||||
|
|||||||
@ -25,19 +25,18 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/includes/modules/modDon.class.php
|
* \file htdocs/includes/modules/modDon.class.php
|
||||||
\ingroup don
|
* \ingroup don
|
||||||
\brief Fichier de description et activation du module Don
|
* \brief Fichier de description et activation du module Don
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\class modDon
|
* \class modDon
|
||||||
\brief Classe de description et activation du module Don
|
* \brief Classe de description et activation du module Don
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class modDon extends DolibarrModules
|
class modDon extends DolibarrModules
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -59,24 +58,16 @@ class modDon extends DolibarrModules
|
|||||||
$this->special = 0;
|
$this->special = 0;
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/dons/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
// Dependancies
|
||||||
$this->dirs[$r][1] = "/dons";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/dons/temp";
|
|
||||||
|
|
||||||
// Dependances
|
|
||||||
$this->depends = array();
|
$this->depends = array();
|
||||||
$this->requiredby = array();
|
$this->requiredby = array();
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
$this->config_page_url = array("dons.php");
|
$this->config_page_url = array("dons.php");
|
||||||
|
|
||||||
// Constantes
|
// Constants
|
||||||
$this->const = array();
|
$this->const = array();
|
||||||
$this->const[0][0] = "DON_FORM";
|
$this->const[0][0] = "DON_FORM";
|
||||||
$this->const[0][1] = "chaine";
|
$this->const[0][1] = "chaine";
|
||||||
|
|||||||
@ -60,10 +60,7 @@ class modDroitPret extends DolibarrModules
|
|||||||
// Dir
|
// Dir
|
||||||
global $dolibarr_smarty_compile;
|
global $dolibarr_smarty_compile;
|
||||||
global $dolibarr_smarty_cache;
|
global $dolibarr_smarty_cache;
|
||||||
$this->dirs = array();
|
$this->dirs = array($dolibarr_smarty_compile,$dolibarr_smarty_cache);
|
||||||
|
|
||||||
$this->dirs[0] = $dolibarr_smarty_compile;
|
|
||||||
$this->dirs[1] = $dolibarr_smarty_cache;
|
|
||||||
|
|
||||||
// Dependances
|
// Dependances
|
||||||
$this->depends = array();
|
$this->depends = array();
|
||||||
|
|||||||
@ -66,15 +66,7 @@ class modECM extends DolibarrModules
|
|||||||
$this->picto='dir';
|
$this->picto='dir';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/ecm/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/ecm";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/ecm/temp";
|
|
||||||
|
|
||||||
// Config pages. Put here list of php page names stored in admmin directory used to setup module
|
// Config pages. Put here list of php page names stored in admmin directory used to setup module
|
||||||
$this->config_page_url = array();
|
$this->config_page_url = array();
|
||||||
|
|||||||
@ -59,13 +59,10 @@ class modEditeur extends DolibarrModules
|
|||||||
$this->special = 3;
|
$this->special = 3;
|
||||||
$this->picto='book';
|
$this->picto='book';
|
||||||
|
|
||||||
// Dir
|
// Data directories to create when module is enabled
|
||||||
global $dolibarr_smarty_compile;
|
global $dolibarr_smarty_compile;
|
||||||
global $dolibarr_smarty_cache;
|
global $dolibarr_smarty_cache;
|
||||||
$this->dirs = array();
|
$this->dirs = array($dolibarr_smarty_compile,$dolibarr_smarty_cache);
|
||||||
|
|
||||||
$this->dirs[0] = $dolibarr_smarty_compile;
|
|
||||||
$this->dirs[1] = $dolibarr_smarty_cache;
|
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
$this->config_page_url = array("editeur.php");
|
$this->config_page_url = array("editeur.php");
|
||||||
|
|||||||
@ -15,13 +15,12 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\defgroup energie Module energie
|
\defgroup energie Module energie
|
||||||
\brief Module pour le suivi de la consommation d'energie
|
\brief Module pour le suivi de la consommation d'energie
|
||||||
|
\version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -63,19 +62,7 @@ class modEnergie extends DolibarrModules
|
|||||||
$this->picto='energie';
|
$this->picto='energie';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/energie/temp","/energie/graph");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/energie";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/energie/temp";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "graph";
|
|
||||||
$this->dirs[$r][1] = "/energie/graph";
|
|
||||||
|
|
||||||
// Dependances
|
// Dependances
|
||||||
$this->depends = array();
|
$this->depends = array();
|
||||||
|
|||||||
@ -60,6 +60,7 @@ class modExpedition extends DolibarrModules
|
|||||||
$this->picto = "sending";
|
$this->picto = "sending";
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
|
// TODO Replace with simple directories
|
||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
$r=0;
|
$r=0;
|
||||||
|
|
||||||
|
|||||||
@ -23,9 +23,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/includes/modules/modExport.class.php
|
* \file htdocs/includes/modules/modExport.class.php
|
||||||
\ingroup export
|
* \ingroup export
|
||||||
\brief Fichier de description et activation du module export
|
* \brief Fichier de description et activation du module export
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
||||||
@ -57,15 +57,7 @@ class modExport extends DolibarrModules
|
|||||||
$this->picto='';
|
$this->picto='';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/export/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/export";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/export/temp";
|
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
$this->config_page_url = array();
|
$this->config_page_url = array();
|
||||||
|
|||||||
@ -60,15 +60,7 @@ class modExternalRss extends DolibarrModules
|
|||||||
$this->picto='rss';
|
$this->picto='rss';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/rss/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/rss";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/rss/temp";
|
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
$this->config_page_url = array("external_rss.php");
|
$this->config_page_url = array("external_rss.php");
|
||||||
|
|||||||
@ -65,15 +65,7 @@ class modFacture extends DolibarrModules
|
|||||||
$this->picto='bill';
|
$this->picto='bill';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/facture/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/facture";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/facture/temp";
|
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
$this->depends = array("modSociete");
|
$this->depends = array("modSociete");
|
||||||
|
|||||||
@ -57,19 +57,7 @@ class modFckeditor extends DolibarrModules
|
|||||||
$this->special = 2;
|
$this->special = 2;
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/fckeditor/temp","/fckeditor/images");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/fckeditor";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/fckeditor/temp";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "images";
|
|
||||||
$this->dirs[$r][1] = "/fckeditor/images";
|
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
$this->config_page_url = array("fckeditor.php");
|
$this->config_page_url = array("fckeditor.php");
|
||||||
|
|||||||
@ -66,15 +66,7 @@ class modFicheinter extends DolibarrModules
|
|||||||
$this->picto = "intervention";
|
$this->picto = "intervention";
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/ficheinter/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/ficheinter";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/ficheinter/temp";
|
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
$this->depends = array("modSociete","modCommercial");
|
$this->depends = array("modSociete","modCommercial");
|
||||||
|
|||||||
@ -61,6 +61,7 @@ class modFournisseur extends DolibarrModules
|
|||||||
$this->picto='company';
|
$this->picto='company';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
|
// TODO Replace with simple directories
|
||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
$r=0;
|
$r=0;
|
||||||
|
|
||||||
|
|||||||
@ -57,15 +57,7 @@ class modImport extends DolibarrModules
|
|||||||
$this->picto='';
|
$this->picto='';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/import/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/import";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/import/temp";
|
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
$this->config_page_url = array();
|
$this->config_page_url = array();
|
||||||
|
|||||||
@ -59,15 +59,7 @@ class modLabel extends DolibarrModules
|
|||||||
$this->picto='label';
|
$this->picto='label';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/label/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/label";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/label/temp";
|
|
||||||
|
|
||||||
// Dependancies
|
// Dependancies
|
||||||
$this->depends = array();
|
$this->depends = array();
|
||||||
|
|||||||
@ -16,8 +16,6 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** \defgroup ldap Module ldap
|
/** \defgroup ldap Module ldap
|
||||||
@ -28,6 +26,7 @@
|
|||||||
\file htdocs/includes/modules/modLdap.class.php
|
\file htdocs/includes/modules/modLdap.class.php
|
||||||
\ingroup ldap
|
\ingroup ldap
|
||||||
\brief Fichier de description et activation du module Ldap
|
\brief Fichier de description et activation du module Ldap
|
||||||
|
\version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
||||||
@ -57,24 +56,16 @@ class modLdap extends DolibarrModules
|
|||||||
$this->special = 1;
|
$this->special = 1;
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/ldap/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/ldap";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/ldap/temp";
|
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
$this->config_page_url = array("ldap.php");
|
$this->config_page_url = array("ldap.php");
|
||||||
|
|
||||||
// D<EFBFBD>pendances
|
// Dependancies
|
||||||
$this->depends = array();
|
$this->depends = array();
|
||||||
$this->requiredby = array();
|
$this->requiredby = array();
|
||||||
|
|
||||||
// Constantes
|
// Constants
|
||||||
$this->const = array();
|
$this->const = array();
|
||||||
$r=0;
|
$r=0;
|
||||||
|
|
||||||
|
|||||||
@ -59,15 +59,7 @@ class modMailing extends DolibarrModules
|
|||||||
$this->picto='email';
|
$this->picto='email';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/mailing/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/mailings";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/mailings/temp";
|
|
||||||
|
|
||||||
// Dependances
|
// Dependances
|
||||||
$this->depends = array();
|
$this->depends = array();
|
||||||
|
|||||||
@ -15,8 +15,6 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** \defgroup mantis Module Mantis
|
/** \defgroup mantis Module Mantis
|
||||||
@ -27,6 +25,7 @@
|
|||||||
\file htdocs/includes/modules/modMantis.class.php
|
\file htdocs/includes/modules/modMantis.class.php
|
||||||
\ingroup mantis
|
\ingroup mantis
|
||||||
\brief Description and activation file for module Mantis
|
\brief Description and activation file for module Mantis
|
||||||
|
\version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
||||||
|
|||||||
@ -72,8 +72,6 @@ class modMultiCompany extends DolibarrModules
|
|||||||
|
|
||||||
// Data directories to create when module is enabled.
|
// Data directories to create when module is enabled.
|
||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
//$this->dirs[0] = DOL_DATA_ROOT.'/mymodule;
|
|
||||||
//$this->dirs[1] = DOL_DATA_ROOT.'/mymodule/temp;
|
|
||||||
|
|
||||||
// Relative path to module style sheet if exists. Example: '/mymodule/mycss.css'.
|
// Relative path to module style sheet if exists. Example: '/mymodule/mycss.css'.
|
||||||
$this->style_sheet = '';
|
$this->style_sheet = '';
|
||||||
|
|||||||
@ -58,7 +58,7 @@ class modNotification extends DolibarrModules
|
|||||||
$this->special = 1;
|
$this->special = 1;
|
||||||
$this->picto='email';
|
$this->picto='email';
|
||||||
|
|
||||||
// Dir
|
// Data directories to create when module is enabled.
|
||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
|
|
||||||
// Dependances
|
// Dependances
|
||||||
|
|||||||
@ -59,7 +59,7 @@ class modOSCommerceWS extends DolibarrModules
|
|||||||
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
|
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
|
||||||
$this->special = 1;
|
$this->special = 1;
|
||||||
|
|
||||||
// Dir
|
// Data directories to create when module is enabled.
|
||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
|
|||||||
@ -69,9 +69,7 @@ class modPayBox extends DolibarrModules
|
|||||||
$this->picto=DOL_URL_ROOT.'/paybox/images/paybox.png';
|
$this->picto=DOL_URL_ROOT.'/paybox/images/paybox.png';
|
||||||
|
|
||||||
// Data directories to create when module is enabled.
|
// Data directories to create when module is enabled.
|
||||||
$this->dirs = array();
|
$this->dirs = array('/paybox/temp');
|
||||||
//$this->dirs[0] = DOL_DATA_ROOT.'/mymodule;
|
|
||||||
//$this->dirs[1] = DOL_DATA_ROOT.'/mymodule/temp;
|
|
||||||
|
|
||||||
// Relative path to module style sheet if exists. Example: '/mymodule/mycss.css'.
|
// Relative path to module style sheet if exists. Example: '/mymodule/mycss.css'.
|
||||||
$this->style_sheet = '';
|
$this->style_sheet = '';
|
||||||
|
|||||||
@ -15,8 +15,6 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** \defgroup postnuke Module postnuke
|
/** \defgroup postnuke Module postnuke
|
||||||
@ -27,6 +25,7 @@
|
|||||||
\file htdocs/includes/modules/modPostnuke.class.php
|
\file htdocs/includes/modules/modPostnuke.class.php
|
||||||
\ingroup postnuke
|
\ingroup postnuke
|
||||||
\brief Fichier de description et activation du module Postnuke
|
\brief Fichier de description et activation du module Postnuke
|
||||||
|
\version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
||||||
@ -57,7 +56,7 @@ class modPostnuke extends DolibarrModules
|
|||||||
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
|
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
|
||||||
$this->special = 1;
|
$this->special = 1;
|
||||||
|
|
||||||
// Dir
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
|
|
||||||
// D<>pendances
|
// D<>pendances
|
||||||
|
|||||||
@ -64,21 +64,7 @@ class modPrelevement extends DolibarrModules
|
|||||||
$this->picto='payment';
|
$this->picto='payment';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/prelevement/temp","/prelevement/receipts");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/prelevement";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/prelevement/temp";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "bon";
|
|
||||||
$this->dirs[$r][1] = "/prelevement/bon";
|
|
||||||
|
|
||||||
$this->dirs[0] = $conf->prelevement->dir_output . "/bon";
|
|
||||||
|
|
||||||
// Dependancies
|
// Dependancies
|
||||||
$this->depends = array("modFacture");
|
$this->depends = array("modFacture");
|
||||||
|
|||||||
@ -66,15 +66,7 @@ class modProduit extends DolibarrModules
|
|||||||
$this->picto='product';
|
$this->picto='product';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/produit/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/produit";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/produit/temp";
|
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
$this->depends = array();
|
$this->depends = array();
|
||||||
|
|||||||
@ -60,6 +60,9 @@ class modProjet extends DolibarrModules
|
|||||||
$this->special = 0;
|
$this->special = 0;
|
||||||
$this->picto='project';
|
$this->picto='project';
|
||||||
|
|
||||||
|
// Data directories to create when module is enabled
|
||||||
|
$this->dirs = array();
|
||||||
|
|
||||||
// Dependancies
|
// Dependancies
|
||||||
$this->depends = array();
|
$this->depends = array();
|
||||||
$this->requiredby = array();
|
$this->requiredby = array();
|
||||||
|
|||||||
@ -64,21 +64,13 @@ class modPropale extends DolibarrModules
|
|||||||
$this->picto='propal';
|
$this->picto='propal';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/propale/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
// Dependancies
|
||||||
$this->dirs[$r][1] = "/propale";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/propale/temp";
|
|
||||||
|
|
||||||
// Dependances
|
|
||||||
$this->depends = array("modSociete","modCommercial");
|
$this->depends = array("modSociete","modCommercial");
|
||||||
$this->config_page_url = array("propale.php");
|
$this->config_page_url = array("propale.php");
|
||||||
|
|
||||||
// Constantes
|
// Constants
|
||||||
$this->const = array();
|
$this->const = array();
|
||||||
|
|
||||||
$this->const[0][0] = "PROPALE_ADDON_PDF";
|
$this->const[0][0] = "PROPALE_ADDON_PDF";
|
||||||
|
|||||||
@ -65,24 +65,16 @@ class modService extends DolibarrModules
|
|||||||
$this->picto='service';
|
$this->picto='service';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/produit/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
// Dependancies
|
||||||
$this->dirs[$r][1] = "/produit";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/produit/temp";
|
|
||||||
|
|
||||||
// Dependances
|
|
||||||
$this->depends = array("modProduit");
|
$this->depends = array("modProduit");
|
||||||
$this->requiredby = array("modContrat");
|
$this->requiredby = array("modContrat");
|
||||||
|
|
||||||
// Constantes
|
// Constants
|
||||||
$this->const = array();
|
$this->const = array();
|
||||||
|
|
||||||
// Boites
|
// Boxes
|
||||||
$this->boxes = array();
|
$this->boxes = array();
|
||||||
$this->boxes[0][1] = "box_services_vendus.php";
|
$this->boxes[0][1] = "box_services_vendus.php";
|
||||||
|
|
||||||
|
|||||||
@ -67,6 +67,7 @@ class modSociete extends DolibarrModules
|
|||||||
$this->picto='company';
|
$this->picto='company';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
|
// TODO Replace with simple directories
|
||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
$r=0;
|
$r=0;
|
||||||
|
|
||||||
|
|||||||
@ -63,7 +63,7 @@ class modStock extends DolibarrModules
|
|||||||
$this->special = 0;
|
$this->special = 0;
|
||||||
$this->picto='stock';
|
$this->picto='stock';
|
||||||
|
|
||||||
// Dir
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
|
|
||||||
$this->config_page_url = array("stock.php");
|
$this->config_page_url = array("stock.php");
|
||||||
@ -73,7 +73,7 @@ class modStock extends DolibarrModules
|
|||||||
$this->requiredby = array();
|
$this->requiredby = array();
|
||||||
$this->langfiles = array("stocks");
|
$this->langfiles = array("stocks");
|
||||||
|
|
||||||
// Constantes
|
// Constants
|
||||||
$this->const = array();
|
$this->const = array();
|
||||||
|
|
||||||
// Boxes
|
// Boxes
|
||||||
|
|||||||
@ -58,11 +58,6 @@ class modSyslog extends DolibarrModules
|
|||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array();
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/logs";
|
|
||||||
$this->dirs[$r][2] = 1;
|
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
$this->config_page_url = array("syslog.php");
|
$this->config_page_url = array("syslog.php");
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
/** \defgroup tax Module taxes
|
/** \defgroup tax Module taxes
|
||||||
\brief Module pour inclure des fonctions de saisies des taxes (tva) et charges sociales
|
\brief Module pour inclure des fonctions de saisies des taxes (tva) et charges sociales
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/includes/modules/modTax.class.php
|
* \file htdocs/includes/modules/modTax.class.php
|
||||||
@ -37,7 +37,7 @@ include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
|
|||||||
/**
|
/**
|
||||||
\class modTax
|
\class modTax
|
||||||
\brief Classe de description et activation du module Tax
|
\brief Classe de description et activation du module Tax
|
||||||
*/
|
*/
|
||||||
class modTax extends DolibarrModules
|
class modTax extends DolibarrModules
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -66,15 +66,7 @@ class modTax extends DolibarrModules
|
|||||||
$this->picto='bill';
|
$this->picto='bill';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/taxes/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/taxes";
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/taxes/temp";
|
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
$this->config_page_url = array("taxes.php");
|
$this->config_page_url = array("taxes.php");
|
||||||
|
|||||||
@ -15,8 +15,6 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -28,6 +26,7 @@
|
|||||||
\file htdocs/includes/modules/modTelephonie.class.php
|
\file htdocs/includes/modules/modTelephonie.class.php
|
||||||
\ingroup telephonie
|
\ingroup telephonie
|
||||||
\brief Fichier de description et activation du module de Telephonie
|
\brief Fichier de description et activation du module de Telephonie
|
||||||
|
\version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include_once(DOL_DOCUMENT_ROOT."/includes/modules/DolibarrModules.class.php");
|
include_once(DOL_DOCUMENT_ROOT."/includes/modules/DolibarrModules.class.php");
|
||||||
@ -64,57 +63,23 @@ class modTelephonie extends DolibarrModules
|
|||||||
$this->picto='phoning';
|
$this->picto='phoning';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/telephonie/temp",
|
||||||
$r=0;
|
"/telephonie/graph",
|
||||||
|
"/telephonie/logs",
|
||||||
|
"/telephonie/client",
|
||||||
|
"/telephonie/rapports",
|
||||||
|
"/telephonie/ligne/commande/retour/traite",
|
||||||
|
"/telephonie/cdr/archives",
|
||||||
|
"/telephonie/cdr/atraiter");
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
// Dependancies
|
||||||
$this->dirs[$r][1] = "/telephonie";
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/telephonie/temp";
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "graph";
|
|
||||||
$this->dirs[$r][1] = "/telephonie/graph";
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "logs";
|
|
||||||
$this->dirs[$r][1] = "/telephonie/logs";
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "client";
|
|
||||||
$this->dirs[$r][1] = "/telephonie/client";
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "rapports";
|
|
||||||
$this->dirs[$r][1] = "/telephonie/rapports";
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "ligne";
|
|
||||||
$this->dirs[$r][1] = "/telephonie/ligne";
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "ligne_commande";
|
|
||||||
$this->dirs[$r][1] = "/telephonie/ligne/commande";
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "ligne_commande_retour";
|
|
||||||
$this->dirs[$r][1] = "/telephonie/ligne/commande/retour";
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "ligne_commande_retour_traite";
|
|
||||||
$this->dirs[$r][1] = "/telephonie/ligne/commande/retour/traite";
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "cdr";
|
|
||||||
$this->dirs[$r][1] = "/telephonie/cdr";
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "cdr_archive";
|
|
||||||
$this->dirs[$r][1] = "/telephonie/cdr_archive";
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "cdr_atraiter";
|
|
||||||
$this->dirs[$r][1] = "/telephonie/cdr/atraiter";
|
|
||||||
|
|
||||||
|
|
||||||
// Dependances
|
|
||||||
$this->depends = array();
|
$this->depends = array();
|
||||||
$this->requiredby = array();
|
$this->requiredby = array();
|
||||||
|
|
||||||
// Constantes
|
// Constants
|
||||||
$this->const = array();
|
$this->const = array();
|
||||||
|
|
||||||
// Boites
|
// Boxes
|
||||||
$this->boxes = array();
|
$this->boxes = array();
|
||||||
|
|
||||||
// Permissions
|
// Permissions
|
||||||
|
|||||||
@ -63,30 +63,20 @@ class modUser extends DolibarrModules
|
|||||||
$this->picto='group';
|
$this->picto='group';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array();
|
$this->dirs = array("/users/temp");
|
||||||
$r=0;
|
|
||||||
|
|
||||||
$this->dirs[$r][0] = "output";
|
|
||||||
$this->dirs[$r][1] = "/users";
|
|
||||||
$this->dirs[$r][2] = 1;
|
|
||||||
|
|
||||||
$r++;
|
|
||||||
$this->dirs[$r][0] = "temp";
|
|
||||||
$this->dirs[$r][1] = "/users/temp";
|
|
||||||
$this->dirs[$r][2] = 1;
|
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
// $this->config_page_url = array("/user/admin/index.php");
|
// $this->config_page_url = array("/user/admin/index.php");
|
||||||
|
|
||||||
// Dependances
|
// Dependancies
|
||||||
$this->depends = array();
|
$this->depends = array();
|
||||||
$this->requiredby = array();
|
$this->requiredby = array();
|
||||||
$this->langfiles = array("main","users","companies");
|
$this->langfiles = array("main","users","companies");
|
||||||
|
|
||||||
// Constantes
|
// Constants
|
||||||
$this->const = array();
|
$this->const = array();
|
||||||
|
|
||||||
// Boites
|
// Boxes
|
||||||
$this->boxes = array();
|
$this->boxes = array();
|
||||||
|
|
||||||
// Permissions
|
// Permissions
|
||||||
|
|||||||
@ -225,7 +225,7 @@ if ($modulepart)
|
|||||||
$user->getrights('prelevement');
|
$user->getrights('prelevement');
|
||||||
if ($user->rights->prelevement->bons->lire) $accessallowed=1;
|
if ($user->rights->prelevement->bons->lire) $accessallowed=1;
|
||||||
|
|
||||||
$original_file=$conf->prelevement->dir_bon.'/'.$original_file;
|
$original_file=$conf->prelevement->dir_output.'/receipts/'.$original_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wrapping pour les graph telephonie
|
// Wrapping pour les graph telephonie
|
||||||
@ -236,14 +236,14 @@ if ($modulepart)
|
|||||||
{
|
{
|
||||||
$accessallowed=1;
|
$accessallowed=1;
|
||||||
}
|
}
|
||||||
$original_file=$conf->telephonie->dir_graph.'/'.$original_file;
|
$original_file=$conf->telephonie->dir_temp.'/'.$original_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wrapping pour les graph energie
|
// Wrapping pour les graph energie
|
||||||
elseif ($modulepart == 'energie')
|
elseif ($modulepart == 'energie')
|
||||||
{
|
{
|
||||||
$accessallowed=1;
|
$accessallowed=1;
|
||||||
$original_file=$conf->energie->dir_graph.'/'.$original_file;
|
$original_file=$conf->energie->dir_temp.'/'.$original_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wrapping pour les graph bank
|
// Wrapping pour les graph bank
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user