diff --git a/COPYRIGHT b/COPYRIGHT index 830e89ff116..05d6c08e753 100644 --- a/COPYRIGHT +++ b/COPYRIGHT @@ -16,7 +16,6 @@ ArtiChow 1.07 Public Domain Yes Graphics CKEditor 3.6.1 GPL or LGPL 2.1 or MPL 1.1 Yes Editor WYSIWYG EFC/XFSS 1.0.1 LGPL 3.0 Yes Enhanced File Crypt/Extended File Stealth System FCKEditor 2.6.6 LGPL 2.1 or Mozilla PL 1.0 Yes Editor WYSIWYG -Flot 0.7 MIT Licence Yes JS library to build graph FPDF 1.6 Public domain Yes PDF generation (original code is modified) FPDF_TPL 1.1.5 Apache Software License 2.0 No GPL3 only PDF templates management FPDI 1.3.4 Apache Software License 2.0 No GPL3 only PDF templates management @@ -24,6 +23,7 @@ FPDI_Protection 1.0.3 Apache Software License 2.0 No GPL3 only PDF encr GeoIP x.x Yes GeoIP Maxmind conversion jQuery 1.6.1 GPL and MIT Licence Yes JS library jQuery UI 1.8.14 GPL and MIT Licence Yes JS library plugin UI +jQuery Flot 0.7 MIT Licence Yes JS library to build graph jQuery JCrop 0.9.8 MIT Licence Yes JS library plugin Crop (to crop images) jQuery Layout 1.3.0 GPL and MIT Licence Yes JS library plugin Layout (RC-29.15) jQuery TableDnD 0.5 GPL and MIT Licence Yes JS library plugin TableDnD (to reorder table rows) diff --git a/ChangeLog b/ChangeLog index 2808c594086..1eeba354fd0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,6 @@ -------------------------------------------------------------- English Dolibarr ChangeLog -$Id: ChangeLog,v 1.424 2011/07/13 14:16:39 eldy Exp $ +$Id: ChangeLog,v 1.425 2011/07/29 10:55:22 simnandez Exp $ -------------------------------------------------------------- ***** ChangeLog for 3.1 compared to 3.0 ***** @@ -74,6 +74,7 @@ For users: - New: Look: Minor enhancements into agenda view. - New: Look: Nicer tooltips with transparency and shadow. - New: task #11004: Create invoice from intervention. +- New: task #10501: Can use point of sale with different bank accounts. - Fix: Better Postgresql compatibility. - Fix: Numbering module for invoices use same number for invoice and credit note if mask is same. diff --git a/build/.cvsignore b/build/.cvsignore index d97289222c3..53dd6ee2abd 100644 --- a/build/.cvsignore +++ b/build/.cvsignore @@ -13,3 +13,7 @@ module_pibarcode-1.0.tgz version-phpsane.txt makepack-phpsane.conf html +*.deb +*.dsc +*.tar.gz +*.changes diff --git a/build/aps/configure.php b/build/aps/configure.php index 62ca849d62a..996d617bd07 100755 --- a/build/aps/configure.php +++ b/build/aps/configure.php @@ -1,11 +1,12 @@ +#!/usr/bin/php +# Config files + + AllowOverride All + Order deny,allow + Allow from all + + # Directory for data files AllowOverride All diff --git a/build/deb/changelog b/build/deb/changelog index d4a628fbb4f..b035f18ae1d 100644 --- a/build/deb/changelog +++ b/build/deb/changelog @@ -1,9 +1,9 @@ -dolibarr (3.1.0-1) unstable; urgency=low +dolibarr (3.1.0-1.1) unstable; urgency=low - [ Laurent Destailleur ] + * Non-maintainer upload * New upstream release. closes: bug#634783 - -- Laurent Destailleur Mon, 18 Jul 2011 12:00:00 +0100 + -- Laurent Destailleur Mon, 30 Jul 2011 12:00:00 +0100 -# More information into /usr/share/dolibarr/ChangeLog file. \ No newline at end of file +# For a changelog file dedicated to users, see /usr/share/doc/dolibarr/UserChangeLog.gz file. \ No newline at end of file diff --git a/build/deb/compat b/build/deb/compat new file mode 100644 index 00000000000..c7930257dfe --- /dev/null +++ b/build/deb/compat @@ -0,0 +1 @@ +7 \ No newline at end of file diff --git a/build/deb/conf.php.install b/build/deb/conf.php.install new file mode 100755 index 00000000000..c6d2d5d384b --- /dev/null +++ b/build/deb/conf.php.install @@ -0,0 +1,232 @@ + diff --git a/build/deb/control b/build/deb/control.DEBIAN old mode 100644 new mode 100755 similarity index 54% rename from build/deb/control rename to build/deb/control.DEBIAN index 0a664bb7034..7c66775bdf1 --- a/build/deb/control +++ b/build/deb/control.DEBIAN @@ -2,14 +2,12 @@ Package: dolibarr Version: __VERSION__ Architecture: all Maintainer: Laurent Destailleur -Essential: no Installed-Size: 61200 -Depends: apache2, libapache2-mod-php5, php5, php5-cli, php5-cgi, php5-curl, php5-gd, php5-ldap, php5-mysql, mysql-server, perl +Depends: xdg-utils, apache2, libapache2-mod-php5, php5, php5-cli, php5-cgi, php5-curl, php5-gd, php5-ldap, php5-mysql, php-pear, php-mail-mime, mysql-server, perl Section: web Priority: optional -Recommends: firefox Homepage: http://www.dolibarr.org -Description: Easy to use ERP & CRM software to manage your activity. +Description: Easy to use web based ERP & CRM software Dolibarr ERP & CRM is an easy to use open source/free software for small and medium companies, foundations or freelances. It includes different features for Enterprise Resource Planning (ERP) and Customer Relationship @@ -21,29 +19,28 @@ Description: Easy to use ERP & CRM software to manage your activity. Only features you need are visible, depending on which module were activated. Most common used modules are: . - Customers, Suppliers or Prospects directory - Contacts directory - Orders management - Commercial proposals management - Invoices management - Products and services catalog - Stock management - Foundations members management - Bank accounts management - Point of Sale - Payments management - Commercial actions management - Contracts management - Standing orders management - Shipping management - Donations management - Bookmarks management - Mass Emailings - Reports - Data export and import tools - LDAP connectivity - PDF exports + Customers, Suppliers or Prospects directory, + Contacts directory, + Orders management, + Commercial proposals management, + Invoices management, + Products and services catalog, + Stock management, + Foundations members management, + Bank accounts management, + Point of Sale, + Payments management, + Commercial actions management, + Contracts management, + Standing orders management, + Shipping management, + Donations management, + Bookmarks management, + Mass Emailings, + Reports, + Wizards to export and import data, + LDAP connectivity, + PDF exports, And a lot of more modules... . You can also add third parties external modules or develop yours. - \ No newline at end of file diff --git a/build/deb/control.debian b/build/deb/control.debian new file mode 100755 index 00000000000..91f0705c001 --- /dev/null +++ b/build/deb/control.debian @@ -0,0 +1,51 @@ +Source: dolibarr +Maintainer: Laurent Destailleur +Standards-Version: 3.9.1 +Section: web +Priority: optional +Homepage: http://www.dolibarr.org +Build-Depends: debhelper, po-debconf + +Package: dolibarr +Depends: ${misc:Depends}, xdg-utils, apache2, libapache2-mod-php5, php5, php5-cli, php5-cgi, php5-curl, php5-gd, php5-ldap, php5-mysql, php-pear, php-mail-mime, mysql-server, perl +Architecture: all +Section: web +Priority: optional +Homepage: http://www.dolibarr.org +Description: Easy to use web based ERP & CRM software + Dolibarr ERP & CRM is an easy to use open source/free software for small + and medium companies, foundations or freelances. It includes different + features for Enterprise Resource Planning (ERP) and Customer Relationship + Management (CRM) but also for different other activities. + It's a web software you can install as a standalone program or on any web + hosting provider to use it from anywhere with any web browser. + Dolibarr was designed to provide only features you need and be easy to use. + . + Only features you need are visible, depending on which module were activated. + Most common used modules are: + . + Customers, Suppliers or Prospects directory, + Contacts directory, + Orders management, + Commercial proposals management, + Invoices management, + Products and services catalog, + Stock management, + Foundations members management, + Bank accounts management, + Point of Sale, + Payments management, + Commercial actions management, + Contracts management, + Standing orders management, + Shipping management, + Donations management, + Bookmarks management, + Mass Emailings, + Reports, + Wizards to export and import data, + LDAP connectivity, + PDF exports, + And a lot of more modules... + . + You can also add third parties external modules or develop yours. \ No newline at end of file diff --git a/build/deb/copyright b/build/deb/copyright index 9d62fbbd285..c69ae11a4a6 100644 --- a/build/deb/copyright +++ b/build/deb/copyright @@ -7,13 +7,23 @@ Files: * Copyright: 2002-2009, Rodolphe Quiedeville 2003-2011, Laurent Destailleur 2004-2011, Regis Houssin - 2003, Jean-Louis Bergamo + 2006-2011, Auguria SARL + 2010-2011, Juanjo Menent + 2003-2006, Jean-Louis Bergamo + 2003, Xavier Dutoit 2004, Sebastien Di Cintio 2004, Benoit Mortier 2004, Christophe Combelles + 2004, Eric Seigne + 2005, Patrick Rouillon + 2005, Marc Barilley / Ocebo + 2006, Andre Cianfarani + 2006, Jean Heimburger + 2007, Patrick Raguin + 2007-2008, Jeremie Ollivier 2008, Raphael Bertrand (Resultic) - 2010-2011, Juanjo Menent -License: GPL-2+ + 2010, Servitux Servicios Informaticos + License: GPL-2+ 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 @@ -33,4 +43,36 @@ License: GPL-2+ . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file - `/usr/share/common-licenses/GPL-2'. \ No newline at end of file + `/usr/share/common-licenses/GPL-2'. + + +Files: htdocs/includes/artichow/* +License: Public Domain + +Files: htdocs/includes/ckeditor/* +License: GPL-2+ + +Files: htdocs/includes/efc_xfss/* +License: GPL-2+ + +Files: htdocs/includes/fckeditor/* +License: GPL-2+ + +Files: htdocs/includes/magpierss/* +License: GPL-2+ + +Files: htdocs/includes/jquery/* +License: GPL-2+ or MIT + +Files: htdocs/includes/jsgantt/* +License: GPL-2+ + +Files: htdocs/includes/phpwrite_excel/* +License: LGPL 2.1 + +Files: htdocs/includes/odtphp/* +License: GPL-2+ + +Files: htdocs/includes/tcpdf/* +License: LGPL 3.0 + \ No newline at end of file diff --git a/build/deb/docs b/build/deb/docs deleted file mode 100644 index 30d29dea9be..00000000000 --- a/build/deb/docs +++ /dev/null @@ -1 +0,0 @@ -doc/* diff --git a/build/deb/dolibarr.desktop b/build/deb/dolibarr.desktop index 5d11eb40ffb..a48e5048dff 100644 --- a/build/deb/dolibarr.desktop +++ b/build/deb/dolibarr.desktop @@ -2,7 +2,6 @@ # This file is used to add Ubuntu menu entry # It must be saved into directory /usr/share/applications Version=1.0 -Encoding=UTF-8 Name=Dolibarr ERP & CRM Name[fr]=Dolibarr ERP & CRM GenericName=Dolibarr ERP & CRM @@ -10,9 +9,9 @@ Comment=The easy to use manager (ERP & CRM) for small and medium enterprises or Comment[fr]=L'ERP & CRM simple pour la gestion des PME et associations # Command to open an URL # For Fedora: xdg-open -# For Debian/Ubuntu: x-www-browser +# For Debian/Ubuntu: xdg-open or x-www-browser # (exo-open for xfde, gnome-open for gnome, ...) -Exec=x-www-browser http://localhost/dolibarr +Exec=xdg-open http://localhost/dolibarr Icon=dolibarr Terminal=false Type=Application diff --git a/build/deb/examples b/build/deb/examples deleted file mode 100755 index aa4824411d6..00000000000 --- a/build/deb/examples +++ /dev/null @@ -1 +0,0 @@ -usr/share/dolibarr/htdocs/conf/conf.php.example \ No newline at end of file diff --git a/build/deb/files b/build/deb/files deleted file mode 100644 index a75e2371260..00000000000 --- a/build/deb/files +++ /dev/null @@ -1,2 +0,0 @@ -etc -usr diff --git a/build/deb/format b/build/deb/format new file mode 100644 index 00000000000..9f8e9b69a33 --- /dev/null +++ b/build/deb/format @@ -0,0 +1 @@ +1.0 \ No newline at end of file diff --git a/build/deb/install b/build/deb/install new file mode 100755 index 00000000000..4d41fd52c65 --- /dev/null +++ b/build/deb/install @@ -0,0 +1,5 @@ +etc/dolibarr/apache.conf +usr/share/applications/dolibarr.desktop +usr/share/doc/dolibarr +usr/share/dolibarr +usr/share/pixmaps diff --git a/build/deb/install.forced.php.install b/build/deb/install.forced.php.install index 1166abe41ae..7de8616ac15 100755 --- a/build/deb/install.forced.php.install +++ b/build/deb/install.forced.php.install @@ -4,19 +4,19 @@ // This file must be present into htdocs/install directory // during install process to be used. // -// $Id: install.forced.php.install,v 1.7 2011/07/09 15:48:19 eldy Exp $ +// $Id: install.forced.php.install,v 1.9 2011/07/30 14:56:12 eldy Exp $ // -$force_install_noedit=1; +$force_install_noedit=2; $force_install_message='KeepDefaultValuesDeb'; -$force_install_main_data_root='/usr/share/dolibarr/documents'; -#$force_install_main_data_root='/var/lib/dolibarr'; +#$force_install_main_data_root='/usr/share/dolibarr/documents'; +$force_install_main_data_root='/var/lib/dolibarr/documents'; $force_install_type='mysqli'; $force_install_dbserver='localhost'; $force_install_port='3306'; -$force_install_database='dolibarr'; +$force_install_database='dolibarrdebian'; $force_install_createdatabase='1'; -$force_install_databaselogin='dolibarrmysql'; +$force_install_databaselogin='dolibarrdebian'; $force_install_databasepass=''; $force_install_createuser='1'; $force_install_databaserootlogin='__SUPERUSERLOGIN__'; diff --git a/build/deb/menu b/build/deb/menu deleted file mode 100644 index 6dc724d0a02..00000000000 --- a/build/deb/menu +++ /dev/null @@ -1,3 +0,0 @@ -# This file seems to be useless for Ubuntu -# Good way to add menu on Ubuntu is adding file dolibarr.desktop -text Apps/Misc dolibarr none "Dolibarr ERP/CRM" rundolibarr.sh \ No newline at end of file diff --git a/build/deb/po/POTFILES.in b/build/deb/po/POTFILES.in new file mode 100755 index 00000000000..98e8416d9a3 --- /dev/null +++ b/build/deb/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates \ No newline at end of file diff --git a/build/deb/po/fr.po b/build/deb/po/fr.po new file mode 100755 index 00000000000..13b8030ed0d --- /dev/null +++ b/build/deb/po/fr.po @@ -0,0 +1,48 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2011-07-27 19:49+0200\n" +"PO-Revision-Date: 2011-07-29 22:45+0100\n" +"Last-Translator: Laurent Destailleur \n" +"Language-Team: Laurent Destailleur \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Project-Id: dolibarr\n" + +# +#. Type: boolean +#. Description +#: ../templates:1001 +#, fuzzy +msgid "Delete database and uploaded files ?" +msgstr "Effacer la base de donnée et les fichiers uploadés ?" + +# +#. Type: boolean +#. Description +#: ../templates:1001 +#, fuzzy +msgid "" +"Answer if you want to removed the Dolibarr MySQL database and all other " +"datas (datas related to this question are the Dolibarr DBMS account, all " +"Dolibarr tables, and all uploaded files)." +msgstr "" +"Indiquez si vous voulez supprimer la base Dolibarr et toutes ces données " +"(les données en question ici sont les comptes de la base, les tables et tous " +"les fichiers téléchargés)." diff --git a/build/deb/po/templates.pot b/build/deb/po/templates.pot new file mode 100755 index 00000000000..32c92a97cc4 --- /dev/null +++ b/build/deb/po/templates.pot @@ -0,0 +1,33 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2011-07-27 19:52+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Delete database and uploaded files ?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Answer if you want to removed the Dolibarr MySQL database and all other " +"datas (datas related to this question are the Dolibarr DBMS account, all " +"Dolibarr tables, and all uploaded files)." +msgstr "" diff --git a/build/deb/postinst b/build/deb/postinst index 03bd18987cd..ca5fd1645dd 100644 --- a/build/deb/postinst +++ b/build/deb/postinst @@ -23,18 +23,32 @@ db_version 2.0 echo Run the dolibarr postinst script + +# Define vars +docdir='/var/lib/dolibarr/documents' +#docdir='/usr/share/dolibarr/documents' +apachefileorig="/usr/share/dolibarr/build/deb/apache.conf" +apacheconfig="/etc/dolibarr/apache.conf" +installfileorig="/usr/share/dolibarr/build/deb/install.forced.php.install" +installconfig="/etc/dolibarr/install.forced.php" +#config="/usr/share/dolibarr/htdocs/conf/conf.php" +config="/etc/dolibarr/conf.php" + + case "$1" in configure) - # Copy apache.conf file into target directory - fileorig="/usr/share/dolibarr/build/deb/apache.conf" - config="/etc/dolibarr/apache.conf" - mkdir -p /etc/dolibarr - cp -p $fileorig $config + # Create document directory for uploaded data files + mkdir -p $docdir + chown -R www-data:www-data $docdir + chmod -R 775 $docdir + chmod -R g+s $docdir - # Create install.forced.php into Dolibarr install directory - fileorig="/usr/share/dolibarr/build/deb/install.forced.php.install" - config="/usr/share/dolibarr/htdocs/install/install.forced.php" + # Copy apache.conf file into target directory + #mkdir -p /etc/dolibarr + #cp -p $apachefileorig $apacheconfig + + # Copy install config file (with matching Debian) values into target directory superuserlogin='' superuserpassword='' if [ -f /etc/mysql/debian.cnf ] ; then @@ -44,31 +58,24 @@ case "$1" in fi echo Mysql superuser found to use is $superuserlogin if [ -z "$superuserlogin" ] ; then - cat $fileorig | sed -e 's/__SUPERUSERLOGIN__/root/g' | sed -e 's/__SUPERUSERPASSWORD__//g' > $config + cat $installfileorig | sed -e 's/__SUPERUSERLOGIN__/root/g' | sed -e 's/__SUPERUSERPASSWORD__//g' > $installconfig else - cat $fileorig | sed -e 's/__SUPERUSERLOGIN__/'$superuserlogin'/g' | sed -e 's/__SUPERUSERPASSWORD__/'$superuserpassword'/g' > $config + cat $installfileorig | sed -e 's/__SUPERUSERLOGIN__/'$superuserlogin'/g' | sed -e 's/__SUPERUSERPASSWORD__/'$superuserpassword'/g' > $installconfig fi - - # Create document directory - #docdir='/var/lib/dolibarr/documents' - docdir='/usr/share/dolibarr/documents' - mkdir -p $docdir - chown -R www-data:www-data $docdir - chmod -R 775 $docdir - chmod -R g+s $docdir + chown -R root:www-data $installconfig + chmod -R 660 $installconfig # Create an empty conf.php with permission to web server - if [ ! -f /usr/share/dolibarr/htdocs/conf/conf.php ] + if [ ! -f $config ] then - echo Create empty file /usr/share/dolibarr/htdocs/conf/conf.php - touch /usr/share/dolibarr/htdocs/conf/conf.php - chown -R root:www-data /usr/share/dolibarr/htdocs/conf/conf.php - chmod -R 660 /usr/share/dolibarr/htdocs/conf/conf.php + echo Create empty file $config + touch $config + chown -R root:www-data $config + chmod -R 660 $config fi - #db_reset "dolibarr/webserver" - # Get the web server type (use db_get for interactive mode). + #db_reset "dolibarr/webserver" #db_get "dolibarr/webserver" # Read value for webserver. #webserver="$RET" @@ -96,12 +103,9 @@ case "$1" in echo Web user.group used is $webuser.$webgroup - # - # That may lead to problems if apache & apache-ssl do - # not have the same user/group. - # + # Set permissions to web server chown -R $webuser:$webgroup /usr/share/dolibarr - chown -R root:$webgroup /usr/share/dolibarr/htdocs/conf/conf.php + chown -R root:$webgroup $config # Add link to config file echo Setup web server $server to add dolibarr config file @@ -109,26 +113,6 @@ case "$1" in done - #echo "Install menu entry" - # This one is for Gnome ubuntu - #fileorig="/usr/share/dolibarr/build/deb/dolibarr.desktop" - #target="/usr/share/applications/" - #cp -f $fileorig $target - # Not sure this is usefull - #if test -x /usr/bin/update-menus; then - # echo "update-menus" - # update-menus; - #fi - - # TODO Create the file to force parameters in Web installer - #if grep DBHOST /usr/share/dolibarr/htdocs/conf/conf.php > /dev/null - #then - # perl -pi -e "s/DBHOST/$dbserver/" /usr/share/dolibarr/htdocs/conf/conf.php - # perl -pi -e "s/DBNAME/$dbname/" /usr/share/dolibarr/htdocs/conf/conf.php - # perl -pi -e "s/DBUSER/$dbuser/" /usr/share/dolibarr/htdocs/conf/conf.php - # perl -pi -e "s/DBPASS/$dbpass/" /usr/share/dolibarr/htdocs/conf/conf.php - #fi - # Restart servers servers="apache2-ssl apache2 mysql" # Another way to restart diff --git a/build/deb/postrm b/build/deb/postrm index 0ade4671858..9eae81b022b 100644 --- a/build/deb/postrm +++ b/build/deb/postrm @@ -23,13 +23,17 @@ db_version 2.0 echo Run the dolibarr postrm script -#echo "postrm db_get dolibarr/webserver" -# We disable set -e to avoid premature end of script if error -set +e -#db_get "dolibarr/webserver" || true -set -e -export webserver="$RET" +docdir='/var/lib/dolibarr/documents' +#docdir='/usr/share/dolibarr/documents' +apachefileorig="/usr/share/dolibarr/build/deb/apache.conf" +apacheconfig="/etc/dolibarr/apache.conf" +#config="/usr/share/dolibarr/htdocs/conf/conf.php" +config="/etc/dolibarr/conf.php" +lockfile="/usr/share/dolibarr/install.lock" + + +export webserver="" # Allows us to loop and substitute in one pass case $webserver in Apache) webservers="apache2" ;; @@ -37,12 +41,38 @@ case $webserver in Both) webservers="apache2 apache2-ssl" ;; *) webservers="apache2 apache2-ssl" ;; esac -export includefile=/etc/dolibarr/apache.conf + case "$1" in + + # Call when we upgrade + upgrade) + ;; + + # Call when we uninstall + remove) + rm -f $lockfile + + # Remove include files + export restart="" + for server in $webservers ; do + export conffile="/etc/$server/conf.d/dolibarr.conf" + if [ -f $conffile ] ; + then + echo Delete link $conffile + rm -f $conffile + status=purge + fi + + if [ "x$status" = "xpurge" ] ; + then restart="$restart $server" + fi + done + ;; + # Call when we uninstall and purge purge) - echo "postrm purge webservers=$webservers includefile=$includefile" + echo "postrm purge webservers=$webservers apacheconfig=$apacheconfig" # Ask if we must delete database echo "postrm db_input dolibarr/postrm" @@ -59,7 +89,8 @@ case "$1" in echo postrm Mysql database deletion # Get database configuration dbserver="localhost" - dbname="dolibarrmysql" + dbuser="dolibarrdebian" + dbname="dolibarrdebian" #db_get "dolibarr/db/name" #dbname="$RET" superuserlogin='' @@ -120,40 +151,52 @@ case "$1" in fi mysqlcmd="mysql $hostopt $passopt -u $dbadmin" - # Now run the drop commands - if eval $mysqlcmd -f -e "\"show databases;\"" | grep -e "^$dbname" > /dev/null 2>&1 ; then - log="${log}Droping database $dbname." - if eval $mysqlcmd -f -e "\"DROP DATABASE $dbname;\"" ; then - if eval $mysqlcmd -f -e "\"show databases;\"" | grep -e "^$dbname" > /dev/null 2>&1 ; then - error="Database $dbname NOT successfully droped. You have to do it manually." - echo $error - else - status=drop - fi + # Now run the drop user + if eval $mysqlcmd -f -e "\"DROP USER '$dbuser'@'localhost';\"" ; then + echo Database login $dbuser removed else - error="Unable to run the drop database script." + error="Unable to run $mysqlcmd -f -e \"DROP USER '$dbuser'@'localhost';\"" echo $error fi + + # Now run the drop commands + if eval $mysqlcmd -f -e "\"show databases;\"" | grep -e "^$dbname" > /dev/null 2>&1 ; then + log="${log}Droping database $dbname." + if eval $mysqlcmd -f -e "\"DROP DATABASE $dbname;\"" ; then + if eval $mysqlcmd -f -e "\"show databases;\"" | grep -e "^$dbname" > /dev/null 2>&1 ; then + error="Database $dbname NOT successfully droped. You have to do it manually." + echo $error + else + status=drop + fi + else + error="Unable to run the drop database script." + echo $error + fi else - status=nothing - log="${log}Database $dbname already not exists." + status=nothing + log="${log}Database $dbname already not exists." fi + echo "Remove directory $docdir" + rm -rf $docdir ; + else - echo "postrm Delete of dolibarr database not wanted" + echo "postrm Delete of dolibarr database and uploaded files not wanted" fi # Remove include files + export restart="" for server in $webservers ; do - # New usage export conffile="/etc/$server/conf.d/dolibarr.conf" if [ -f $conffile ] ; then + echo Delete file $conffile rm -f $conffile status=purge fi - if [ "$status" = "purge" ] ; + if [ "x$status" = "xpurge" ] ; then restart="$restart $server" fi done @@ -161,7 +204,7 @@ case "$1" in rm -rf /etc/dolibarr # Restart servers - for server in $servers ; do + for server in $restart ; do # We disable blocking errors set +e echo "Restart server $server if exists" @@ -174,47 +217,12 @@ case "$1" in set -e done - # Remove file and conf file - for dir in /usr/share/dolibarr ; do - if [ -d $dir ] ; then - # We disable blocking errors - set +e - echo "Remove directory $dir" - rm -rf $dir ; - # We restore blocking errors - set -e - fi - done - # We clean variable (we ignore errors because db_reset can fails if var was never set) set +e db_reset "dolibarr/postrm" set -e - - db_purge - ;; - # Call when we uninstall - remove) - echo "postrm Force remove of /usr/share/dolibarr/htdocs/install" - rm -fr /usr/share/dolibarr/htdocs/install - - echo "postrm Force remove of /usr/share/dolibarr/htdocs/conf" - rm -fr /usr/share/dolibarr/htdocs/conf - - #echo "postrm Remove menu entry and image" - #fileorig="/usr/share/applications/dolibarr.desktop" - #rm -f $fileorig - #fileorig="/usr/share/pixmaps/dolibarr.xpm" - #rm -f $fileorig - # Not sure this is usefull - #if test -x /usr/bin/update-menus; then - # echo "update-menus" - # update-menus; - #fi - ;; - - upgrade) + #db_purge ;; failed-upgrade|abort-install|abort-upgrade|disappear) @@ -226,8 +234,8 @@ case "$1" in ;; esac -db_stop - #DEBHELPER# +db_stop + exit 0 diff --git a/build/deb/rules b/build/deb/rules index df233257ac4..9a3f9a98c7a 100644 --- a/build/deb/rules +++ b/build/deb/rules @@ -1,4 +1,10 @@ -# -# Sample debian/rules -# -# This script is not used, so is empty. +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 +export DH_OPTIONS=-v + +#export DH_COMPAT=7 # This is the debhelper compatability version to use, now defined into compat file + +%: + dh $@ \ No newline at end of file diff --git a/build/deb/templates b/build/deb/templates index f7cceb2dbe5..5c06afd8ccd 100644 --- a/build/deb/templates +++ b/build/deb/templates @@ -1,7 +1,7 @@ Template: dolibarr/postrm Type: boolean Default: true -Description: Delete database ? - Delete the Dolibarr MySQL database and all its datas (datas related - to this quetion are the Dolibarr DBMS account and all - Dolibarr tables) ? +_Description: Delete database and uploaded files ? + Answer if you want to removed the Dolibarr MySQL database and all other + datas (datas related to this question are the Dolibarr DBMS account, all + Dolibarr tables, and all uploaded files). diff --git a/build/exe/doliwamp/doliwamp.iss b/build/exe/doliwamp/doliwamp.iss index c731758148d..af2dd4b1172 100644 --- a/build/exe/doliwamp/doliwamp.iss +++ b/build/exe/doliwamp/doliwamp.iss @@ -10,7 +10,7 @@ ; only the root user with no password, stop server and catch ; files user.MY* to put them in the Dolibarr build/exe/doliwamp/mysql directory. ; -; Version: $Id: doliwamp.iss,v 1.82 2011/07/13 21:09:30 eldy Exp $ +; Version: $Id: doliwamp.iss,v 1.83 2011/07/28 10:29:49 eldy Exp $ ;---------------------------------------------------------------------------------------- @@ -112,7 +112,7 @@ Source: "htdocs\*.*"; DestDir: "{app}\www\dolibarr\htdocs"; Flags: ignoreversion Source: "dev\*.*"; DestDir: "{app}\www\dolibarr\dev"; Flags: ignoreversion recursesubdirs; Excludes: ".cvsignore,.project,CVS\*,Thumbs.db,fpdf\*,initdemo\*,iso-normes\*,samples\*,test\*,uml\*,xdebug\*" Source: "doc\*.*"; DestDir: "{app}\www\dolibarr\doc"; Flags: ignoreversion recursesubdirs; Excludes: ".cvsignore,.project,CVS\*,Thumbs.db,wiki\*,plaquette\*,dev\*" Source: "scripts\*.*"; DestDir: "{app}\www\dolibarr\scripts"; Flags: ignoreversion recursesubdirs; Excludes: ".cvsignore,.project,CVS\*,Thumbs.db,product\materiel.net.php,product\import-product.php" -Source: "*.*"; DestDir: "{app}\www\dolibarr"; Flags: ignoreversion; Excludes: ".cvsignore,.project,CVS\*,Thumbs.db" +Source: "*.*"; DestDir: "{app}\www\dolibarr"; Flags: ignoreversion; Excludes: ".cvsignore,.project,CVS\*,Thumbs.db,default.properties,install.lock" ; Config files Source: "build\exe\doliwamp\phpmyadmin.conf.install"; DestDir: "{app}\alias"; Flags: ignoreversion; Source: "build\exe\doliwamp\dolibarr.conf.install"; DestDir: "{app}\alias"; Flags: ignoreversion; diff --git a/build/exe/doliwamp/install.forced.php.install b/build/exe/doliwamp/install.forced.php.install index 0a7a9aa7d0a..6df14d6f6b2 100644 --- a/build/exe/doliwamp/install.forced.php.install +++ b/build/exe/doliwamp/install.forced.php.install @@ -4,9 +4,9 @@ // This file must be present into htdocs/install directory // during install process to be used. // -// $Id: install.forced.php.install,v 1.15 2011/06/26 01:52:59 eldy Exp $ +// $Id: install.forced.php.install,v 1.16 2011/07/30 14:56:12 eldy Exp $ // -$force_install_noedit=1; +$force_install_noedit=2; $force_install_message='KeepDefaultValuesWamp'; $force_install_main_data_root='WAMPROOT/dolibarr_documents'; $force_install_type='mysqli'; diff --git a/build/makepack-dolibarr.pl b/build/makepack-dolibarr.pl index 533d6e1571d..ae04a704e10 100644 --- a/build/makepack-dolibarr.pl +++ b/build/makepack-dolibarr.pl @@ -2,7 +2,7 @@ #---------------------------------------------------------------------------- # \file build/makepack-dolibarr.pl # \brief Dolibarr package builder (tgz, zip, rpm, deb, exe, aps) -# \version $Id: makepack-dolibarr.pl,v 1.111 2011/07/21 01:20:31 eldy Exp $ +# \version $Id: makepack-dolibarr.pl,v 1.127 2011/07/31 18:06:36 eldy Exp $ # \author (c)2004-2011 Laurent Destailleur #---------------------------------------------------------------------------- @@ -11,7 +11,7 @@ use Cwd; $PROJECT="dolibarr"; $MAJOR="3"; $MINOR="1"; -$BUILD="0-dev"; # Mettre x pour release, x-dev pour dev, x-beta pour beta, x-rc pour release candidate +$BUILD="0-beta"; # Mettre x pour release, x-dev pour dev, x-beta pour beta, x-rc pour release candidate $RPMSUBVERSION="auto"; # auto use value found into BUILD @LISTETARGET=("TGZ","ZIP","RPM","DEB","APS","EXEDOLIWAMP","SNAPSHOT"); # Possible packages @@ -34,7 +34,7 @@ $FILENAMESNAPSHOT="$PROJECT-snapshot"; $FILENAMETGZ="$PROJECT-$MAJOR.$MINOR.$BUILD"; $FILENAMEZIP="$PROJECT-$MAJOR.$MINOR.$BUILD"; $FILENAMERPM="$PROJECT-$MAJOR.$MINOR.$BUILD-$RPMSUBVERSION"; -$FILENAMEDEB="$PROJECT-$MAJOR.$MINOR.$BUILD"; +$FILENAMEDEB="${PROJECT}_${MAJOR}.${MINOR}.${BUILD}"; $FILENAMEAPS="$PROJECT-$MAJOR.$MINOR.$BUILD.app"; $FILENAMEEXEDOLIWAMP="$PROJECT-$MAJOR.$MINOR.$BUILD"; if (-d "/usr/src/redhat") { @@ -48,7 +48,7 @@ if (-d "/usr/src/RPM") { use vars qw/ $REVISION $VERSION /; -$REVISION='$Revision: 1.111 $'; $REVISION =~ /\s(.*)\s/; $REVISION=$1; +$REVISION='$Revision: 1.127 $'; $REVISION =~ /\s(.*)\s/; $REVISION=$1; $VERSION="1.0 (build $REVISION)"; @@ -248,43 +248,74 @@ if ($nboftargetok) { $ret=`rm -fr $BUILDROOT/$PROJECT/.cache`; $ret=`rm -fr $BUILDROOT/$PROJECT/.project`; $ret=`rm -fr $BUILDROOT/$PROJECT/.settings`; + $ret=`rm -fr $BUILDROOT/$PROJECT/pom.xml`; + $ret=`rm -fr $BUILDROOT/$PROJECT/default.properties`; $ret=`rm -fr $BUILDROOT/$PROJECT/build/html`; $ret=`rm -f $BUILDROOT/$PROJECT/build/DoliW*-*`; $ret=`rm -f $BUILDROOT/$PROJECT/build/DoliM*-*`; $ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.deb`; + $ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr_*.deb`; + $ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr_*.dsc`; $ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.rpm`; $ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.tar`; + $ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.tar.gz`; $ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.tgz`; $ret=`rm -f $BUILDROOT/$PROJECT/build/dolibarr-*.zip`; $ret=`rm -f $BUILDROOT/$PROJECT/build/doxygen/doxygen_warnings.log`; + $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/conf/conf.php`; $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/conf/conf.php.mysql`; $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/conf/conf.php.old`; $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/conf/conf.php.postgres`; $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/conf/conf*sav*`; $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/install/install.lock`; + $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/barcode/php-barcode/fonts/AerialMono*.ttf`; + $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/barcode/php-barcode/fonts/Tymes*.ttf`; + $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/barcode/php-barcode/fonts/Veranda*.ttf`; + $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/fckeditor/fckeditor.py`; + $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/install/mssql/README`; + $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/install/mysql/README`; + $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/install/pgsql/README`; + + $ret=`rm -fr $BUILDROOT/$PROJECT/dev/test`; + $ret=`rm -fr $BUILDROOT/$PROJECT/dev/spec`; + $ret=`rm -fr $BUILDROOT/$PROJECT/dev/licence`; + $ret=`rm -fr $BUILDROOT/$PROJECT/dev/uml`; + $ret=`rm -fr $BUILDROOT/$PROJECT/dev/xdebug`; + $ret=`rm -f $BUILDROOT/$PROJECT/doc/images/dolibarr_screenshot2.png`; + $ret=`rm -f $BUILDROOT/$PROJECT/doc/images/dolibarr_screenshot3.png`; + $ret=`rm -f $BUILDROOT/$PROJECT/doc/images/dolibarr_screenshot4.png`; + $ret=`rm -f $BUILDROOT/$PROJECT/doc/images/dolibarr_screenshot5.png`; + $ret=`rm -f $BUILDROOT/$PROJECT/doc/images/dolibarr_screenshot6.png`; + $ret=`rm -f $BUILDROOT/$PROJECT/doc/images/dolibarr_screenshot7.png`; + $ret=`rm -f $BUILDROOT/$PROJECT/doc/images/dolibarr_screenshot8.png`; + $ret=`rm -f $BUILDROOT/$PROJECT/doc/images/dolibarr_screenshot9.png`; + $ret=`rm -f $BUILDROOT/$PROJECT/doc/images/dolibarr_screenshot10.png`; + $ret=`rm -f $BUILDROOT/$PROJECT/doc/images/dolibarr_screenshot11.png`; + $ret=`rm -f $BUILDROOT/$PROJECT/doc/images/dolibarr_screenshot12.png`; $ret=`rm -fr $BUILDROOT/$PROJECT/documents`; $ret=`rm -fr $BUILDROOT/$PROJECT/document`; - $ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/conf/conf.php`; - $ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/conf/conf.php.mysql`; - $ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/conf/conf.php.old`; - $ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/conf/conf.php.postgres`; - $ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/conf/conf*sav*`; $ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/custom`; $ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/custom2`; $ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/theme/bureau2crea`; $ret=`rm -fr $BUILDROOT/$PROJECT/test`; + $ret=`rm -fr $BUILDROOT/$PROJECT/build/deb/po/CVS*`; $ret=`rm -fr $BUILDROOT/$PROJECT/Thumbs.db $BUILDROOT/$PROJECT/*/Thumbs.db $BUILDROOT/$PROJECT/*/*/Thumbs.db $BUILDROOT/$PROJECT/*/*/*/Thumbs.db $BUILDROOT/$PROJECT/*/*/*/*/Thumbs.db`; - $ret=`rm -fr $BUILDROOT/$PROJECT/CVS* $BUILDROOT/$PROJECT/*/CVS* $BUILDROOT/$PROJECT/*/*/CVS* $BUILDROOT/$PROJECT/*/*/*/CVS* $BUILDROOT/$PROJECT/*/*/*/*/CVS* $BUILDROOT/$PROJECT/*/*/*/*/*/CVS* $BUILDROOT/$PROJECT/*/*/*/*/*/*/CVS* $BUILDROOT/$PROJECT/*/*/*/*/*/*/*/CVS* $BUILDROOT/$PROJECT/*/*/*/*/*/*/*/*/CVS* $BUILDROOT/$PROJECT/*/*/*/*/*/*/*/*/*/CVS*`; + $ret=`rm -fr $BUILDROOT/$PROJECT/CVS* $BUILDROOT/$PROJECT/*/CVS* $BUILDROOT/$PROJECT/*/*/CVS* $BUILDROOT/$PROJECT/*/*/*/CVS* $BUILDROOT/$PROJECT/*/*/*/*/CVS* $BUILDROOT/$PROJECT/*/*/*/*/*/CVS* $BUILDROOT/$PROJECT/*/*/*/*/*/*/CVS* $BUILDROOT/$PROJECT/*/*/*/*/*/*/*/CVS* $BUILDROOT/$PROJECT/*/*/*/*/*/*/*/*/CVS* $BUILDROOT/$PROJECT/*/*/*/*/*/*/*/*/*/CVS* $BUILDROOT/$PROJECT/*/*/*/*/*/*/*/*/*/*/CVS*`; $ret=`rm -fr $BUILDROOT/$PROJECT/.cvsignore $BUILDROOT/$PROJECT/*/.cvsignore $BUILDROOT/$PROJECT/*/*/.cvsignore $BUILDROOT/$PROJECT/*/*/*/.cvsignore $BUILDROOT/$PROJECT/*/*/*/*/.cvsignore $BUILDROOT/$PROJECT/*/*/*/*/*/.cvsignore $BUILDROOT/$PROJECT/*/*/*/*/*/*/.cvsignore`; $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/php_writeexcel/php.bmp`; - $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/phpexcel/PHPExcel/Shared/PDF/fonts/utils/freetype6.dll`; - $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/phpexcel/PHPExcel/Shared/PDF/fonts/utils/zlib1.dll`; - $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/phpexcel/PHPExcel/Shared/PDF/fonts/utils/pfm2afm`; - $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/phpexcel/PHPExcel/Shared/PDF/fonts/utils/ttf2ufm`; - $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/fonts/utils/pfm2afm`; - $ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/fonts/utils/ttf2ufm`; + $ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/phpexcel`; + $ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/smarty`; + #$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/phpexcel/PHPExcel/Shared/PDF/fonts/utils/freetype6.dll`; + #$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/phpexcel/PHPExcel/Shared/PDF/fonts/utils/zlib1.dll`; + #$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/phpexcel/PHPExcel/Shared/PDF/fonts/utils/pfm2afm`; + #$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/phpexcel/PHPExcel/Shared/PDF/fonts/utils/ttf2ufm`; + $ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/fonts/dejavu-fonts-ttf-2.33`; + $ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/fonts/freefont-20100919`; + $ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/fonts/utils`; + #$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/fonts/utils/pfm2afm`; + #$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/fonts/utils/ttf2ufm`; } # Build package for each target @@ -383,14 +414,19 @@ if ($nboftargetok) { } if ($target eq 'RPM') { # Linux only - $ARCH='i386'; + #$ARCH='i386'; + $ARCH='noarch'; if ($RPMDIR eq "") { $RPMDIR=$ENV{'HOME'}."/rpmbuild"; } $newbuild = $BUILD; - $newbuild =~ s/(dev|alpha)/0/gi; # dev - $newbuild =~ s/beta/1/gi; # beta - $newbuild =~ s/rc./2/gi; # rc + # For fedora + $newbuild =~ s/(dev|alpha)/0.1.a/gi; # dev + $newbuild =~ s/beta/0.2.beta1/gi; # beta + $newbuild =~ s/rc./0.3.rc1/gi; # rc if ($newbuild !~ /-/) { $newbuild.='-3'; } # finale - # now newbuild is 0-0 or 0-3 for example + #$newbuild =~ s/(dev|alpha)/0/gi; # dev + #$newbuild =~ s/beta/1/gi; # beta + #$newbuild =~ s/rc./2/gi; # rc + #if ($newbuild !~ /-/) { $newbuild.='-3'; } # finale $REL1 = $newbuild; $REL1 =~ s/-.*$//gi; if ($RPMSUBVERSION eq 'auto') { $RPMSUBVERSION = $newbuild; $RPMSUBVERSION =~ s/^.*-//gi; } print "Version is $MAJOR.$MINOR.$REL1-$RPMSUBVERSION\n"; @@ -408,6 +444,16 @@ if ($nboftargetok) { print "Remove other files\n"; $ret=`rm -f $BUILDROOT/$FILENAMETGZ2/htdocs/includes/barcode/php-barcode/genbarcode/genbarcode`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/README`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/aps`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/deb`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/dmg`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/doap`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/exe`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/live`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/patch`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/zip`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/perl`; print "Compress $FILENAMETGZ2 into $FILENAMETGZ2.tgz...\n"; $ret=`tar --exclude-from "$SOURCE/build/tgz/tar_exclude.txt" --directory "$BUILDROOT" -czvf "$BUILDROOT/$FILENAMETGZ2.tgz" $FILENAMETGZ2`; @@ -436,10 +482,15 @@ if ($nboftargetok) { print "Move $RPMDIR/RPMS/".$ARCH."/".$FILENAMETGZ2."-".$RPMSUBVERSION.".".$ARCH.".rpm into $DESTI/".$FILENAMETGZ2."-".$RPMSUBVERSION.".".$ARCH.".rpm\n"; $cmd="mv \"$RPMDIR/RPMS/".$ARCH."/".$FILENAMETGZ2."-".$RPMSUBVERSION.".".$ARCH.".rpm\" \"$DESTI/".$FILENAMETGZ2."-".$RPMSUBVERSION.".".$ARCH.".rpm\""; $ret=`$cmd`; + print "Move $RPMDIR/SRPMS/".$FILENAMETGZ2."-".$RPMSUBVERSION.".src.rpm into $DESTI/".$FILENAMETGZ2."-".$RPMSUBVERSION.".src.rpm\n"; + $cmd="mv \"$RPMDIR/SRPMS/".$FILENAMETGZ2."-".$RPMSUBVERSION.".src.rpm\" \"$DESTI/".$FILENAMETGZ2."-".$RPMSUBVERSION.".src.rpm\""; + $ret=`$cmd`; + next; } - if ($target eq 'DEB') { + if ($target eq 'DEB') + { $newbuild = $BUILD; $newbuild =~ s/(dev|alpha)/1/gi; # dev $newbuild =~ s/beta/2/gi; # beta @@ -447,10 +498,13 @@ if ($nboftargetok) { if ($newbuild !~ /-/) { $newbuild.='-4'; } # finale # now newbuild is 0-1 or 0-4 for example print "Version is $MAJOR.$MINOR.$newbuild\n"; - - print "Remove target $FILENAMEDEB.deb...\n"; - unlink("$DESTI/$FILENAMEDEB.deb"); + $build = $newbuild; + $build =~ s/-.*$//g; + # now build is 0 for example + print "Remove target ${FILENAMEDEB}_all.deb...\n"; + unlink("$DESTI/${FILENAMEDEB}_all.deb"); + #rmdir "$BUILDROOT/$PROJECT.tmp"; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp`; print "Create directory $BUILDROOT/$PROJECT.tmp/usr/share\n"; @@ -458,25 +512,73 @@ if ($nboftargetok) { print "Copy $BUILDROOT/$PROJECT to $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT\n"; $cmd="cp -pr \"$BUILDROOT/$PROJECT\" \"$BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT\""; $ret=`$cmd`; + + # Create DEBIAN directory print "Create directory $BUILDROOT/$PROJECT.tmp/DEBIAN\n"; $ret=`mkdir "$BUILDROOT/$PROJECT.tmp/DEBIAN"`; - print "Copy $SOURCE/build/deb/* to $BUILDROOT/$PROJECT.tmp/DEBIAN\n"; - $ret=`cp -r "$SOURCE/build/deb/config" "$BUILDROOT/$PROJECT.tmp/DEBIAN"`; - $ret=`cp -r "$SOURCE/build/deb/control" "$BUILDROOT/$PROJECT.tmp/DEBIAN"`; - $ret=`cp -r "$SOURCE/build/deb/postinst" "$BUILDROOT/$PROJECT.tmp/DEBIAN"`; - $ret=`cp -r "$SOURCE/build/deb/postrm" "$BUILDROOT/$PROJECT.tmp/DEBIAN"`; - $ret=`cp -r "$SOURCE/build/deb/templates" "$BUILDROOT/$PROJECT.tmp/DEBIAN"`; - + print "Copy $SOURCE/build/deb/xxx to $BUILDROOT/$PROJECT.tmp/DEBIAN\n"; + $ret=`cp -f "$SOURCE/build/deb/config" "$BUILDROOT/$PROJECT.tmp/DEBIAN"`; + $ret=`cp -f "$SOURCE/build/deb/postinst" "$BUILDROOT/$PROJECT.tmp/DEBIAN"`; + $ret=`cp -f "$SOURCE/build/deb/postrm" "$BUILDROOT/$PROJECT.tmp/DEBIAN"`; + $ret=`cp -f "$SOURCE/build/deb/templates" "$BUILDROOT/$PROJECT.tmp/DEBIAN"`; + $ret=`cp -fr "$SOURCE/build/deb/po" "$BUILDROOT/$PROJECT.tmp/DEBIAN"`; + $ret=`rm -fr "$BUILDROOT/$PROJECT.tmp/DEBIAN/po/CVS*"`; + + print "Edit version in file $BUILDROOT/$PROJECT.tmp/DEBIAN/control\n"; + open (SPECFROM,"<$SOURCE/build/deb/control.DEBIAN") || die "Error"; + open (SPECTO,">$BUILDROOT/$PROJECT.tmp/DEBIAN/control") || die "Error"; + while () { + $_ =~ s/__VERSION__/$MAJOR.$MINOR.$newbuild/; + print SPECTO $_; + } + close SPECFROM; + close SPECTO; + print "Version set to $MAJOR.$MINOR.$newbuild\n"; + print "Remove other files\n"; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/COPYRIGHT`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/INSTALL`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/README`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/README-FR`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/README`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/README-FR`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/aps`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/dmg`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/pad/README`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/tgz/README`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/README`; + #$ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/po`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/changelog`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/compat`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/config`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/control.*`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/copyright`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/dolibarr.desktop`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/dolibarr.menu`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/format`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/install`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/menu`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/postrm`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/postinst`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/rules`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/README.debian`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/templates`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/templates.futur`; + $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/deb/wash`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/doap`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/exe`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/live`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/patch`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/perl`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/rpm`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build/zip`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/dev/dbmodel`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/dev/fpdf`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/dev/initdata`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/dev/iso-normes`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/dev/phpcheckstyle`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/dev/phpunit`; - $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/dev/spec`; - $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/dev/uml`; - $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/dev/xdebug`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/doc/flyer`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/doc/font`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/doc/tshirt`; @@ -486,30 +588,32 @@ if ($nboftargetok) { $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/cashdesk/include/jscalendar/skins/aqua/CVS`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/ckeditor/plugins/*/dialogs/CVS`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/ckeditor/plugins/*/images/CVS`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/fpdf/fpdf`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/nusoap/lib/Mail`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/odtphp/zip/.svn`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/odtphp/zip/pclzip/.svn`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/smarty`; $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/COPYING`; $ret=`rm -f $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/barcode/php-barcode/genbarcode/genbarcode`; # To remove once stable $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/htdocs/theme/bureau2crea`; - print "Edit version in file $BUILDROOT/$PROJECT.tmp/DEBIAN/control\n"; - open (SPECFROM,"<$SOURCE/build/deb/control") || die "Error"; - open (SPECTO,">$BUILDROOT/$PROJECT.tmp/DEBIAN/control") || die "Error"; - while () { - $_ =~ s/__VERSION__/$MAJOR.$MINOR.$newbuild/; - print SPECTO $_; - } - close SPECFROM; - close SPECTO; - print "Version set to $MAJOR.$MINOR.$newbuild\n"; - + # Apache conf files + print "Copy apache.conf file into $BUILDROOT/$PROJECT.tmp/etc/$PROJECT/apache.conf\n"; + $ret=`mkdir -p "$BUILDROOT/$PROJECT.tmp/etc/$PROJECT"`; + $ret=`cp "$SOURCE/build/deb/apache.conf" "$BUILDROOT/$PROJECT.tmp/etc/$PROJECT/apache.conf"`; + + # Dolibarr conf files + # TODO + + # dolibarr.desktop print "Create directory $BUILDROOT/$PROJECT.tmp/usr/share/applications\n"; $ret=`mkdir -p "$BUILDROOT/$PROJECT.tmp/usr/share/applications"`; print "Copy desktop file into $BUILDROOT/$PROJECT.tmp/usr/share/applications/dolibarr.desktop\n"; $ret=`cp "$SOURCE/build/deb/dolibarr.desktop" "$BUILDROOT/$PROJECT.tmp/usr/share/applications/dolibarr.desktop"`; + # pixmap print "Create directory $BUILDROOT/$PROJECT.tmp/usr/share/pixmaps\n"; $ret=`mkdir -p "$BUILDROOT/$PROJECT.tmp/usr/share/pixmaps"`; print "Copy pixmap file into $BUILDROOT/$PROJECT.tmp/usr/share/pixmaps/dolibarr.xpm\n"; @@ -518,14 +622,16 @@ if ($nboftargetok) { print "Create directory $BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT\n"; $ret=`mkdir -p "$BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT"`; - print "Copy README file into $BUILDROOT/$PROJECT.tmp/DEBIAN\n"; - $ret=`cp "$SOURCE/README" "$BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT/README"`; + #print "Copy README file into $BUILDROOT/$PROJECT.tmp/DEBIAN\n"; + #$ret=`cp "$SOURCE/README" "$BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT/README"`; - print "Copy copyright file into $BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT/copyright\n"; - $ret=`cp "$SOURCE/build/deb/copyright" "$BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT/copyright"`; + # copyright (to build binary package directly without sources. Useless if we build from sources) + #print "Copy copyright file into $BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT/copyright\n"; + #$ret=`cp "$SOURCE/build/deb/copyright" "$BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT/copyright"`; - #$ret=`gzip -9 -c $SOURCE/build/deb/changelog > $BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT/changelog.Debian.gz`; - $ret=`gzip -9 -c "$SOURCE/build/deb/changelog" > $BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT/changelog.Debian.gz`; + # changelog (to build binary package directly without sources. Useless if we build from sources) + #$ret=`gzip -9 -c "$SOURCE/build/deb/changelog" > $BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT/changelog.Debian.gz`; + #$ret=`gzip -9 -c "$SOURCE/build/deb/changelog" > $BUILDROOT/$PROJECT.tmp/usr/share/doc/$PROJECT/changelog.gz`; print "Set owners on files/dir\n"; $ret=`chown -R root.root $BUILDROOT/$PROJECT.tmp`; @@ -538,34 +644,84 @@ if ($nboftargetok) { $ret=`$cmd`; $ret=`chmod 644 $BUILDROOT/$PROJECT.tmp/DEBIAN/control`; $ret=`chmod 644 $BUILDROOT/$PROJECT.tmp/DEBIAN/templates`; - $cmd="find $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build -name *.php -type f -exec chmod 755 {} \\; "; + $cmd="find $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build -name '*.php' -type f -exec chmod 755 {} \\; "; $ret=`$cmd`; - #$cmd="find $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build -name *.pl -type f -exec chmod 755 {} \\; "; - #$ret=`$cmd`; - $cmd="find $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/dev -name *.php -type f -exec chmod 755 {} \\; "; + $cmd="find $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/build -name '*.pl' -type f -exec chmod 755 {} \\; "; $ret=`$cmd`; - $cmd="find $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/scripts -name *.php -type f -exec chmod 755 {} \\; "; + $cmd="find $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/dev -name '*.php' -type f -exec chmod 755 {} \\; "; + $ret=`$cmd`; + $ret=`chmod -R 644 $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/dev/translation/langAutoParser.class.php`; + $ret=`chmod -R 644 $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/dev/skeletons/skeleton_page.php`; + $ret=`chmod -R 644 $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/dev/skeletons/modMyModule.class.php`; + $ret=`chmod -R 644 $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/dev/skeletons/skeleton_class.class.php`; + $cmd="find $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/scripts -name '*.php' -type f -exec chmod 755 {} \\; "; + $ret=`$cmd`; + $cmd="find $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/geoip -name 'sample*.php' -type f -exec chmod 755 {} \\; "; + $ret=`$cmd`; + $cmd="find $BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/htdocs/includes/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts -name '*.pl' -type f -exec chmod 755 {} \\; "; $ret=`$cmd`; print "Go to directory $BUILDROOT\n"; $olddir=getcwd(); chdir("$BUILDROOT"); - $cmd="dpkg -b $BUILDROOT/$PROJECT.tmp $BUILDROOT/${FILENAMEDEB}.deb"; - print "Launch DEB build ($cmd)\n"; - $ret=`$cmd`; - print $ret."\n"; + # Creation of binary package (to build without sources) + #$cmd="dpkg -b $BUILDROOT/$PROJECT.tmp $BUILDROOT/${FILENAMEDEB}_all.deb"; + #print "Launch DEB build ($cmd)\n"; + #$ret=`$cmd`; + #print $ret."\n"; + + # Creation of source package + print "Create directory $BUILDROOT/$PROJECT.tmp/debian\n"; + $ret=`mkdir "$BUILDROOT/$PROJECT.tmp/debian"`; + $ret=`mkdir "$BUILDROOT/$PROJECT.tmp/debian/source"`; + $ret=`rm -fr "$BUILDROOT/$PROJECT.tmp/DEBIAN"`; + $ret=`rm -fr "$BUILDROOT/$PROJECT.tmp/usr/share/$PROJECT/doc"`; + print "Copy $SOURCE/build/deb/xxx to $BUILDROOT/$PROJECT.tmp/debian\n"; + # Add files for dpkg-source + $ret=`cp -f "$SOURCE/ChangeLog" "$BUILDROOT/$PROJECT.tmp/usr/share/doc/dolibarr/UserChangeLog"`; + $ret=`cp -f "$SOURCE/build/deb/README.debian" "$BUILDROOT/$PROJECT.tmp/usr/share/doc/dolibarr/README"`; + $ret=`cp -f "$SOURCE/build/deb/changelog" "$BUILDROOT/$PROJECT.tmp/debian/changelog"`; + $ret=`cp -f "$SOURCE/build/deb/control.debian" "$BUILDROOT/$PROJECT.tmp/debian/control"`; + $ret=`cp -f "$SOURCE/build/deb/install" "$BUILDROOT/$PROJECT.tmp/debian/install"`; + $ret=`cp -f "$SOURCE/build/deb/rules" "$BUILDROOT/$PROJECT.tmp/debian/rules"`; + $ret=`cp -f "$SOURCE/build/deb/copyright" "$BUILDROOT/$PROJECT.tmp/debian/copyright"`; + $ret=`cp -f "$SOURCE/build/deb/compat" "$BUILDROOT/$PROJECT.tmp/debian/compat"`; + $ret=`cp -f "$SOURCE/build/deb/format" "$BUILDROOT/$PROJECT.tmp/debian/source/format"`; + $ret=`cp -fr "$SOURCE/build/deb/po" "$BUILDROOT/$PROJECT.tmp/debian/po"`; + $ret=`rm -fr "$BUILDROOT/$PROJECT.tmp/debian/po/CVS"`; + # Add files also required to build binary package with dpkg-buildpackages + $ret=`cp -f "$SOURCE/build/deb/config" "$BUILDROOT/$PROJECT.tmp/debian"`; + $ret=`cp -f "$SOURCE/build/deb/postinst" "$BUILDROOT/$PROJECT.tmp/debian"`; + $ret=`cp -f "$SOURCE/build/deb/postrm" "$BUILDROOT/$PROJECT.tmp/debian"`; + $ret=`cp -f "$SOURCE/build/deb/templates" "$BUILDROOT/$PROJECT.tmp/debian"`; + + $cmd="mv $BUILDROOT/$PROJECT.tmp $BUILDROOT/$PROJECT-$MAJOR.$MINOR.$build"; + $ret=`$cmd`; + chdir("$BUILDROOT/$PROJECT-$MAJOR.$MINOR.$build"); + #$cmd="dpkg-source -b $BUILDROOT/$PROJECT-$MAJOR.$MINOR.$build"; + $cmd="dpkg-buildpackage -us -uc"; + print "Launch DEB build ($cmd)\n"; + $ret=`$cmd`; + print $ret."\n"; + chdir("$olddir"); if ($OS =~ /windows/i) { - print "Move ${FILENAMEDEB}.deb to $DESTI/${FILENAMEDEB}.deb\n"; - $ret=`mv "$BUILDROOT/${FILENAMEDEB}.deb" "$DESTI/${FILENAMEDEB}.deb"`; + print "Move *_all.deb to $DESTI\n"; + $ret=`mv $BUILDROOT/*_all.deb "$DESTI/"`; + $ret=`mv $BUILDROOT/*.dsc "$DESTI/"`; + $ret=`mv $BUILDROOT/*.tar.gz "$DESTI/"`; + $ret=`mv $BUILDROOT/*.changes "$DESTI/"`; } else { - print "Move ${FILENAMEDEB}.deb to $DESTI/${FILENAMEDEB}.deb\n"; - $ret=`mv "$BUILDROOT/${FILENAMEDEB}.deb" "$DESTI/${FILENAMEDEB}.deb"`; + print "Move *_all.deb to $DESTI\n"; + $ret=`mv $BUILDROOT/*_all.deb "$DESTI/"`; + $ret=`mv $BUILDROOT/*.dsc "$DESTI/"`; + $ret=`mv $BUILDROOT/*.tar.gz "$DESTI/"`; + $ret=`mv $BUILDROOT/*.changes "$DESTI/"`; } next; } @@ -593,15 +749,21 @@ if ($nboftargetok) { $ret=`$cmd`; print "Remove other files\n"; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/deb`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/dmg`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/doap`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/exe`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/live`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/patch`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/rpm`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/zip`; + $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/build/perl`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/dev/dbmodel`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/dev/fpdf`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/dev/initdata`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/dev/iso-normes`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/dev/phpcheckstyle`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/dev/phpunit`; - $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/dev/spec`; - $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/dev/uml`; - $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/dev/xdebug`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/doc/flyer`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/doc/font`; $ret=`rm -fr $BUILDROOT/$PROJECT.tmp/$PROJECT/doc/tshirt`; diff --git a/build/rpm/README b/build/rpm/README index 11439542df7..c157a195c03 100644 --- a/build/rpm/README +++ b/build/rpm/README @@ -22,14 +22,18 @@ with format RPM (for Redhat, Mandriva, ...). # On Mageia (after su - root) # urpmi dolibarr-...rpm To install package and dependencies # urpme dolibarr To remove package +# +# More on rpm on page http://www.trustonme.net/didactels/273.html To submit a package to Fedora: - +- Create account on bugzilla.redhat.com +- Create account on fedoraproject.org +- Create SRPMS package. +- Upload package onf http://fedorapeople.org - Create a bug with form https://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Fedora&format=fedora-review This is example of content of review field (used for Bug 723326): -Spec URL: http://www.dolibarr.org/files/fedora/dolibarr.spec -SRPM URL: http://www.dolibarr.org/files/fedora/dolibarr-3.1.0-0.src.rpm +SRPMS URL: http://www.dolibarr.org/files/fedora/dolibarr-x.y.z-xxx.src.rpm Description: Dolibarr ERP & CRM is an easy to use open source/free software for small and medium companies, foundations or freelances. It includes different features for Enterprise Resource Planning (ERP) and Customer diff --git a/build/rpm/dolibarr.desktop b/build/rpm/dolibarr.desktop index ab2a758867f..33fadf7624f 100755 --- a/build/rpm/dolibarr.desktop +++ b/build/rpm/dolibarr.desktop @@ -13,7 +13,7 @@ Comment[it]=Programma gestionale open source e gratuito per piccole e medie impr Comment[es]=Software para gestión de PYMES, profesionales independientes, auto emprendedores ó asociaciones # Command to open an URL # For Fedora: xdg-open -# For Debian/Ubuntu: x-www-browser +# For Debian/Ubuntu: xdg-open or x-www-browser # (exo-open for xfde, gnome-open for gnome, ...) Exec=xdg-open http://localhost/dolibarr Icon=dolibarr diff --git a/build/rpm/dolibarr.spec b/build/rpm/dolibarr.spec index 11090951bdd..1754220c6c7 100644 --- a/build/rpm/dolibarr.spec +++ b/build/rpm/dolibarr.spec @@ -20,7 +20,7 @@ Vendor: Dolibarr dev team URL: http://www.%{name}.org Source: /usr/src/RPM/SOURCES/%{name}-%{version}.tgz -#BuildArch: noarch +BuildArch: noarch #BuildArchitectures: noarch BuildRoot: /tmp/%{name}-buildroot #Icon: dolibarr_logo1.gif @@ -138,23 +138,61 @@ rm -rf $RPM_BUILD_ROOT #%config /var/www/dolibarr/htdocs/conf/conf.php -#---- post (after install) +#---- post (after unzip during install) %post -%update_menus +#%update_menus # Does not exists on fedora nor mandriva + +# Define vars # Dolibarr files are stored into /var/www export targetdir='/var/www/dolibarr' -# Dolibarr uploaded files and generated documents are stored into /usr/share/dolibarr/documents -export docdir='/usr/share/dolibarr/documents' +# Dolibarr uploaded files and generated documents will be stored into docdir +#export docdir="/var/lib/dolibarr/documents" +export docdir="/usr/share/dolibarr/documents" +export installfileorig="$targetdir/build/rpm/install.forced.php.install" +export installconfig="%{_sysconfdir}/dolibarr/install.forced.php" +export apachefileorig="$targetdir/build/rpm/httpd-dolibarr.conf" +export apacheconfig="%{_sysconfdir}/dolibarr/apache.conf" +#config="/usr/share/dolibarr/htdocs/conf/conf.php" +config="%{_sysconfdir}/dolibarr/conf.php" +lockfile="/usr/share/dolibarr/install.lock" + + +# Detect OS +os='unknown'; +if [ -d %{_sysconfdir}/httpd/conf.d ]; then + export os='fedora-redhat'; + export apachelink="%{_sysconfdir}/httpd/conf.d/dolibarr.conf" + export apacheuser='apache'; + export apachegroup='apache'; +fi +if [ -d %{_sysconfdir}/apache2/conf.d -a `grep ^wwwrun /etc/passwd | wc -l` -ge 1 ]; then + export os='opensuse'; + export apachelink="%{_sysconfdir}/apache2/conf.d/dolibarr.conf" + export apacheuser='wwwrun'; + export apachegroup='www'; +fi +if [ -d %{_sysconfdir}/httpd/conf.d -a `grep -i "^mageia\|mandriva" /etc/issue | wc -l` -ge 1 ]; then + export os='mageia-mandriva'; + export apachelink="%{_sysconfdir}/httpd/conf.d/dolibarr.conf" + export apacheuser='apache'; + export apachegroup='apache'; +fi +if [ -d %{_sysconfdir}/apache2/conf.d -a `grep ^www-data /etc/passwd | wc -l` -ge 1 ]; then + export os='ubuntu-debian'; + export apachelink="%{_sysconfdir}/apache2/conf.d/dolibarr.conf" + export apacheuser='www-data'; + export apachegroup='www-data'; +fi +echo OS detected: $os # Create empty directory for uploaded files and generated documents echo Create document directory $docdir mkdir -p $docdir +mkdir -p %{_sysconfdir}/dolibarr # Create install.forced.php into Dolibarr install directory -fileorig="$targetdir/build/rpm/install.forced.php.install" -config="$targetdir/htdocs/install/install.forced.php" superuserlogin='' superuserpassword='' if [ -f %{_sysconfdir}/mysql/debian.cnf ] ; then @@ -164,72 +202,47 @@ if [ -f %{_sysconfdir}/mysql/debian.cnf ] ; then fi echo Mysql superuser found to use is $superuserlogin if [ -z "$superuserlogin" ] ; then - cat $fileorig | sed -e 's/__SUPERUSERLOGIN__/root/g' | sed -e 's/__SUPERUSERPASSWORD__//g' > $config + cat $installfileorig | sed -e 's/__SUPERUSERLOGIN__/root/g' | sed -e 's/__SUPERUSERPASSWORD__//g' > $installconfig else - cat $fileorig | sed -e 's/__SUPERUSERLOGIN__/'$superuserlogin'/g' | sed -e 's/__SUPERUSERPASSWORD__/'$superuserpassword'/g' > $config + cat $installfileorig | sed -e 's/__SUPERUSERLOGIN__/'$superuserlogin'/g' | sed -e 's/__SUPERUSERPASSWORD__/'$superuserpassword'/g' > $installconfig +fi +chown -R root:$apachegroup $installconfig +chmod -R 660 $installconfig + +# Create an empty conf.php with permission to web server +if [ ! -f $config ] +then + echo Create empty file $config + touch $config + chown -R root:$apachegroup $config + chmod -R 660 $config fi -# Create a config file %{_sysconfdir}/dolibarr/apache.conf -if [ ! -f %{_sysconfdir}/dolibarr/apache.conf ]; then - echo Create dolibarr web server config file %{_sysconfdir}/dolibarr/apache.conf - mkdir -p %{_sysconfdir}/dolibarr - cp $targetdir/build/rpm/httpd-dolibarr.conf %{_sysconfdir}/dolibarr/apache.conf - chmod a-x %{_sysconfdir}/dolibarr/apache.conf - chmod go-w %{_sysconfdir}/dolibarr/apache.conf +# Create a config file $apacheconfig +if [ ! -f $apacheconfig ]; then + echo Create dolibarr web server config file $apacheconfig + cp $apachefileorig $apacheconfig + chmod a-x $apacheconfig + chmod go-w $apacheconfig fi - -# Detect OS -os='unknown'; -if [ -d %{_sysconfdir}/httpd/conf.d ]; then - export os='fedora-redhat'; - export conffile="%{_sysconfdir}/httpd/conf.d/dolibarr.conf" - export apacheuser='apache'; - export apachegroup='apache'; -fi -if [ -d %{_sysconfdir}/apache2/conf.d -a `grep ^wwwrun /etc/passwd | wc -l` -ge 1 ]; then - export os='opensuse'; - export conffile="%{_sysconfdir}/apache2/conf.d/dolibarr.conf" - export apacheuser='wwwrun'; - export apachegroup='www'; -fi -if [ -d %{_sysconfdir}/httpd/conf.d -a `grep -i "^mageia\|mandriva" /etc/issue | wc -l` -ge 1 ]; then - export os='mageia-mandriva'; - export conffile="%{_sysconfdir}/httpd/conf.d/dolibarr.conf" - export apacheuser='apache'; - export apachegroup='apache'; -fi -if [ -d %{_sysconfdir}/apache2/conf.d -a `grep ^www-data /etc/passwd | wc -l` -ge 1 ]; then - export os='ubuntu-debian'; - export conffile="%{_sysconfdir}/apache2/conf.d/dolibarr.conf" - export apacheuser='www-data'; - export apachegroup='www-data'; -fi -echo OS detected: $os - # Create a config link dolibarr.conf for Fedora or Redhat -if [ ! -f $conffile ]; then - echo Create dolibarr web server config link $conffile - ln -fs /etc/dolibarr/apache.conf $conffile +if [ ! -f $apachelink ]; then + echo Create dolibarr web server config link $apachelink + ln -fs $apacheconfig $apachelink fi # Set permissions echo Set permission to $apacheuser:$apachegroup on $targetdir chown -R $apacheuser:$apachegroup $targetdir chmod -R a-w $targetdir +chmod u+w $targetdir echo Set permission to $apacheuser:$apachegroup on $docdir chown -R $apacheuser:$apachegroup $docdir chmod -R o-w $docdir -# Create empty conf.php file for web installer -if [ ! -s $targetdir/htdocs/conf/conf.php ]; then - echo Create empty Dolibarr conf.php file - touch $targetdir/htdocs/conf/conf.php - chown $apacheuser:$apachegroup $targetdir/htdocs/conf/conf.php - chmod ug+rw $targetdir/htdocs/conf/conf.php -fi - +# Set SE Linux on OS SE is enabled if [ "x$os" = "xfedora-redhat" -a -s /usr/bin/chcon ]; then echo Set SELinux permissions # Warning: chcon seems not cumulative @@ -237,6 +250,7 @@ if [ "x$os" = "xfedora-redhat" -a -s /usr/bin/chcon ]; then #chcon -R -h -t httpd_sys_content_t $docdir chcon -R -h -t httpd_sys_script_rw_t $targetdir chcon -R -h -t httpd_sys_script_rw_t $docdir + chcon -R -h -t httpd_sys_script_rw_t %{_sysconfdir}/dolibarr #chcon -R -h -t httpd_sys_script_exec_t $targetdir fi @@ -253,57 +267,71 @@ fi echo echo "----- Dolibarr %version - (c) Dolibarr dev team -----" echo "Dolibarr files are now installed (into /var/www/dolibarr)." -echo To finish installation and use Dolibarr, call the following -echo page from your web browser: -echo http://localhost/dolibarr/ +echo "To finish installation and use Dolibarr, click on ne menu" +echo "entry Dolibarr ERP-CRM or call the following page from your" +echo "web browser:" +echo "http://localhost/dolibarr/" +echo "--------------------------------------------------" echo - #---- postun (after uninstall) %postun -%clean_menus +#%clean_menus # Does not exists on fedora nor mandriva + + +# Define vars +# Dolibarr files are stored into targetdir +export targetdir='/var/www/dolibarr' +# Dolibarr uploaded files and generated documents will be stored into docdir +#export docdir="/var/lib/dolibarr/documents" +export docdir="/usr/share/dolibarr/documents" +export installfileorig="$targetdir/build/rpm/install.forced.php.install" +export installconfig="%{_sysconfdir}/dolibarr/install.forced.php" +export apachefileorig="$targetdir/build/rpm/httpd-dolibarr.conf" +export apacheconfig="%{_sysconfdir}/dolibarr/apache.conf" +#config="/usr/share/dolibarr/htdocs/conf/conf.php" +config="%{_sysconfdir}/dolibarr/conf.php" +lockfile="$targetdir/install.lock" + # Detect OS os='unknown'; if [ -d %{_sysconfdir}/httpd/conf.d ]; then export os='fedora-redhat'; - export conffile="%{_sysconfdir}/httpd/conf.d/dolibarr.conf" + export apachelink="%{_sysconfdir}/httpd/conf.d/dolibarr.conf" export apacheuser='apache'; export apachegroup='apache'; fi if [ -d %{_sysconfdir}/apache2/conf.d -a `grep ^wwwrun /etc/passwd | wc -l` -ge 1 ]; then export os='opensuse'; - export conffile="%{_sysconfdir}/apache2/conf.d/dolibarr.conf" + export apachelink="%{_sysconfdir}/apache2/conf.d/dolibarr.conf" export apacheuser='wwwrun'; export apachegroup='www'; fi if [ -d %{_sysconfdir}/httpd/conf.d -a `grep -i "^mageia\|mandriva" /etc/issue | wc -l` -ge 1 ]; then export os='mageia-mandriva'; - export conffile="%{_sysconfdir}/httpd/conf.d/dolibarr.conf" + export apachelink="%{_sysconfdir}/httpd/conf.d/dolibarr.conf" export apacheuser='apache'; export apachegroup='apache'; fi if [ -d %{_sysconfdir}/apache2/conf.d -a `grep ^www-data /etc/passwd | wc -l` -ge 1 ]; then export os='ubuntu-debian'; - export conffile="%{_sysconfdir}/apache2/conf.d/dolibarr.conf" + export apachelink="%{_sysconfdir}/apache2/conf.d/dolibarr.conf" export apacheuser='www-data'; export apachegroup='www-data'; fi echo OS detected: $os -# Dolibarr files are stored into /var/www -export targetdir='/var/www/dolibarr' -# Dolibarr uploaded files and generated documents are stored into /usr/share/dolibarr/documents -export docdir='/usr/share/dolibarr/documents' - -if [ -f $conffile ] ; +# Remove apache link +if [ -f $apachelink ] ; then - echo Delete apache config file for Dolibarr - rm -f $conffile + echo Delete apache config link for Dolibarr + rm -f $apachelink status=purge fi +# Restart web servers if required if [ "x$status" = "xpurge" ] ; then # Restart web server @@ -317,11 +345,19 @@ then fi # Removed dirs after apache restart -echo Removed remaining dirs -rm -rf /etc/dolibarr -rm -rf $targetdir/htdocs/conf -rm -rf $targetdir/htdocs/install +echo Removed remaining $apacheconfig +rm -f $apacheconfig +echo Removed remaining $config +rm -f $config +echo Removed remaining $installconfig +rm -f $installconfig +echo Removed remaining $lockfile +rm -f $lockfile +echo Removed remaining dir $targetdir/doc rmdir $targetdir/doc >/dev/null 2>&1 -rmdir $targetdir/htdocs >/dev/null 2>&1 +#echo Removed remaining dir $targetdir/htdocs +#rmdir $targetdir/htdocs >/dev/null 2>&1 # Already removed by rpm %changelog +* Wed Jul 31 2011 Laurent Destailleur 3.1.0 +- Initial upstream (#723326) diff --git a/build/rpm/file_contexts.dolibarr b/build/rpm/file_contexts.dolibarr new file mode 100755 index 00000000000..64376e5afb6 --- /dev/null +++ b/build/rpm/file_contexts.dolibarr @@ -0,0 +1,3 @@ +/etc/dolibarr/.* system_u:object_r:httpd_sys_script_rw_t:s0 +/var/www/dolibarr/.* system_u:object_r:httpd_sys_script_rw_t:s0 +/usr/share/dolibarr/.* system_u:object_r:httpd_sys_script_rw_t:s0 \ No newline at end of file diff --git a/build/rpm/httpd-dolibarr.conf b/build/rpm/httpd-dolibarr.conf index 4a395f235a2..db77d540a89 100644 --- a/build/rpm/httpd-dolibarr.conf +++ b/build/rpm/httpd-dolibarr.conf @@ -65,6 +65,13 @@ Alias /dolibarr /var/www/dolibarr/htdocs Allow from all +# Config files + + AllowOverride All + Order deny,allow + Allow from all + + # Directory for data files AllowOverride All diff --git a/build/rpm/install.forced.php.install b/build/rpm/install.forced.php.install index d5480a2a848..f01e5303ce0 100755 --- a/build/rpm/install.forced.php.install +++ b/build/rpm/install.forced.php.install @@ -1,12 +1,13 @@ . * * ATTENTION DE PAS EXECUTER CE SCRIPT SUR UNE INSTALLATION DE PRODUCTION */ @@ -23,7 +22,7 @@ /** \file htdocs/dev/generate-commande.php \brief Script de generation de donnees aleatoires pour les commandes - \version $Id: generate-commande.php,v 1.17 2011/07/09 14:11:40 eldy Exp $ + \version $Id: generate-commande.php,v 1.18 2011/07/31 22:21:57 eldy Exp $ */ // Test si mode batch diff --git a/dev/initdata/generate-facture.php b/dev/initdata/generate-facture.php index 7653d65ce41..f0730287556 100644 --- a/dev/initdata/generate-facture.php +++ b/dev/initdata/generate-facture.php @@ -13,8 +13,7 @@ * 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. + * along with this program. If not, see . * * ATTENTION DE PAS EXECUTER CE SCRIPT SUR UNE INSTALLATION DE PRODUCTION */ @@ -22,7 +21,7 @@ /** * \file htdocs/dev/generate-facture.php * \brief Script de generation de donnees aleatoires pour les factures - * \version $Id: generate-facture.php,v 1.14 2011/07/09 14:11:40 eldy Exp $ + * \version $Id: generate-facture.php,v 1.15 2011/07/31 22:21:57 eldy Exp $ */ // Test si mode batch diff --git a/dev/initdata/generate-produit.php b/dev/initdata/generate-produit.php index 6bbc92b812e..552fe8c8ea0 100644 --- a/dev/initdata/generate-produit.php +++ b/dev/initdata/generate-produit.php @@ -14,8 +14,7 @@ * 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. + * along with this program. If not, see . * * ATTENTION DE PAS EXECUTER CE SCRIPT SUR UNE INSTALLATION DE PRODUCTION */ @@ -23,7 +22,7 @@ /** * \file htdocs/dev/generate-produit.php * \brief Script de generation de donnees aleatoires pour les produits - * \version $Id: generate-produit.php,v 1.16 2011/07/09 14:11:40 eldy Exp $ + * \version $Id: generate-produit.php,v 1.17 2011/07/31 22:21:57 eldy Exp $ */ // Test si mode batch diff --git a/dev/initdata/generate-propale.php b/dev/initdata/generate-propale.php index 56c6debdad2..e06b09100b7 100644 --- a/dev/initdata/generate-propale.php +++ b/dev/initdata/generate-propale.php @@ -14,8 +14,7 @@ * 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. + * along with this program. If not, see . * * ATTENTION DE PAS EXECUTER CE SCRIPT SUR UNE INSTALLATION DE PRODUCTION */ @@ -23,7 +22,7 @@ /** * \file htdocs/dev/generate-propale.php * \brief Script de generation de donnees aleatoires pour les propales - * \version $Id: generate-propale.php,v 1.15 2011/07/09 14:11:40 eldy Exp $ + * \version $Id: generate-propale.php,v 1.16 2011/07/31 22:21:57 eldy Exp $ */ // Test si mode batch diff --git a/dev/initdata/generate-societe.php b/dev/initdata/generate-societe.php index ed6cb9edce2..4bb4aaa4796 100644 --- a/dev/initdata/generate-societe.php +++ b/dev/initdata/generate-societe.php @@ -14,8 +14,7 @@ * 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. + * along with this program. If not, see . * * ATTENTION DE PAS EXECUTER CE SCRIPT SUR UNE INSTALLATION DE PRODUCTION */ @@ -23,7 +22,7 @@ /** * \file htdocs/dev/generate-societe.php * \brief Script de generation de donnees aleatoires pour les societes - * \version $Id: generate-societe.php,v 1.16 2011/07/09 14:11:40 eldy Exp $ + * \version $Id: generate-societe.php,v 1.17 2011/07/31 22:21:57 eldy Exp $ */ // Test si mode batch diff --git a/dev/samples/create_invoice.php b/dev/samples/create_invoice.php index 47cd61cac1b..4a6fceb3211 100644 --- a/dev/samples/create_invoice.php +++ b/dev/samples/create_invoice.php @@ -13,14 +13,13 @@ * 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. + * along with this program. If not, see . */ /** * \file dev/samples/manage_order.php * \brief This file is an example for a command line script - * \version $Id: create_invoice.php,v 1.5 2011/07/09 14:11:41 eldy Exp $ + * \version $Id: create_invoice.php,v 1.6 2011/07/31 22:21:59 eldy Exp $ * \author Put author name here * \remarks Put here some comments */ @@ -36,7 +35,7 @@ if (substr($sapi_type, 0, 3) == 'cgi') { } // Global variables -$version='$Revision: 1.5 $'; +$version='$Revision: 1.6 $'; $error=0; diff --git a/dev/samples/create_order.php b/dev/samples/create_order.php index d955f35d0d4..22045b416e5 100644 --- a/dev/samples/create_order.php +++ b/dev/samples/create_order.php @@ -13,14 +13,13 @@ * 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. + * along with this program. If not, see . */ /** * \file dev/samples/manage_order.php * \brief This file is an example for a command line script - * \version $Id: create_order.php,v 1.9 2011/07/09 14:11:41 eldy Exp $ + * \version $Id: create_order.php,v 1.10 2011/07/31 22:21:59 eldy Exp $ * \author Put author name here * \remarks Put here some comments */ @@ -36,7 +35,7 @@ if (substr($sapi_type, 0, 3) == 'cgi') { } // Global variables -$version='$Revision: 1.9 $'; +$version='$Revision: 1.10 $'; $error=0; diff --git a/dev/samples/create_product.php b/dev/samples/create_product.php index fbf4c5ab835..16db9d62021 100644 --- a/dev/samples/create_product.php +++ b/dev/samples/create_product.php @@ -13,14 +13,13 @@ * 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. + * along with this program. If not, see . */ /** * \file dev/samples/create_product.php * \brief This file is an example for a command line script - * \version $Id: create_product.php,v 1.8 2011/07/09 14:11:41 eldy Exp $ + * \version $Id: create_product.php,v 1.9 2011/07/31 22:21:59 eldy Exp $ * \author Put author name here * \remarks Put here some comments */ @@ -36,7 +35,7 @@ if (substr($sapi_type, 0, 3) == 'cgi') { } // Global variables -$version='$Revision: 1.8 $'; +$version='$Revision: 1.9 $'; $error=0; diff --git a/dev/skeletons/build_class_from_table.php b/dev/skeletons/build_class_from_table.php index c50f3ac4ec4..d21c187e783 100644 --- a/dev/skeletons/build_class_from_table.php +++ b/dev/skeletons/build_class_from_table.php @@ -1,6 +1,6 @@ #!/usr/bin/php +/* Copyright (C) 2008-2011 Laurent Destailleur * * 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 @@ -13,15 +13,14 @@ * 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. + * along with this program. If not, see . */ /** * \file dev/skeletons/build_class_from_table.php * \ingroup core * \brief Create a complete class file from a table in database - * \version $Id: build_class_from_table.php,v 1.32 2011/07/09 14:11:40 eldy Exp $ + * \version $Id: build_class_from_table.php,v 1.33 2011/07/31 22:21:58 eldy Exp $ */ $sapi_type = php_sapi_name(); @@ -39,7 +38,7 @@ require_once($path."../../htdocs/master.inc.php"); // After this $db is a defined handler to database. // Main -$version='$Revision: 1.32 $'; +$version='$Revision: 1.33 $'; @set_time_limit(0); $error=0; diff --git a/dev/skeletons/build_webservice_from_class.php b/dev/skeletons/build_webservice_from_class.php index 03c1f254ab7..5e429ca150a 100644 --- a/dev/skeletons/build_webservice_from_class.php +++ b/dev/skeletons/build_webservice_from_class.php @@ -13,15 +13,14 @@ * 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. + * along with this program. If not, see . */ /** * \file dev/skeletons/build_webservice_from_class.php * \ingroup core * \brief Create a complete webservice file from CRUD functions of a PHP class - * \version $Id: build_webservice_from_class.php,v 1.6 2011/07/09 14:11:40 eldy Exp $ + * \version $Id: build_webservice_from_class.php,v 1.7 2011/07/31 22:21:58 eldy Exp $ */ $sapi_type = php_sapi_name(); @@ -39,7 +38,7 @@ require_once($path."../../htdocs/master.inc.php"); // After this $db is a defined handler to database. // Main -$version='$Revision: 1.6 $'; +$version='$Revision: 1.7 $'; @set_time_limit(0); $error=0; diff --git a/dev/skeletons/modMyModule.class.php b/dev/skeletons/modMyModule.class.php index c10618f340f..3cc548e1c0a 100644 --- a/dev/skeletons/modMyModule.class.php +++ b/dev/skeletons/modMyModule.class.php @@ -14,8 +14,7 @@ * 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. + * along with this program. If not, see . */ /** @@ -28,7 +27,7 @@ * \file htdocs/includes/modules/modMyModule.class.php * \ingroup mymodule * \brief Description and activation file for module MyModule - * \version $Id$ + * \version $Id: modMyModule.class.php,v 1.66 2011/07/31 22:21:58 eldy Exp $ */ include_once(DOL_DOCUMENT_ROOT ."/includes/modules/DolibarrModules.class.php"); diff --git a/dev/skeletons/skeleton_class.class.php b/dev/skeletons/skeleton_class.class.php index aa37ed93c06..5c259a95254 100644 --- a/dev/skeletons/skeleton_class.class.php +++ b/dev/skeletons/skeleton_class.class.php @@ -13,15 +13,14 @@ * 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. + * along with this program. If not, see . */ /** * \file dev/skeletons/skeleton_class.class.php * \ingroup mymodule othermodule1 othermodule2 * \brief This file is an example for a CRUD class file (Create/Read/Update/Delete) - * \version $Id$ + * \version $Id: skeleton_class.class.php,v 1.32 2011/07/31 22:21:58 eldy Exp $ * \author Put author name here * \remarks Put here some comments */ diff --git a/dev/skeletons/skeleton_page.php b/dev/skeletons/skeleton_page.php index b6ad3690452..fbeb11d18b1 100644 --- a/dev/skeletons/skeleton_page.php +++ b/dev/skeletons/skeleton_page.php @@ -13,15 +13,14 @@ * 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. + * along with this program. If not, see . */ /** * \file dev/skeletons/skeleton_page.php * \ingroup mymodule othermodule1 othermodule2 * \brief This file is an example of a php page - * \version $Id$ + * \version $Id: skeleton_page.php,v 1.19 2011/07/31 22:21:57 eldy Exp $ * \author Put author name here * \remarks Put here some comments */ @@ -114,5 +113,5 @@ $somethingshown=$myobject->showLinkedObjectBlock(); // End of page $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:21:57 $ - $Revision: 1.19 $'); ?> diff --git a/dev/skeletons/skeleton_script.php b/dev/skeletons/skeleton_script.php index eaffb1e1357..79e9f54dd03 100644 --- a/dev/skeletons/skeleton_script.php +++ b/dev/skeletons/skeleton_script.php @@ -14,15 +14,14 @@ * 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. + * along with this program. If not, see . */ /** * \file dev/skeletons/skeleton_script.php * \ingroup mymodule othermodule1 othermodule2 * \brief This file is an example for a command line script - * \version $Id: skeleton_script.php,v 1.27 2011/07/09 14:11:41 eldy Exp $ + * \version $Id: skeleton_script.php,v 1.28 2011/07/31 22:21:58 eldy Exp $ * \author Put author name here * \remarks Put here some comments */ @@ -38,7 +37,7 @@ if (substr($sapi_type, 0, 3) == 'cgi') { } // Global variables -$version='$Revision: 1.27 $'; +$version='$Revision: 1.28 $'; $error=0; diff --git a/dev/translation/autotranslator.php b/dev/translation/autotranslator.php index 0b43ca0c34f..f65e597f3f8 100644 --- a/dev/translation/autotranslator.php +++ b/dev/translation/autotranslator.php @@ -13,15 +13,14 @@ * 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. + * along with this program. If not, see . */ /** * \file dev/translation/autotranslator.php * \ingroup mymodule othermodule1 othermodule2 * \brief This file is an example for a command line script - * \version $Id: autotranslator.php,v 1.12 2011/07/09 14:11:41 eldy Exp $ + * \version $Id: autotranslator.php,v 1.13 2011/07/31 22:21:59 eldy Exp $ * \author Put author name here * \remarks Put here some comments */ @@ -45,7 +44,7 @@ require_once($path.'../../htdocs/lib/files.lib.php'); $langs->load("main"); // Global variables -$version='$Revision: 1.12 $'; +$version='$Revision: 1.13 $'; $error=0; diff --git a/htdocs/accountancy/index.php b/htdocs/accountancy/index.php index e69de29bb2d..7db0dd9ebf9 100644 --- a/htdocs/accountancy/index.php +++ b/htdocs/accountancy/index.php @@ -0,0 +1 @@ +Url not available \ No newline at end of file diff --git a/htdocs/adherents/card_subscriptions.php b/htdocs/adherents/card_subscriptions.php index befd5ade5d5..1cc6e22bc88 100644 --- a/htdocs/adherents/card_subscriptions.php +++ b/htdocs/adherents/card_subscriptions.php @@ -14,15 +14,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/adherents/card_subscriptions.php * \ingroup member * \brief Onglet d'ajout, edition, suppression des adhesions d'un adherent - * \version $Id$ + * \version $Id: card_subscriptions.php,v 1.79 2011/07/31 22:23:28 eldy Exp $ */ require("../main.inc.php"); @@ -996,5 +995,5 @@ else $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:28 $ - $Revision: 1.79 $'); ?> diff --git a/htdocs/adherents/cartes/index.php b/htdocs/adherents/cartes/index.php index e69de29bb2d..7db0dd9ebf9 100644 --- a/htdocs/adherents/cartes/index.php +++ b/htdocs/adherents/cartes/index.php @@ -0,0 +1 @@ +Url not available \ No newline at end of file diff --git a/htdocs/adherents/cotisations.php b/htdocs/adherents/cotisations.php index 3c18c0edfcc..6283c494e4d 100644 --- a/htdocs/adherents/cotisations.php +++ b/htdocs/adherents/cotisations.php @@ -14,15 +14,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/adherents/cotisations.php * \ingroup member * \brief Page de consultation et insertion d'une cotisation - * \version $Id$ + * \version $Id: cotisations.php,v 1.58 2011/07/31 22:23:28 eldy Exp $ */ require("../main.inc.php"); @@ -229,5 +228,5 @@ else $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:28 $ - $Revision: 1.58 $'); ?> diff --git a/htdocs/adherents/document.php b/htdocs/adherents/document.php index 304afe52e41..e839c83ccdf 100644 --- a/htdocs/adherents/document.php +++ b/htdocs/adherents/document.php @@ -15,15 +15,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/adherents/document.php * \brief Tab for documents linked to third party * \ingroup societe - * \version $Id: document.php,v 1.8 2011/07/06 20:56:50 eldy Exp $ + * \version $Id: document.php,v 1.9 2011/07/31 22:23:28 eldy Exp $ */ require("../main.inc.php"); @@ -231,6 +230,6 @@ else $db->close(); -llxFooter('$Date: 2011/07/06 20:56:50 $ - $Revision: 1.8 $'); +llxFooter('$Date: 2011/07/31 22:23:28 $ - $Revision: 1.9 $'); ?> diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index 2eeb80e952f..a3b9dc5e521 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -15,15 +15,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/adherents/fiche.php * \ingroup member * \brief Page of member - * \version $Id: fiche.php,v 1.237 2011/07/13 11:50:33 eldy Exp $ + * \version $Id: fiche.php,v 1.238 2011/07/31 22:23:27 eldy Exp $ */ require("../main.inc.php"); @@ -1505,5 +1504,5 @@ if ($rowid && $action != 'edit') $db->close(); -llxFooter('$Date: 2011/07/13 11:50:33 $ - $Revision: 1.237 $'); +llxFooter('$Date: 2011/07/31 22:23:27 $ - $Revision: 1.238 $'); ?> diff --git a/htdocs/adherents/fiche_subscription.php b/htdocs/adherents/fiche_subscription.php index d98b01ed4e4..0e5b39c4539 100644 --- a/htdocs/adherents/fiche_subscription.php +++ b/htdocs/adherents/fiche_subscription.php @@ -12,15 +12,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/adherents/fiche_subscription.php * \ingroup member * \brief Page d'ajout, edition, suppression d'une fiche adh�sion - * \version $Id$ + * \version $Id: fiche_subscription.php,v 1.30 2011/07/31 22:23:28 eldy Exp $ */ require("../main.inc.php"); @@ -393,5 +392,5 @@ if ($rowid && $action != 'edit') $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:28 $ - $Revision: 1.30 $'); ?> diff --git a/htdocs/adherents/htpasswd.php b/htdocs/adherents/htpasswd.php index 936571fa265..a111efe470c 100644 --- a/htdocs/adherents/htpasswd.php +++ b/htdocs/adherents/htpasswd.php @@ -14,8 +14,7 @@ * 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. + * along with this program. If not, see . */ /** @@ -23,7 +22,7 @@ * \ingroup member * \brief Page d'export htpasswd du fichier des adherents * \author Rodolphe Quiedeville - * \version $Id$ + * \version $Id: htpasswd.php,v 1.15 2011/07/31 22:23:28 eldy Exp $ */ require("../main.inc.php"); @@ -82,5 +81,5 @@ else $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:28 $ - $Revision: 1.15 $'); ?> diff --git a/htdocs/adherents/index.php b/htdocs/adherents/index.php index a10051e0e66..09103968f91 100644 --- a/htdocs/adherents/index.php +++ b/htdocs/adherents/index.php @@ -14,8 +14,7 @@ * 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. + * along with this program. If not, see . */ /** @@ -345,5 +344,5 @@ print ''; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:28 $ - $Revision: 1.72 $'); ?> diff --git a/htdocs/adherents/info.php b/htdocs/adherents/info.php index 6831ef8174a..e6d47484af6 100644 --- a/htdocs/adherents/info.php +++ b/htdocs/adherents/info.php @@ -13,15 +13,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/adherents/info.php * \ingroup member * \brief Page des informations d'un adherent - * \version $Id$ + * \version $Id: info.php,v 1.15 2011/07/31 22:23:28 eldy Exp $ */ require("../main.inc.php"); @@ -63,5 +62,5 @@ print ''; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:28 $ - $Revision: 1.15 $'); ?> diff --git a/htdocs/adherents/info_subscription.php b/htdocs/adherents/info_subscription.php index aa261cad009..3169eb49ad9 100644 --- a/htdocs/adherents/info_subscription.php +++ b/htdocs/adherents/info_subscription.php @@ -13,15 +13,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/adherents/info.php * \ingroup member * \brief Page des informations d'un adherent - * \version $Id$ + * \version $Id: info_subscription.php,v 1.12 2011/07/31 22:23:28 eldy Exp $ */ require("../main.inc.php"); @@ -81,5 +80,5 @@ print ''; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:28 $ - $Revision: 1.12 $'); ?> diff --git a/htdocs/adherents/ldap.php b/htdocs/adherents/ldap.php index 8ab961c8f50..29bd50ecbd6 100644 --- a/htdocs/adherents/ldap.php +++ b/htdocs/adherents/ldap.php @@ -13,15 +13,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/adherents/ldap.php * \ingroup ldap member * \brief Page fiche LDAP adherent - * \version $Id$ + * \version $Id: ldap.php,v 1.32 2011/07/31 22:23:27 eldy Exp $ */ require("../main.inc.php"); @@ -233,5 +232,5 @@ print ''; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:27 $ - $Revision: 1.32 $'); ?> diff --git a/htdocs/adherents/liste.php b/htdocs/adherents/liste.php index 7b1890aa228..68e161c3d4e 100644 --- a/htdocs/adherents/liste.php +++ b/htdocs/adherents/liste.php @@ -14,15 +14,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/adherents/liste.php * \ingroup member * \brief Page to list all members of foundation - * \version $Id$ + * \version $Id: liste.php,v 1.84 2011/07/31 22:23:28 eldy Exp $ */ require("../main.inc.php"); @@ -347,5 +346,5 @@ else $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:28 $ - $Revision: 1.84 $'); ?> diff --git a/htdocs/adherents/note.php b/htdocs/adherents/note.php index 8e75f25d164..f74606a85da 100644 --- a/htdocs/adherents/note.php +++ b/htdocs/adherents/note.php @@ -13,15 +13,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/adherents/note.php * \ingroup member * \brief Fiche de notes sur un adherent - * \version $Id$ + * \version $Id: note.php,v 1.29 2011/07/31 22:23:28 eldy Exp $ */ require("../main.inc.php"); @@ -179,5 +178,5 @@ if ($id) $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:28 $ - $Revision: 1.29 $'); ?> diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php index 325802c88cb..9eeefa6f421 100644 --- a/htdocs/adherents/type.php +++ b/htdocs/adherents/type.php @@ -15,15 +15,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/adherents/type.php * \ingroup member * \brief Page de configuration des types d'adherents - * \version $Id: type.php,v 1.69 2011/06/26 21:03:44 eldy Exp $ + * \version $Id: type.php,v 1.70 2011/07/31 22:23:27 eldy Exp $ */ require("../main.inc.php"); @@ -637,5 +636,5 @@ if ($rowid > 0) $db->close(); -llxFooter('$Date: 2011/06/26 21:03:44 $ - $Revision: 1.69 $'); +llxFooter('$Date: 2011/07/31 22:23:27 $ - $Revision: 1.70 $'); ?> diff --git a/htdocs/admin/accounting.php b/htdocs/admin/accounting.php index 655befa2b45..277d8eff564 100644 --- a/htdocs/admin/accounting.php +++ b/htdocs/admin/accounting.php @@ -13,15 +13,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/accounting.php * \ingroup accounting * \brief Page de configuration du module comptabilite expert - * \version $Id$ + * \version $Id: accounting.php,v 1.3 2011/07/31 22:23:26 eldy Exp $ */ require("../main.inc.php"); @@ -169,6 +168,6 @@ if ($result) $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:26 $ - $Revision: 1.3 $'); ?> diff --git a/htdocs/admin/agenda.php b/htdocs/admin/agenda.php index 114b173fae3..459fc80612e 100644 --- a/htdocs/admin/agenda.php +++ b/htdocs/admin/agenda.php @@ -13,15 +13,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/agenda.php * \ingroup agenda * \brief Autocreate actions for agenda module setup page - * \version $Id$ + * \version $Id: agenda.php,v 1.23 2011/07/31 22:23:23 eldy Exp $ */ require("../main.inc.php"); @@ -160,5 +159,5 @@ print "
"; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:23 $ - $Revision: 1.23 $'); ?> diff --git a/htdocs/admin/agenda_extsites.php b/htdocs/admin/agenda_extsites.php index 9fcb41b6746..b0715479fde 100644 --- a/htdocs/admin/agenda_extsites.php +++ b/htdocs/admin/agenda_extsites.php @@ -13,15 +13,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/agenda_extsites.php * \ingroup agenda * \brief Page to setup external calendars for agenda module - * \version $Id$ + * \version $Id: agenda_extsites.php,v 1.9 2011/07/31 22:23:21 eldy Exp $ */ require("../main.inc.php"); @@ -193,5 +192,5 @@ dol_htmloutput_mesg($mesg); $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:21 $ - $Revision: 1.9 $'); ?> \ No newline at end of file diff --git a/htdocs/admin/agenda_xcal.php b/htdocs/admin/agenda_xcal.php index 640f55ffcd3..66c12420396 100644 --- a/htdocs/admin/agenda_xcal.php +++ b/htdocs/admin/agenda_xcal.php @@ -12,15 +12,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/agenda_xcal.php * \ingroup agenda * \brief Page to setup miscellaneous options of agenda module - * \version $Id$ + * \version $Id: agenda_xcal.php,v 1.23 2011/07/31 22:23:25 eldy Exp $ */ require("../main.inc.php"); @@ -150,5 +149,5 @@ print info_admin($message); $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:25 $ - $Revision: 1.23 $'); ?> diff --git a/htdocs/admin/boxes.php b/htdocs/admin/boxes.php index 87a735c6c45..718c842d046 100644 --- a/htdocs/admin/boxes.php +++ b/htdocs/admin/boxes.php @@ -14,14 +14,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/boxes.php * \brief Page to setup boxes - * \version $Id$ + * \version $Id: boxes.php,v 1.72 2011/07/31 22:23:22 eldy Exp $ */ require("../main.inc.php"); @@ -471,5 +470,5 @@ print ''; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:22 $ - $Revision: 1.72 $'); ?> diff --git a/htdocs/admin/clicktodial.php b/htdocs/admin/clicktodial.php index 849eef86383..044de05e497 100644 --- a/htdocs/admin/clicktodial.php +++ b/htdocs/admin/clicktodial.php @@ -13,15 +13,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/clicktodial.php * \ingroup clicktodial * \brief Page to setup module clicktodial - * \version $Id$ + * \version $Id: clicktodial.php,v 1.24 2011/07/31 22:23:24 eldy Exp $ */ require("../main.inc.php"); @@ -96,5 +95,5 @@ print ''; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:24 $ - $Revision: 1.24 $'); ?> diff --git a/htdocs/admin/commande.php b/htdocs/admin/commande.php index 1ae657fd1c9..ff58534b947 100644 --- a/htdocs/admin/commande.php +++ b/htdocs/admin/commande.php @@ -18,15 +18,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/commande.php * \ingroup commande * \brief Setup page of module Order - * \version $Id$ + * \version $Id: commande.php,v 1.75 2011/07/31 22:23:25 eldy Exp $ */ require("../main.inc.php"); @@ -522,5 +521,5 @@ print ''; print '
'; -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:25 $ - $Revision: 1.75 $'); ?> diff --git a/htdocs/admin/company.php b/htdocs/admin/company.php index 358902abc0a..f75c23aac70 100644 --- a/htdocs/admin/company.php +++ b/htdocs/admin/company.php @@ -15,15 +15,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/company.php * \ingroup company * \brief Setup page to configure company/foundation - * \version $Id: company.php,v 1.93 2011/07/18 18:09:04 eldy Exp $ + * \version $Id: company.php,v 1.94 2011/07/31 22:23:24 eldy Exp $ */ require("../main.inc.php"); @@ -983,6 +982,6 @@ else $db->close(); -llxFooter('$Date: 2011/07/18 18:09:04 $ - $Revision: 1.93 $'); +llxFooter('$Date: 2011/07/31 22:23:24 $ - $Revision: 1.94 $'); ?> \ No newline at end of file diff --git a/htdocs/admin/compta.php b/htdocs/admin/compta.php index b3fa65f9d2f..95262d062f0 100644 --- a/htdocs/admin/compta.php +++ b/htdocs/admin/compta.php @@ -14,15 +14,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/compta.php * \ingroup compta * \brief Page to setup accountancy module - * \version $Id$ + * \version $Id: compta.php,v 1.33 2011/07/31 22:23:22 eldy Exp $ */ require("../main.inc.php"); @@ -187,5 +186,5 @@ if ($num) $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:22 $ - $Revision: 1.33 $'); ?> diff --git a/htdocs/admin/confexped.php b/htdocs/admin/confexped.php index 31bb2c2a2b6..8e20d4033fb 100644 --- a/htdocs/admin/confexped.php +++ b/htdocs/admin/confexped.php @@ -14,15 +14,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/confexped.php * \ingroup produit * \brief Page to setup sending module - * \version $Id$ + * \version $Id: confexped.php,v 1.22 2011/07/31 22:23:21 eldy Exp $ */ require("../main.inc.php"); diff --git a/htdocs/admin/const.php b/htdocs/admin/const.php index 9cea6beda48..bf80fe1b12e 100644 --- a/htdocs/admin/const.php +++ b/htdocs/admin/const.php @@ -14,15 +14,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/const.php * \ingroup setup * \brief Admin page to define miscellaneous constants - * \version $Id$ + * \version $Id: const.php,v 1.70 2011/07/31 22:23:21 eldy Exp $ */ require("../main.inc.php"); @@ -280,5 +279,5 @@ print "\n"; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:21 $ - $Revision: 1.70 $'); ?> diff --git a/htdocs/admin/contract.php b/htdocs/admin/contract.php index e3732563e71..d6a5b4ce280 100644 --- a/htdocs/admin/contract.php +++ b/htdocs/admin/contract.php @@ -12,15 +12,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/contract.php * \ingroup contract * \brief Setup page of module Contracts - * \version $Id$ + * \version $Id: contract.php,v 1.5 2011/07/31 22:23:25 eldy Exp $ */ require("../main.inc.php"); @@ -174,5 +173,5 @@ if (is_resource($handle)) print '
'; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:25 $ - $Revision: 1.5 $'); ?> diff --git a/htdocs/admin/delais.php b/htdocs/admin/delais.php index 1640f31ef7c..49b7ef73cf0 100644 --- a/htdocs/admin/delais.php +++ b/htdocs/admin/delais.php @@ -15,14 +15,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/delais.php * \brief Page to setup late delays - * \version $Id$ + * \version $Id: delais.php,v 1.32 2011/07/31 22:23:21 eldy Exp $ */ require("../main.inc.php"); @@ -372,5 +371,5 @@ print ''; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:21 $ - $Revision: 1.32 $'); ?> diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index 888d2b5b259..961ceaf9af4 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -17,15 +17,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/dict.php * \ingroup setup * \brief Page to administer data tables - * \version $Id: dict.php,v 1.145 2011/06/25 09:50:56 eldy Exp $ + * \version $Id: dict.php,v 1.146 2011/07/31 22:23:22 eldy Exp $ */ require("../main.inc.php"); @@ -897,7 +896,7 @@ print '
'; $db->close(); -llxFooter('$Date: 2011/06/25 09:50:56 $ - $Revision: 1.145 $'); +llxFooter('$Date: 2011/07/31 22:23:22 $ - $Revision: 1.146 $'); /** diff --git a/htdocs/admin/dons.php b/htdocs/admin/dons.php index 88beb285bbb..a1cdc51b80b 100644 --- a/htdocs/admin/dons.php +++ b/htdocs/admin/dons.php @@ -12,15 +12,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/dons.php * \ingroup dons * \brief Page d'administration/configuration du module Dons - * \version $Id$ + * \version $Id: dons.php,v 1.26 2011/07/31 22:23:21 eldy Exp $ */ require("../main.inc.php"); require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php"); @@ -276,5 +275,5 @@ print "
"; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:21 $ - $Revision: 1.26 $'); ?> diff --git a/htdocs/admin/events.php b/htdocs/admin/events.php index 13186d2988c..354f0d236b8 100644 --- a/htdocs/admin/events.php +++ b/htdocs/admin/events.php @@ -12,15 +12,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/events.php * \ingroup core * \brief Log event setup page - * \version $Id: events.php,v 1.20 2011/07/18 23:30:56 eldy Exp $ + * \version $Id: events.php,v 1.21 2011/07/31 22:23:24 eldy Exp $ */ require("../main.inc.php"); @@ -124,5 +123,5 @@ dol_htmloutput_mesg($mesg); $db->close(); -llxFooter('$Date: 2011/07/18 23:30:56 $ - $Revision: 1.20 $'); +llxFooter('$Date: 2011/07/31 22:23:24 $ - $Revision: 1.21 $'); ?> diff --git a/htdocs/admin/expedition.php b/htdocs/admin/expedition.php index 6b5e6b7677b..f7aa052c51f 100644 --- a/htdocs/admin/expedition.php +++ b/htdocs/admin/expedition.php @@ -18,15 +18,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/expedition.php * \ingroup expedition * \brief Page d'administration/configuration du module Expedition - * \version $Id$ + * \version $Id: expedition.php,v 1.70 2011/07/31 22:23:22 eldy Exp $ */ require("../main.inc.php"); diff --git a/htdocs/admin/external_rss.php b/htdocs/admin/external_rss.php index 6f69d08ef78..4177432bf2f 100644 --- a/htdocs/admin/external_rss.php +++ b/htdocs/admin/external_rss.php @@ -17,15 +17,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/external_rss.php * \ingroup external_rss * \brief Page d'administration/configuration du module ExternalRss - * \version $Id$ + * \version $Id: external_rss.php,v 1.48 2011/07/31 22:23:21 eldy Exp $ */ require("../main.inc.php"); @@ -317,5 +316,5 @@ print ''."\n"; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:21 $ - $Revision: 1.48 $'); ?> diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php index 9cc8ee4191e..a0a819549f2 100644 --- a/htdocs/admin/facture.php +++ b/htdocs/admin/facture.php @@ -16,15 +16,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/facture.php * \ingroup facture * \brief Page to setup invoice module - * \version $Id$ + * \version $Id: facture.php,v 1.150 2011/07/31 22:23:25 eldy Exp $ */ require("../main.inc.php"); @@ -719,5 +718,5 @@ print "\n"; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:25 $ - $Revision: 1.150 $'); ?> diff --git a/htdocs/admin/fckeditor.php b/htdocs/admin/fckeditor.php index 6fe4dd777e5..389aa530a91 100644 --- a/htdocs/admin/fckeditor.php +++ b/htdocs/admin/fckeditor.php @@ -13,17 +13,16 @@ * 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. + * along with this program. If not, see . * - * $Id$ + * $Id: fckeditor.php,v 1.32 2011/07/31 22:23:24 eldy Exp $ */ /** * \file htdocs/admin/fckeditor.php * \ingroup fckeditor * \brief Page d'activation du module FCKeditor dans les autres modules - * \version $Revision$ + * \version $Revision: 1.32 $ */ require("../main.inc.php"); @@ -176,5 +175,5 @@ print $conf->global->FCKEDITOR_TEST; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:24 $ - $Revision: 1.32 $'); ?> \ No newline at end of file diff --git a/htdocs/admin/fichinter.php b/htdocs/admin/fichinter.php index 06d41c5a071..1ac929326cc 100644 --- a/htdocs/admin/fichinter.php +++ b/htdocs/admin/fichinter.php @@ -17,15 +17,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/fichinter.php * \ingroup fichinter * \brief Setup page of module Interventions - * \version $Id$ + * \version $Id: fichinter.php,v 1.62 2011/07/31 22:23:22 eldy Exp $ */ require("../main.inc.php"); @@ -453,5 +452,5 @@ print '
'; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:22 $ - $Revision: 1.62 $'); ?> diff --git a/htdocs/admin/fournisseur.php b/htdocs/admin/fournisseur.php index 49efb405c11..3b6047e5330 100644 --- a/htdocs/admin/fournisseur.php +++ b/htdocs/admin/fournisseur.php @@ -18,15 +18,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/fournisseur.php * \ingroup fournisseur * \brief Page d'administration-configuration du module Fournisseur - * \version $Id$ + * \version $Id: fournisseur.php,v 1.63 2011/07/31 22:23:21 eldy Exp $ */ require("../main.inc.php"); @@ -618,5 +617,5 @@ print '' print "\n"; print ''; -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:21 $ - $Revision: 1.63 $'); ?> diff --git a/htdocs/admin/geoipmaxmind.php b/htdocs/admin/geoipmaxmind.php index 1e372fea36a..34901f47a7e 100644 --- a/htdocs/admin/geoipmaxmind.php +++ b/htdocs/admin/geoipmaxmind.php @@ -12,15 +12,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/geoipmaxmind.php * \ingroup geoipmaxmind * \brief Setup page for geoipmaxmind module - * \version $Id$ + * \version $Id: geoipmaxmind.php,v 1.3 2011/07/31 22:23:22 eldy Exp $ */ require("../main.inc.php"); @@ -128,5 +127,5 @@ if ($geoip) $geoip->close(); } -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:22 $ - $Revision: 1.3 $'); ?> diff --git a/htdocs/admin/ihm.php b/htdocs/admin/ihm.php index 8bd64e46680..c4e94a04ecd 100644 --- a/htdocs/admin/ihm.php +++ b/htdocs/admin/ihm.php @@ -14,14 +14,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/ihm.php * \brief Page to setup GUI display options - * \version $Id$ + * \version $Id: ihm.php,v 1.130 2011/07/31 22:23:24 eldy Exp $ */ require("../main.inc.php"); @@ -527,5 +526,5 @@ else // Show $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:24 $ - $Revision: 1.130 $'); ?> diff --git a/htdocs/admin/index.php b/htdocs/admin/index.php index 8a8b1bf26a0..212ade6c749 100644 --- a/htdocs/admin/index.php +++ b/htdocs/admin/index.php @@ -13,14 +13,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/index.php * \brief Page d'accueil de l'espace administration/configuration - * \version $Id$ + * \version $Id: index.php,v 1.83 2011/07/31 22:23:25 eldy Exp $ */ require("../main.inc.php"); @@ -85,5 +84,5 @@ print ''; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:25 $ - $Revision: 1.83 $'); ?> diff --git a/htdocs/admin/ldap.php b/htdocs/admin/ldap.php index 7eef08c1d4e..a98b21c05f1 100644 --- a/htdocs/admin/ldap.php +++ b/htdocs/admin/ldap.php @@ -16,15 +16,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/ldap.php * \ingroup ldap * \brief Page d'administration/configuration du module Ldap - * \version $Id$ + * \version $Id: ldap.php,v 1.84 2011/07/31 22:23:24 eldy Exp $ */ require("../main.inc.php"); @@ -320,5 +319,5 @@ if (function_exists("ldap_connect")) $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:24 $ - $Revision: 1.84 $'); ?> diff --git a/htdocs/admin/ldap_contacts.php b/htdocs/admin/ldap_contacts.php index 15ac4598669..6515a15010c 100644 --- a/htdocs/admin/ldap_contacts.php +++ b/htdocs/admin/ldap_contacts.php @@ -16,15 +16,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/ldap_contacts.php * \ingroup ldap * \brief Page d'administration/configuration du module Ldap - * \version $Id$ + * \version $Id: ldap_contacts.php,v 1.38 2011/07/31 22:23:26 eldy Exp $ */ require("../main.inc.php"); @@ -324,6 +323,6 @@ if (function_exists("ldap_connect")) $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:26 $ - $Revision: 1.38 $'); ?> diff --git a/htdocs/admin/ldap_groups.php b/htdocs/admin/ldap_groups.php index 45d5d58c8c1..0ec298c9849 100644 --- a/htdocs/admin/ldap_groups.php +++ b/htdocs/admin/ldap_groups.php @@ -16,15 +16,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/ldap_groups.php * \ingroup ldap * \brief Page to setup LDAP synchronization for groups - * \version $Id$ + * \version $Id: ldap_groups.php,v 1.34 2011/07/31 22:23:22 eldy Exp $ */ require("../main.inc.php"); @@ -249,5 +248,5 @@ if (function_exists("ldap_connect")) $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:22 $ - $Revision: 1.34 $'); ?> diff --git a/htdocs/admin/ldap_members.php b/htdocs/admin/ldap_members.php index 6f643354083..e7670a9239b 100644 --- a/htdocs/admin/ldap_members.php +++ b/htdocs/admin/ldap_members.php @@ -16,15 +16,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/ldap_members.php * \ingroup ldap member * \brief Page d'administration/configuration du module Ldap adherent - * \version $Id$ + * \version $Id: ldap_members.php,v 1.35 2011/07/31 22:23:22 eldy Exp $ */ require("../main.inc.php"); @@ -432,5 +431,5 @@ if (function_exists("ldap_connect")) $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:22 $ - $Revision: 1.35 $'); ?> diff --git a/htdocs/admin/ldap_users.php b/htdocs/admin/ldap_users.php index 391d5087901..44e8ed3d842 100644 --- a/htdocs/admin/ldap_users.php +++ b/htdocs/admin/ldap_users.php @@ -16,15 +16,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/ldap_users.php * \ingroup ldap * \brief Page d'administration/configuration du module Ldap - * \version $Id$ + * \version $Id: ldap_users.php,v 1.37 2011/07/31 22:23:22 eldy Exp $ */ require("../main.inc.php"); @@ -341,5 +340,5 @@ if (function_exists("ldap_connect")) $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:22 $ - $Revision: 1.37 $'); ?> diff --git a/htdocs/admin/limits.php b/htdocs/admin/limits.php index e80f2302200..28f7148889b 100644 --- a/htdocs/admin/limits.php +++ b/htdocs/admin/limits.php @@ -14,14 +14,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/limits.php * \brief Page de configuration des limites - * \version $Id$ + * \version $Id: limits.php,v 1.22 2011/07/31 22:23:21 eldy Exp $ */ require("../main.inc.php"); @@ -210,5 +209,5 @@ print "   ->   ".$langs->trans("TotalPriceAfterRounding").": ".$tmparr $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:21 $ - $Revision: 1.22 $'); ?> diff --git a/htdocs/admin/livraison.php b/htdocs/admin/livraison.php index 8e8e48c9304..681ce076028 100644 --- a/htdocs/admin/livraison.php +++ b/htdocs/admin/livraison.php @@ -17,15 +17,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/livraison.php * \ingroup livraison * \brief Page d'administration/configuration du module Livraison - * \version $Id$ + * \version $Id: livraison.php,v 1.57 2011/07/31 22:23:21 eldy Exp $ */ require("../main.inc.php"); require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php"); diff --git a/htdocs/admin/mailing.php b/htdocs/admin/mailing.php index 0156ca2e7d7..4ae91191620 100644 --- a/htdocs/admin/mailing.php +++ b/htdocs/admin/mailing.php @@ -13,15 +13,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/mailing.php * \ingroup mailing * \brief Page to setup emailing module - * \version $Id$ + * \version $Id: mailing.php,v 1.14 2011/07/31 22:23:25 eldy Exp $ */ require("../main.inc.php"); @@ -96,6 +95,6 @@ print ''; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:25 $ - $Revision: 1.14 $'); ?> diff --git a/htdocs/admin/mails.php b/htdocs/admin/mails.php index c0b1d6f2b30..1c6949fcc94 100644 --- a/htdocs/admin/mails.php +++ b/htdocs/admin/mails.php @@ -13,14 +13,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/mails.php * \brief Page to setup emails sending - * \version $Id: mails.php,v 1.74 2011/07/20 13:01:04 eldy Exp $ + * \version $Id: mails.php,v 1.75 2011/07/31 22:23:22 eldy Exp $ */ require("../main.inc.php"); @@ -747,5 +746,5 @@ else $db->close(); -llxFooter('$Date: 2011/07/20 13:01:04 $ - $Revision: 1.74 $'); +llxFooter('$Date: 2011/07/31 22:23:22 $ - $Revision: 1.75 $'); ?> diff --git a/htdocs/admin/menus.php b/htdocs/admin/menus.php index d23654fa14e..d6d13d2a5a4 100644 --- a/htdocs/admin/menus.php +++ b/htdocs/admin/menus.php @@ -14,15 +14,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/menus.php * \ingroup core * \brief Page to setup menu manager to use - * \version $Id$ + * \version $Id: menus.php,v 1.51 2011/07/31 22:23:23 eldy Exp $ */ require("../main.inc.php"); @@ -249,5 +248,5 @@ if (! isset($_GET["action"]) || $_GET["action"] != 'edit') $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:23 $ - $Revision: 1.51 $'); ?> diff --git a/htdocs/admin/menus/edit.php b/htdocs/admin/menus/edit.php index 0773f3f3a48..91a69317366 100644 --- a/htdocs/admin/menus/edit.php +++ b/htdocs/admin/menus/edit.php @@ -14,15 +14,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/menus/edit.php * \ingroup core * \brief Tool to edit menus - * \version $Id$ + * \version $Id: edit.php,v 1.42 2011/07/31 22:23:15 eldy Exp $ */ require("../../main.inc.php"); @@ -419,5 +418,5 @@ elseif (isset($_GET["action"]) && $_GET["action"] == 'edit') $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:15 $ - $Revision: 1.42 $'); ?> diff --git a/htdocs/admin/menus/index.php b/htdocs/admin/menus/index.php index 256103ca13e..31edc8c2336 100644 --- a/htdocs/admin/menus/index.php +++ b/htdocs/admin/menus/index.php @@ -14,15 +14,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/menus/index.php * \ingroup core * \brief Index page for menu editor - * \version $Id$ + * \version $Id: index.php,v 1.45 2011/07/31 22:23:15 eldy Exp $ */ require("../../main.inc.php"); @@ -343,4 +342,4 @@ $db->close(); print '
'; -llxFooter('$Date$ - $Revision$'); \ No newline at end of file +llxFooter('$Date: 2011/07/31 22:23:15 $ - $Revision: 1.45 $'); \ No newline at end of file diff --git a/htdocs/admin/menus/menu.js.php b/htdocs/admin/menus/menu.js.php index 135e36767d0..42bdc73e91f 100644 --- a/htdocs/admin/menus/menu.js.php +++ b/htdocs/admin/menus/menu.js.php @@ -12,14 +12,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/menus/menu.js.php * \brief File for js menu - * \version $Id$ + * \version $Id: menu.js.php,v 1.9 2011/07/31 22:23:15 eldy Exp $ */ diff --git a/htdocs/admin/menus/other.php b/htdocs/admin/menus/other.php index a43de052c95..a3f001f8191 100644 --- a/htdocs/admin/menus/other.php +++ b/htdocs/admin/menus/other.php @@ -12,15 +12,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/menus/other.php * \ingroup core * \brief Menus options setup - * \version $Id$ + * \version $Id: other.php,v 1.6 2011/07/31 22:23:15 eldy Exp $ */ require("../../main.inc.php"); @@ -143,5 +142,5 @@ print ''; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:15 $ - $Revision: 1.6 $'); ?> diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index 462b86f8516..671bd69a0e4 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -3,7 +3,7 @@ * Copyright (C) 2003 Jean-Louis Bergamo * Copyright (C) 2004-2010 Laurent Destailleur * Copyright (C) 2004 Eric Seigne - * Copyright (C) 2005-2010 Regis Houssin + * Copyright (C) 2005-2011 Regis Houssin * * 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 @@ -16,14 +16,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/modules.php * \brief Page to activate/disable all modules - * \version $Id$ + * \version $Id: modules.php,v 1.157 2011/08/01 12:25:15 hregis Exp $ */ require("../main.inc.php"); @@ -80,12 +79,35 @@ $modules = array(); $orders = array(); $categ = array(); $dirmod = array(); +$modulesdir = array(); $i = 0; // is a sequencer of modules found $j = 0; // j is module number. Automatically affected if module number not defined. -foreach ($conf->file->dol_document_root as $dirroot) -{ - $dir = $dirroot . "/includes/modules/"; +foreach ($conf->file->dol_document_root as $type => $dirroot) +{ + $modulesdir[] = $dirroot . "/includes/modules/"; + + if ($type == 'alt') + { + $althandle=@opendir($dirroot); + if (is_resource($althandle)) + { + while (($file = readdir($althandle))!==false) + { + if (is_dir($dirroot.'/'.$file) && substr($file, 0, 1) <> '.' && substr($file, 0, 3) <> 'CVS' && $file != 'includes') + { + if (is_dir($dirroot . '/' . $file . '/includes/modules/')) + { + $modulesdir[] = $dirroot . '/' . $file . '/includes/modules/'; + } + } + } + } + } +} + +foreach ($modulesdir as $dir) +{ // Load modules attributes in arrays (name, numero, orders) from dir directory //print $dir."\n
"; dol_syslog("Scan directory ".$dir." for modules"); @@ -450,5 +472,5 @@ print ''; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/08/01 12:25:15 $ - $Revision: 1.157 $'); ?> diff --git a/htdocs/admin/notification.php b/htdocs/admin/notification.php index bb15b450ad7..d61d2f01842 100644 --- a/htdocs/admin/notification.php +++ b/htdocs/admin/notification.php @@ -13,15 +13,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/notification.php * \ingroup notification * \brief Page to setup notification module - * \version $Id$ + * \version $Id: notification.php,v 1.13 2011/07/31 22:23:25 eldy Exp $ */ require("../main.inc.php"); @@ -122,6 +121,6 @@ print ''; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:25 $ - $Revision: 1.13 $'); ?> diff --git a/htdocs/admin/osc-languages.php b/htdocs/admin/osc-languages.php index 4e918746296..ed913b467fd 100644 --- a/htdocs/admin/osc-languages.php +++ b/htdocs/admin/osc-languages.php @@ -12,15 +12,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/osc-languages.php * \ingroup boutique * \brief Page d'administration/configuration du module Boutique - * \version $Id$ + * \version $Id: osc-languages.php,v 1.16 2011/07/31 22:23:22 eldy Exp $ */ require("../main.inc.php"); @@ -90,5 +89,5 @@ print ""; $db->close(); -llxFooter("Dernière modification $Date$ révision $Revision$"); +llxFooter("Dernière modification $Date: 2011/07/31 22:23:22 $ révision $Revision: 1.16 $"); ?> diff --git a/htdocs/admin/perms.php b/htdocs/admin/perms.php index 71619df5e72..6af9b54e7f0 100644 --- a/htdocs/admin/perms.php +++ b/htdocs/admin/perms.php @@ -14,15 +14,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/perms.php * \ingroup core * \brief Page d'administration/configuration des permissions par defaut - * \version $Id$ + * \version $Id: perms.php,v 1.43 2011/08/01 12:53:37 hregis Exp $ */ require("../main.inc.php"); @@ -77,10 +76,34 @@ $db->begin(); // Charge les modules soumis a permissions $modules = array(); -foreach ($conf->file->dol_document_root as $dirroot) -{ - $dir = $dirroot . "/includes/modules/"; +$modulesdir = array(); +foreach ($conf->file->dol_document_root as $type => $dirroot) +{ + $modulesdir[] = $dirroot . "/includes/modules/"; + + if ($type == 'alt') + { + $handle=@opendir($dirroot); + if (is_resource($handle)) + { + while (($file = readdir($handle))!==false) + { + if (is_dir($dirroot.'/'.$file) && substr($file, 0, 1) <> '.' && substr($file, 0, 3) <> 'CVS' && $file != 'includes') + { + if (is_dir($dirroot . '/' . $file . '/includes/modules/')) + { + $modulesdir[] = $dirroot . '/' . $file . '/includes/modules/'; + } + } + } + closedir($handle); + } + } +} + +foreach ($modulesdir as $dir) +{ // Load modules attributes in arrays (name, numero, orders) from dir directory //print $dir."\n
"; $handle=@opendir($dir); @@ -195,5 +218,5 @@ print ''; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/08/01 12:53:37 $ - $Revision: 1.43 $'); ?> diff --git a/htdocs/admin/prelevement.php b/htdocs/admin/prelevement.php index 6f5e5abd37e..e020da505e3 100644 --- a/htdocs/admin/prelevement.php +++ b/htdocs/admin/prelevement.php @@ -15,15 +15,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/prelevement.php * \ingroup prelevement * \brief Page configuration des prelevements - * \version $Id$ + * \version $Id: prelevement.php,v 1.18 2011/07/31 22:23:25 eldy Exp $ */ require('../main.inc.php'); @@ -246,5 +245,5 @@ print ''; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:25 $ - $Revision: 1.18 $'); ?> diff --git a/htdocs/admin/project.php b/htdocs/admin/project.php index 74c1f84ec47..2551509914e 100644 --- a/htdocs/admin/project.php +++ b/htdocs/admin/project.php @@ -12,15 +12,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/project.php * \ingroup project * \brief Page d'administration-configuration du module Projet - * \version $Id$ + * \version $Id: project.php,v 1.14 2011/07/31 22:23:25 eldy Exp $ */ require("../main.inc.php"); @@ -380,5 +379,5 @@ if (is_resource($handle)) print '
'; -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:25 $ - $Revision: 1.14 $'); ?> diff --git a/htdocs/admin/propale.php b/htdocs/admin/propale.php index 8f2d3d251ca..60d5c4516ed 100644 --- a/htdocs/admin/propale.php +++ b/htdocs/admin/propale.php @@ -18,15 +18,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/propale.php * \ingroup propale * \brief Page d'administration/configuration du module Propale - * \version $Id$ + * \version $Id: propale.php,v 1.108 2011/07/31 22:23:25 eldy Exp $ */ require("../main.inc.php"); @@ -544,5 +543,5 @@ print "\n
"; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:25 $ - $Revision: 1.108 $'); ?> diff --git a/htdocs/admin/proxy.php b/htdocs/admin/proxy.php index 5e294827400..f02e3d6203a 100755 --- a/htdocs/admin/proxy.php +++ b/htdocs/admin/proxy.php @@ -20,7 +20,7 @@ * \file htdocs/admin/proxy.php * \ingroup core * \brief Page setup proxy to use for external web access - * \version $Id$ + * \version $Id: proxy.php,v 1.6 2011/07/29 21:04:27 eldy Exp $ */ require("../main.inc.php"); @@ -201,9 +201,10 @@ print ''; print '
'; -if ($mesg) print $mesg.'
'; +dol_htmloutput_mesg($mesg); + $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/29 21:04:27 $ - $Revision: 1.6 $'); ?> diff --git a/htdocs/admin/security.php b/htdocs/admin/security.php index 62dcf2643a3..2cf7976a76b 100644 --- a/htdocs/admin/security.php +++ b/htdocs/admin/security.php @@ -13,15 +13,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/security.php * \ingroup setup * \brief Page de configuration du module securite - * \version $Id$ + * \version $Id: security.php,v 1.56 2011/07/31 22:23:24 eldy Exp $ */ require("../main.inc.php"); @@ -432,5 +431,5 @@ print ''; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:24 $ - $Revision: 1.56 $'); ?> diff --git a/htdocs/admin/security_other.php b/htdocs/admin/security_other.php index f84a46a7a27..c0aaaa86213 100644 --- a/htdocs/admin/security_other.php +++ b/htdocs/admin/security_other.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2004-2011 Laurent Destailleur * Copyright (C) 2005-2010 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -21,7 +21,7 @@ * \file htdocs/admin/security_other.php * \ingroup core * \brief Security options setup - * \version $Id$ + * \version $Id: security_other.php,v 1.40 2011/07/29 21:04:27 eldy Exp $ */ require("../main.inc.php"); @@ -79,19 +79,6 @@ if ($_POST["sendit"] && ! empty($conf->global->MAIN_UPLOAD_DOC)) } } -if ($_GET["action"] == 'set_main_upload_doc') -{ - if (! dolibarr_set_const($db, 'MAIN_UPLOAD_DOC',$_POST["MAIN_UPLOAD_DOC"],'chaine',0,'',$conf->entity)) - { - dol_print_error($db); - } - else - { - Header("Location: ".$_SERVER["PHP_SELF"]); - exit; - } -} - if ($_GET["action"] == 'activate_captcha') { dolibarr_set_const($db, "MAIN_SECURITY_ENABLECAPTCHA", '1','chaine',0,'',$conf->entity); @@ -120,30 +107,32 @@ else if ($_GET["action"] == 'disable_advancedperms') if ($_GET["action"] == 'MAIN_SESSION_TIMEOUT') { - dolibarr_set_const($db, "MAIN_SESSION_TIMEOUT", $_POST["MAIN_SESSION_TIMEOUT"],'chaine',0,'',$conf->entity); - Header("Location: security_other.php"); - exit; + if (! dolibarr_set_const($db, "MAIN_SESSION_TIMEOUT", $_POST["MAIN_SESSION_TIMEOUT"],'chaine',0,'',$conf->entity)) dol_print_error($db); + else $mesg=$langs->trans("RecordModifiedSuccessfully"); +} + +if ($_GET["action"] == 'MAIN_UPLOAD_DOC') +{ + if (! dolibarr_set_const($db, 'MAIN_UPLOAD_DOC',$_POST["MAIN_UPLOAD_DOC"],'chaine',0,'',$conf->entity)) dol_print_error($db); + else $mesg=$langs->trans("RecordModifiedSuccessfully"); } if ($_GET["action"] == 'MAIN_UMASK') { - dolibarr_set_const($db, "MAIN_UMASK", $_POST["MAIN_UMASK"],'chaine',0,'',$conf->entity); - Header("Location: security_other.php"); - exit; + if (! dolibarr_set_const($db, "MAIN_UMASK", $_POST["MAIN_UMASK"],'chaine',0,'',$conf->entity)) dol_print_error($db); + else $mesg=$langs->trans("RecordModifiedSuccessfully"); } if ($_GET["action"] == 'MAIN_ANTIVIRUS_COMMAND') { - dolibarr_set_const($db, "MAIN_ANTIVIRUS_COMMAND", $_POST["MAIN_ANTIVIRUS_COMMAND"],'chaine',0,'',$conf->entity); - Header("Location: security_other.php"); - exit; + if (! dolibarr_set_const($db, "MAIN_ANTIVIRUS_COMMAND", $_POST["MAIN_ANTIVIRUS_COMMAND"],'chaine',0,'',$conf->entity)) dol_print_error($db); + else $mesg=$langs->trans("RecordModifiedSuccessfully"); } if ($_GET["action"] == 'MAIN_ANTIVIRUS_PARAM') { - dolibarr_set_const($db, "MAIN_ANTIVIRUS_PARAM", $_POST["MAIN_ANTIVIRUS_PARAM"],'chaine',0,'',$conf->entity); - Header("Location: security_other.php"); - exit; + if (! dolibarr_set_const($db, "MAIN_ANTIVIRUS_PARAM", $_POST["MAIN_ANTIVIRUS_PARAM"],'chaine',0,'',$conf->entity)) dol_print_error($db); + else $mesg=$langs->trans("RecordModifiedSuccessfully"); } @@ -266,7 +255,7 @@ print ''.$langs->trans("Value").''; print ' '; print ''; -print '
'; +print ''; print ''; print ''; print ''.$langs->trans("MaxSizeForUploadedFiles").'.'; @@ -349,7 +338,7 @@ print ''; // Form to test upload -if ($mesg) print $mesg; +dol_htmloutput_mesg($mesg); // Affiche formulaire upload print '
'; @@ -359,5 +348,5 @@ $formfile->form_attach_new_file(DOL_URL_ROOT.'/admin/security_other.php',$langs- $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/29 21:04:27 $ - $Revision: 1.40 $'); ?> diff --git a/htdocs/admin/sms.php b/htdocs/admin/sms.php index b55954eef2e..342289a6991 100755 --- a/htdocs/admin/sms.php +++ b/htdocs/admin/sms.php @@ -13,14 +13,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/sms.php * \brief Page to setup emails sending - * \version $Id: sms.php,v 1.8 2011/07/18 11:31:54 eldy Exp $ + * \version $Id: sms.php,v 1.9 2011/07/31 22:23:22 eldy Exp $ */ require("../main.inc.php"); @@ -347,5 +346,5 @@ else $db->close(); -llxFooter('$Date: 2011/07/18 11:31:54 $ - $Revision: 1.8 $'); +llxFooter('$Date: 2011/07/31 22:23:22 $ - $Revision: 1.9 $'); ?> diff --git a/htdocs/admin/societe.php b/htdocs/admin/societe.php index 37fe17f7311..46cc9b3c1c6 100644 --- a/htdocs/admin/societe.php +++ b/htdocs/admin/societe.php @@ -15,15 +15,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/societe.php * \ingroup company * \brief Third party module setup page - * \version $Id: societe.php,v 1.60 2011/07/04 07:38:22 eldy Exp $ + * \version $Id: societe.php,v 1.61 2011/07/31 22:23:23 eldy Exp $ */ require("../main.inc.php"); @@ -499,5 +498,5 @@ dol_fiche_end(); $db->close(); -llxFooter('$Date: 2011/07/04 07:38:22 $ - $Revision: 1.60 $'); +llxFooter('$Date: 2011/07/31 22:23:23 $ - $Revision: 1.61 $'); ?> diff --git a/htdocs/admin/societe_extrafields.php b/htdocs/admin/societe_extrafields.php index 61c61669816..af78847e26a 100755 --- a/htdocs/admin/societe_extrafields.php +++ b/htdocs/admin/societe_extrafields.php @@ -14,15 +14,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/societe_extrafields.php * \ingroup societe * \brief Page to setup extra fields of third party - * \version $Id: societe_extrafields.php,v 1.5 2011/07/05 20:43:25 eldy Exp $ + * \version $Id: societe_extrafields.php,v 1.6 2011/07/31 22:23:21 eldy Exp $ */ require("../main.inc.php"); @@ -312,5 +311,5 @@ if ($_GET["attrname"] && $action == 'edit') $db->close(); -llxFooter('$Date: 2011/07/05 20:43:25 $ - $Revision: 1.5 $'); +llxFooter('$Date: 2011/07/31 22:23:21 $ - $Revision: 1.6 $'); ?> diff --git a/htdocs/admin/stock.php b/htdocs/admin/stock.php index 2f4cac964e7..07384d67064 100644 --- a/htdocs/admin/stock.php +++ b/htdocs/admin/stock.php @@ -14,15 +14,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/stock.php * \ingroup stock * \brief Page d'administration/configuration du module gestion de stock - * \version $Id$ + * \version $Id: stock.php,v 1.24 2011/07/31 22:23:22 eldy Exp $ */ require("../main.inc.php"); require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php"); @@ -239,5 +238,5 @@ if ($conf->fournisseur->enabled) print ''; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:22 $ - $Revision: 1.24 $'); ?> diff --git a/htdocs/admin/syslog.php b/htdocs/admin/syslog.php index 52c10117b4d..018460be9ff 100644 --- a/htdocs/admin/syslog.php +++ b/htdocs/admin/syslog.php @@ -14,15 +14,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/syslog.php * \ingroup syslog * \brief Setup page for syslog module - * \version $Id$ + * \version $Id: syslog.php,v 1.32 2011/07/31 22:23:26 eldy Exp $ */ require("../main.inc.php"); @@ -165,5 +164,5 @@ print ''; print ''; print "\n"; -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:26 $ - $Revision: 1.32 $'); ?> diff --git a/htdocs/admin/system/about.php b/htdocs/admin/system/about.php index eae59cda4fe..e17315d5ec6 100644 --- a/htdocs/admin/system/about.php +++ b/htdocs/admin/system/about.php @@ -16,14 +16,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/system/about.php * \brief About Dolibarr File page - * \version $Id$ + * \version $Id: about.php,v 1.5 2011/07/31 22:23:14 eldy Exp $ */ require("../../main.inc.php"); @@ -123,7 +122,7 @@ print ''; print ''; -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:14 $ - $Revision: 1.5 $'); ?> diff --git a/htdocs/admin/system/constall.php b/htdocs/admin/system/constall.php index a505843fcd8..a07b28bd2cf 100644 --- a/htdocs/admin/system/constall.php +++ b/htdocs/admin/system/constall.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2010 Laurent Destailleur + * Copyright (C) 2004-2011 Laurent Destailleur * Copyright (C) 2009 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -21,7 +21,7 @@ /** * \file htdocs/admin/system/constall.php * \brief Page to show all Dolibarr setup (config file and database constants) - * \version $Id$ + * \version $Id: constall.php,v 1.23 2011/07/30 10:23:26 eldy Exp $ */ require("../../main.inc.php"); @@ -44,7 +44,7 @@ llxHeader(); print_fiche_titre($langs->trans("SummaryConst"),'','setup'); -print_titre($langs->trans("ConfigurationFile")); +print_titre($langs->trans("ConfigurationFile").' ('.$conffiletoshowshort.')'); // Parameters in conf.php file $configfileparameters=array( // 'separator', @@ -112,7 +112,7 @@ $i=0; foreach($configfileparameters as $key) { $ignore=0; - + if ($key == 'dolibarr_main_url_root_alt' && empty(${$key})) $ignore=1; if ($key == 'dolibarr_main_document_root_alt' && empty(${$key})) $ignore=1; diff --git a/htdocs/admin/system/database-tables-contraintes.php b/htdocs/admin/system/database-tables-contraintes.php index 3aeaf52f0ce..40437472081 100644 --- a/htdocs/admin/system/database-tables-contraintes.php +++ b/htdocs/admin/system/database-tables-contraintes.php @@ -15,14 +15,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/system/database-tables-contraintes.php * \brief Page d'info des contraintes de la base - * \version $Id$ + * \version $Id: database-tables-contraintes.php,v 1.17 2011/07/31 22:23:14 eldy Exp $ */ require("../../main.inc.php"); @@ -117,5 +116,5 @@ else print ''; } -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:14 $ - $Revision: 1.17 $'); ?> diff --git a/htdocs/admin/system/database-tables.php b/htdocs/admin/system/database-tables.php index 985b95a8481..6ed4096bad8 100644 --- a/htdocs/admin/system/database-tables.php +++ b/htdocs/admin/system/database-tables.php @@ -15,14 +15,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/system/database-tables.php * \brief Page d'infos des tables de la base - * \version $Id$ + * \version $Id: database-tables.php,v 1.17 2011/07/31 22:23:14 eldy Exp $ */ require("../../main.inc.php"); @@ -170,5 +169,5 @@ else } } -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:14 $ - $Revision: 1.17 $'); ?> diff --git a/htdocs/admin/system/database.php b/htdocs/admin/system/database.php index bfde1208f9a..5caec904b89 100644 --- a/htdocs/admin/system/database.php +++ b/htdocs/admin/system/database.php @@ -15,14 +15,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/system/database.php * \brief Page with system information of database - * \version $Id$ + * \version $Id: database.php,v 1.28 2011/07/31 22:23:14 eldy Exp $ */ require("../../main.inc.php"); @@ -137,5 +136,5 @@ else } } -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:14 $ - $Revision: 1.28 $'); ?> diff --git a/htdocs/admin/system/dbtable.php b/htdocs/admin/system/dbtable.php index 086b41639ab..27e85a6f7e4 100644 --- a/htdocs/admin/system/dbtable.php +++ b/htdocs/admin/system/dbtable.php @@ -15,14 +15,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/system/dbtable.php * \brief Page d'info des contraintes d'une table - * \version $Id$ + * \version $Id: dbtable.php,v 1.12 2011/07/31 22:23:14 eldy Exp $ */ require("../../main.inc.php"); @@ -133,5 +132,5 @@ else } } -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:14 $ - $Revision: 1.12 $'); ?> diff --git a/htdocs/admin/system/dolibarr.php b/htdocs/admin/system/dolibarr.php index 29544b85be1..bde6afda98b 100644 --- a/htdocs/admin/system/dolibarr.php +++ b/htdocs/admin/system/dolibarr.php @@ -13,14 +13,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/system/dolibarr.php * \brief Page to show Dolibarr informations - * \version $Id: dolibarr.php,v 1.58 2011/07/13 13:15:17 eldy Exp $ + * \version $Id: dolibarr.php,v 1.59 2011/07/31 22:23:14 eldy Exp $ */ require("../../main.inc.php"); @@ -213,5 +212,5 @@ print '=> '.$langs->trans("File encoding").''; print '
'; -llxFooter('$Date: 2011/07/13 13:15:17 $ - $Revision: 1.58 $'); +llxFooter('$Date: 2011/07/31 22:23:14 $ - $Revision: 1.59 $'); ?> diff --git a/htdocs/admin/system/index.php b/htdocs/admin/system/index.php index 3f03d441008..d2d54e4a8b2 100644 --- a/htdocs/admin/system/index.php +++ b/htdocs/admin/system/index.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2010 Laurent Destailleur + * Copyright (C) 2004-2011 Laurent Destailleur * Copyright (C) 2005-2010 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -20,8 +20,8 @@ /** * \file htdocs/admin/system/index.php - * \brief Page accueil infos systeme - * \version $Id$ + * \brief Home page of system information + * \version $Id: index.php,v 1.48 2011/07/27 23:50:52 eldy Exp $ */ require("../../main.inc.php"); @@ -36,6 +36,13 @@ if (!$user->admin) accessforbidden(); +/* + * Actions + */ + +// None + + /* * View */ @@ -44,8 +51,6 @@ llxHeader(); print_fiche_titre($langs->trans("SummarySystem"),'','setup'); -//print "
\n"; -print info_admin($langs->trans("SystemInfoDesc")).'
'; print ''; print "\n"; @@ -118,5 +123,9 @@ print '
Dolibarr
'; print '
'; -llxFooter('$Date$ - $Revision$'); +//print "
\n"; +print info_admin($langs->trans("SystemInfoDesc")).'
'; + + +llxFooter('$Date: 2011/07/27 23:50:52 $ - $Revision: 1.48 $'); ?> diff --git a/htdocs/admin/system/modules.php b/htdocs/admin/system/modules.php index 4a6993f1739..7aa01be169e 100644 --- a/htdocs/admin/system/modules.php +++ b/htdocs/admin/system/modules.php @@ -14,14 +14,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/system/modules.php * \brief File to list all Dolibarr modules - * \version $Id$ + * \version $Id: modules.php,v 1.15 2011/07/31 22:23:14 eldy Exp $ */ require("../../main.inc.php"); @@ -132,5 +131,5 @@ foreach($rights_ids as $right_id) $old = $right_id; } -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:14 $ - $Revision: 1.15 $'); ?> diff --git a/htdocs/admin/system/os.php b/htdocs/admin/system/os.php index 5ce4e9ff156..66f07cfa14e 100644 --- a/htdocs/admin/system/os.php +++ b/htdocs/admin/system/os.php @@ -13,14 +13,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/system/os.php * \brief Page des infos systeme de l'OS - * \version $Id$ + * \version $Id: os.php,v 1.14 2011/07/31 22:23:14 eldy Exp $ */ require("../../main.inc.php"); @@ -52,5 +51,5 @@ print "".$langs->trans("Version")."".$osve print ''; -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:14 $ - $Revision: 1.14 $'); ?> diff --git a/htdocs/admin/system/phpinfo.php b/htdocs/admin/system/phpinfo.php index 5c7f2e27fc3..70366fd8c41 100644 --- a/htdocs/admin/system/phpinfo.php +++ b/htdocs/admin/system/phpinfo.php @@ -13,14 +13,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/system/phpinfo.php * \brief Page des infos systeme de php - * \version $Id$ + * \version $Id: phpinfo.php,v 1.19 2011/07/31 22:23:14 eldy Exp $ */ require("../../main.inc.php"); @@ -122,5 +121,5 @@ if (isset($title)) print "$chaine\n"; // Ne pas centrer la reponse php car certains tableau du bas tres large rendent ceux du haut completement a droite print "
\n"; -llxfooter('$Date$ - $Revision$'); +llxfooter('$Date: 2011/07/31 22:23:14 $ - $Revision: 1.19 $'); ?> diff --git a/htdocs/admin/system/web.php b/htdocs/admin/system/web.php index cb6ba911dda..95de5113c38 100644 --- a/htdocs/admin/system/web.php +++ b/htdocs/admin/system/web.php @@ -12,14 +12,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/system/web.php * \brief Page des infos systeme du serveur Web - * \version $Id$ + * \version $Id: web.php,v 1.13 2011/07/31 22:23:14 eldy Exp $ */ require("../../main.inc.php"); @@ -48,5 +47,5 @@ print "".$langs->trans("DataRootServer")."" . DOL_DATA_R print ''; -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:14 $ - $Revision: 1.13 $'); ?> diff --git a/htdocs/admin/system/xcache.php b/htdocs/admin/system/xcache.php index ebc56222511..78feb3b077f 100755 --- a/htdocs/admin/system/xcache.php +++ b/htdocs/admin/system/xcache.php @@ -12,14 +12,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/system/xcache.php * \brief Page administration XCache - * \version $Id$ + * \version $Id: xcache.php,v 1.2 2011/07/31 22:23:14 eldy Exp $ */ require("../../main.inc.php"); @@ -46,7 +45,7 @@ print "
\n"; if (!function_exists('xcache_info')) { print 'XCache seems to be not installed. Function xcache_info not found.'; - llxfooter('$Date$ - $Revision$'); + llxfooter('$Date: 2011/07/31 22:23:14 $ - $Revision: 1.2 $'); exit; } @@ -70,5 +69,5 @@ if ($action == 'clear') } */ -llxfooter('$Date$ - $Revision$'); +llxfooter('$Date: 2011/07/31 22:23:14 $ - $Revision: 1.2 $'); ?> diff --git a/htdocs/admin/system/xdebug.php b/htdocs/admin/system/xdebug.php index 97829a57bd1..dc7561d2b70 100644 --- a/htdocs/admin/system/xdebug.php +++ b/htdocs/admin/system/xdebug.php @@ -12,14 +12,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/system/xdebug.php * \brief Page administration XDebug - * \version $Id$ + * \version $Id: xdebug.php,v 1.6 2011/07/31 22:23:14 eldy Exp $ */ require("../../main.inc.php"); @@ -44,7 +43,7 @@ print "
\n"; if (!function_exists('xdebug_is_enabled')) { print 'XDebug seems to be not installed. Function xdebug_is_enabled not found.'; - llxfooter('$Date$ - $Revision$'); + llxfooter('$Date: 2011/07/31 22:23:14 $ - $Revision: 1.6 $'); exit; } @@ -101,5 +100,5 @@ else } -llxfooter('$Date$ - $Revision$'); +llxfooter('$Date: 2011/07/31 22:23:14 $ - $Revision: 1.6 $'); ?> diff --git a/htdocs/admin/taxes.php b/htdocs/admin/taxes.php index 6128d3754dc..2f47d43f5e3 100644 --- a/htdocs/admin/taxes.php +++ b/htdocs/admin/taxes.php @@ -14,15 +14,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/taxes.php * \ingroup tax * \brief Page de configuration du module tax - * \version $Id$ + * \version $Id: taxes.php,v 1.10 2011/07/31 22:23:24 eldy Exp $ */ require("../main.inc.php"); @@ -182,5 +181,5 @@ else $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:24 $ - $Revision: 1.10 $'); ?> diff --git a/htdocs/admin/triggers.php b/htdocs/admin/triggers.php index 4510f487bfa..14ed4fbc723 100644 --- a/htdocs/admin/triggers.php +++ b/htdocs/admin/triggers.php @@ -12,14 +12,13 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/triggers.php * \brief Page de configuration et activation des triggers - * \version $Id$ + * \version $Id: triggers.php,v 1.27 2011/07/31 22:23:21 eldy Exp $ */ require("../main.inc.php"); @@ -56,5 +55,5 @@ $triggers = $interfaces->getTriggersList(0); include($template_dir.'triggers.tpl.php'); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:21 $ - $Revision: 1.27 $'); ?> diff --git a/htdocs/admin/user.php b/htdocs/admin/user.php index 4dd1cf42144..24760eebd50 100644 --- a/htdocs/admin/user.php +++ b/htdocs/admin/user.php @@ -17,15 +17,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/user.php * \ingroup core * \brief Page to setup user module - * \version $Id$ + * \version $Id: user.php,v 1.5 2011/07/31 22:23:21 eldy Exp $ */ require("../main.inc.php"); @@ -123,5 +122,5 @@ $db->close(); print '
'; -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:21 $ - $Revision: 1.5 $'); ?> \ No newline at end of file diff --git a/htdocs/admin/workflow.php b/htdocs/admin/workflow.php index 09a90516c57..aa2abd5146e 100755 --- a/htdocs/admin/workflow.php +++ b/htdocs/admin/workflow.php @@ -15,15 +15,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/admin/societe.php * \ingroup company * \brief Third party module setup page - * \version $Id$ + * \version $Id: workflow.php,v 1.5 2011/07/31 22:23:21 eldy Exp $ */ require("../main.inc.php"); @@ -136,5 +135,5 @@ print ''; $db->close(); -llxFooter('$Date$ - $Revision$'); +llxFooter('$Date: 2011/07/31 22:23:21 $ - $Revision: 1.5 $'); ?> diff --git a/htdocs/asterisk/index.php b/htdocs/asterisk/index.php index e69de29bb2d..7db0dd9ebf9 100644 --- a/htdocs/asterisk/index.php +++ b/htdocs/asterisk/index.php @@ -0,0 +1 @@ +Url not available \ No newline at end of file diff --git a/htdocs/bookmarks/index.php b/htdocs/bookmarks/index.php index e69de29bb2d..7db0dd9ebf9 100644 --- a/htdocs/bookmarks/index.php +++ b/htdocs/bookmarks/index.php @@ -0,0 +1 @@ +Url not available \ No newline at end of file diff --git a/htdocs/boxes.php b/htdocs/boxes.php index d6ebd67094b..2affdf654d3 100644 --- a/htdocs/boxes.php +++ b/htdocs/boxes.php @@ -14,8 +14,7 @@ * 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. + * along with this program. If not, see . */ /** @@ -23,7 +22,7 @@ * \brief File of class to manage widget boxes * \author Rodolphe Qiedeville * \author Laurent Destailleur - * \version $Id: boxes.php,v 1.53 2011/07/08 17:59:55 eldy Exp $ + * \version $Id: boxes.php,v 1.54 2011/07/31 23:19:04 eldy Exp $ */ diff --git a/htdocs/cashdesk/affContenu.php b/htdocs/cashdesk/affContenu.php index 1ade459055e..9692573c4f0 100644 --- a/htdocs/cashdesk/affContenu.php +++ b/htdocs/cashdesk/affContenu.php @@ -14,15 +14,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/cashdesk/affContenu.php * \ingroup cashdesk * \brief Include to show main page for cashdesk module - * \version $Id$ + * \version $Id: affContenu.php,v 1.13 2011/07/31 22:23:26 eldy Exp $ */ require ('class/Facturation.class.php'); diff --git a/htdocs/cashdesk/affIndex.php b/htdocs/cashdesk/affIndex.php index 2530a842df7..afccdb5d06f 100644 --- a/htdocs/cashdesk/affIndex.php +++ b/htdocs/cashdesk/affIndex.php @@ -15,15 +15,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/cashdesk/affIndex.php * \ingroup cashdesk * \brief First page of point of sale module - * \version $Id$ + * \version $Id: affIndex.php,v 1.20 2011/07/31 22:23:27 eldy Exp $ */ require('../main.inc.php'); require_once(DOL_DOCUMENT_ROOT.'/cashdesk/include/environnement.php'); diff --git a/htdocs/cashdesk/affPied.php b/htdocs/cashdesk/affPied.php index 5fb4bb828e7..3197831d05b 100644 --- a/htdocs/cashdesk/affPied.php +++ b/htdocs/cashdesk/affPied.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2007-2008 Jeremie Ollivier * * 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 @@ -12,15 +12,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/cashdesk/affPied.php * \ingroup cashdesk * \brief Bottom of main page of point of sale module - * \version $Id$ + * \version $Id: affPied.php,v 1.4 2011/07/31 22:23:27 eldy Exp $ */ ?> diff --git a/htdocs/cashdesk/class/index.php b/htdocs/cashdesk/class/index.php index e69de29bb2d..7db0dd9ebf9 100644 --- a/htdocs/cashdesk/class/index.php +++ b/htdocs/cashdesk/class/index.php @@ -0,0 +1 @@ +Url not available \ No newline at end of file diff --git a/htdocs/cashdesk/deconnexion.php b/htdocs/cashdesk/deconnexion.php index d3e87af63b8..e4bdb710310 100644 --- a/htdocs/cashdesk/deconnexion.php +++ b/htdocs/cashdesk/deconnexion.php @@ -12,8 +12,7 @@ * 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. + * along with this program. If not, see . */ //if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL','1'); // Uncomment creates pb to relogon after a disconnect diff --git a/htdocs/cashdesk/facturation.php b/htdocs/cashdesk/facturation.php index 3fbe38868e8..11e5f18b5ed 100644 --- a/htdocs/cashdesk/facturation.php +++ b/htdocs/cashdesk/facturation.php @@ -14,15 +14,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/cashdesk/facturation.php * \ingroup cashdesk * \brief Include to show main page for cashdesk module - * \version $Id$ + * \version $Id: facturation.php,v 1.19 2011/07/31 22:23:27 eldy Exp $ */ // Get list of articles (in warehouse '$conf_fkentrepot' if defined and stock module enabled) diff --git a/htdocs/cashdesk/facturation_dhtml.php b/htdocs/cashdesk/facturation_dhtml.php index ac519330746..0642bdf9f20 100644 --- a/htdocs/cashdesk/facturation_dhtml.php +++ b/htdocs/cashdesk/facturation_dhtml.php @@ -13,8 +13,7 @@ * 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. + * along with this program. If not, see . */ /** diff --git a/htdocs/cashdesk/facturation_verif.php b/htdocs/cashdesk/facturation_verif.php index 5078f1674e7..4530b2031b6 100644 --- a/htdocs/cashdesk/facturation_verif.php +++ b/htdocs/cashdesk/facturation_verif.php @@ -13,8 +13,7 @@ * 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. + * along with this program. If not, see . */ require('../main.inc.php'); diff --git a/htdocs/cashdesk/img/index.php b/htdocs/cashdesk/img/index.php index e69de29bb2d..7db0dd9ebf9 100644 --- a/htdocs/cashdesk/img/index.php +++ b/htdocs/cashdesk/img/index.php @@ -0,0 +1 @@ +Url not available \ No newline at end of file diff --git a/htdocs/cashdesk/include/index.php b/htdocs/cashdesk/include/index.php index e69de29bb2d..7db0dd9ebf9 100644 --- a/htdocs/cashdesk/include/index.php +++ b/htdocs/cashdesk/include/index.php @@ -0,0 +1 @@ +Url not available \ No newline at end of file diff --git a/htdocs/cashdesk/index.php b/htdocs/cashdesk/index.php index cd5eb312ed5..a27d91d98fd 100644 --- a/htdocs/cashdesk/index.php +++ b/htdocs/cashdesk/index.php @@ -14,15 +14,14 @@ * 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. + * along with this program. If not, see . */ /** * \file htdocs/cashdesk/index.php * \ingroup cashdesk * \brief File to login to point of sales - * \version $Id$ + * \version $Id: index.php,v 1.34 2011/07/31 22:23:26 eldy Exp $ */ // Set and init common variables diff --git a/htdocs/cashdesk/index_verif.php b/htdocs/cashdesk/index_verif.php index a69f770d42f..60734ef7b48 100644 --- a/htdocs/cashdesk/index_verif.php +++ b/htdocs/cashdesk/index_verif.php @@ -14,8 +14,7 @@ * 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. + * along with this program. If not, see . * * This page is called after submission of login page. * We set here login choices into session. diff --git a/htdocs/cashdesk/javascript/index.php b/htdocs/cashdesk/javascript/index.php index e69de29bb2d..7db0dd9ebf9 100644 --- a/htdocs/cashdesk/javascript/index.php +++ b/htdocs/cashdesk/javascript/index.php @@ -0,0 +1 @@ +Url not available \ No newline at end of file diff --git a/htdocs/cashdesk/liste_articles.php b/htdocs/cashdesk/liste_articles.php index 1c718c512e5..446c2d4c9b0 100644 --- a/htdocs/cashdesk/liste_articles.php +++ b/htdocs/cashdesk/liste_articles.php @@ -13,8 +13,7 @@ * 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. + * along with this program. If not, see . */ require ('tpl/liste_articles.tpl.php'); diff --git a/htdocs/cashdesk/sql/index.php b/htdocs/cashdesk/sql/index.php index e69de29bb2d..7db0dd9ebf9 100644 --- a/htdocs/cashdesk/sql/index.php +++ b/htdocs/cashdesk/sql/index.php @@ -0,0 +1 @@ +Url not available \ No newline at end of file diff --git a/htdocs/cashdesk/tpl/index.php b/htdocs/cashdesk/tpl/index.php index e69de29bb2d..7db0dd9ebf9 100644 --- a/htdocs/cashdesk/tpl/index.php +++ b/htdocs/cashdesk/tpl/index.php @@ -0,0 +1 @@ +Url not available \ No newline at end of file diff --git a/htdocs/cashdesk/tpl/menu.tpl.php b/htdocs/cashdesk/tpl/menu.tpl.php index 7d13d066c6b..83dac68a99e 100644 --- a/htdocs/cashdesk/tpl/menu.tpl.php +++ b/htdocs/cashdesk/tpl/menu.tpl.php @@ -2,6 +2,7 @@ /* Copyright (C) 2007-2008 Jeremie Ollivier * Copyright (C) 2008-2010 Laurent Destailleur * Copyright (C) 2009 Regis Houssin + * Copyright (C) 2011 Juanjo Menent * * 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 @@ -64,13 +65,13 @@ print '