Compare commits

..

5 Commits
3.0.0 ... 3.0

Author SHA1 Message Date
Laurent Destailleur
b7abe9e08a Removed useless file 2012-02-21 02:03:13 +01:00
Laurent Destailleur
e6e9debaa0 Exclude custom 2011-10-19 23:07:34 +02:00
Laurent Destailleur
45ccb07964 Update ignore file 2011-10-19 22:32:29 +02:00
eldy
47c3b14a11 Prepare migrate to git 2011-09-17 16:11:24 +02:00
Regis Houssin
e918d9115e Fix: Removed regex error 2011-09-09 10:02:08 +02:00
8 changed files with 21 additions and 163 deletions

11
.gitignore vendored Normal file
View File

@@ -0,0 +1,11 @@
htdocs/conf/conf.php
htdocs/conf/conf.php.old
documents/
custom/
custom2/
nbproject
.settings/
.buildpath
default.properties
/.git
/.project

View File

@@ -1,4 +1,4 @@
#Sun Oct 03 22:45:56 CEST 2010
#Wed Feb 08 12:16:54 CET 2012
eclipse.preferences.version=1
encoding//build/exe/doliwamp/Languages=ISO-8859-1
encoding//htdocs/langs/fr_FR/other.lang=UTF-8

View File

@@ -1,3 +1,3 @@
#Wed Dec 01 20:46:32 CET 2010
#Sat Sep 17 16:07:47 CEST 2011
eclipse.preferences.version=1
include_path=
include_path=0;/dolibarrveryold

1
htdocs/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/custom

View File

@@ -55,9 +55,11 @@ if ($_POST["action"] == "builddoc" && $user->rights->facture->lire)
{
require_once(DOL_DOCUMENT_ROOT."/includes/fpdf/fpdfi/fpdi.php");
require_once(DOL_DOCUMENT_ROOT.'/lib/pdf.lib.php');
$factures = dol_dir_list($conf->facture->dir_output,'all',1,implode('\.pdf|',$_POST['toGenerate']).'\.pdf','\.meta$|\.png','date',SORT_DESC) ;
$arrayofexclusion=array();
foreach($_POST['toGenerate'] as $tmppdf) $arrayofexclusion[]=preg_quote($tmppdf.'.pdf','/');
$factures = dol_dir_list($conf->facture->dir_output,'all',1,implode('|',$arrayofexclusion),'\.meta$|\.png','date',SORT_DESC) ;
// liste les fichiers
$files = array() ;
$factures_bak = $factures ;

1
htdocs/conf/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/conf.php

View File

@@ -1,135 +0,0 @@
<?php
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2007 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 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.
*/
/** \defgroup mantis Module mantis
\brief Module to include Mantis into Dolibarr
*/
/**
\file htdocs/includes/modules/modMantis.class.php
\ingroup mantis
\brief Description and activation file for module Mantis
\version $Id$
*/
include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php");
/** \class modMantis
\brief Description and activation class for module Mantis
*/
class modMantis extends DolibarrModules
{
/**
* \brief Constructor. Define names, constants, directories, boxes, permissions
* \param DB Database handler
*/
function modMantis($DB)
{
$this->db = $DB;
// Id for module (must be unique).
// Use here a free id.
$this->numero = 50300;
// Family can be 'crm','financial','hr','projects','product','technic','other'
// It is used to sort modules in module setup page
$this->family = "projects";
// 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));
// Module description used translation string 'ModuleXXXDesc' not found (XXX is id value)
$this->description = "Interfacage avec le bug tracking Mantis";
// Possible values for version are: 'experimental' or 'dolibarr' or version
$this->version = 'development';
// Id used in llx_const table to manage module status (enabled/disabled)
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
// Where to store the module in setup page (0=common,1=interface,2=other)
$this->special = 1;
// Name of png file (without png) used for this module
$this->picto='calendar';
// Data directories to create when module is enabled
$this->dirs = array();
// Config pages
$this->config_page_url = array("mantis.php@mantis");
// Dependencies
$this->depends = array(); // List of modules id that must be enabled
$this->requiredby = array(); // List of modules id to disable if this one is disabled
// Constants
$this->const = array(); // List of parameters
// Boxes
$this->boxes = array(); // List of boxes
// Permissions
$this->rights_class = 'mantis'; // Permission key
$this->rights = array(); // Permission array used by this module
// Menus
//------
$r=0;
$this->menu[$r]=array('fk_menu'=>0,
'type'=>'top',
'titre'=>'BugTracker',
'mainmenu'=>'mantis',
'leftmenu'=>'1',
'url'=>'/mantis/mantis.php',
'langs'=>'other',
'position'=>100,
'enabled'=>'$conf->mantis->enabled',
'perms'=>'',
'target'=>'',
'user'=>0);
$r++;
}
/**
* \brief Function called when module is enabled.
* Add constants, boxes and permissions into Dolibarr database.
* It also creates data directories.
*/
function init()
{
$sql = array();
return $this->_init($sql);
}
/**
* \brief Function called when module is disabled.
* Remove from database constants, boxes and permissions from Dolibarr database.
* Data directories are not deleted.
*/
function remove()
{
$sql = array();
return $this->_remove($sql);
}
}
?>

View File

@@ -1,22 +0,0 @@
-- ===================================================================
-- $Id$
-- $Source$
-- ===================================================================
create table llx_voyage
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
datec datetime,
datev date, -- date de valeur
dateo date, -- date operation
amount real NOT NULL default 0,
label varchar(255),
author varchar(50),
fk_type smallint, -- CB, Virement, cheque
fk_account integer,
num_releve varchar(50),
num_chq int,
rappro tinyint default 0,
note text
);