Qual: All library files must be in lib directory and called *.lib.php

This commit is contained in:
Laurent Destailleur 2008-04-20 04:24:00 +00:00
parent 02464c4a2c
commit bd88573d1c
23 changed files with 110 additions and 64 deletions

View File

@ -1,21 +1,21 @@
Alias /dolibarr "WAMPROOT/www/dolibarr/htdocs/"
# to give access to dolibarr from outside
# replace the lines
# NOTE:
# To restrict access to dolibarr from outside set lines
#
# Order Deny,Allow
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
#
# by
# instead of
#
# Order Allow,Deny
# Allow from all
# Order Allow,Deny
# Allow from all
#
<Directory "WAMPROOT/www/dolibarr/htdocs/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Allow,Deny
Allow from all
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>

View File

@ -360,6 +360,7 @@ begin
StringChange (srcContents, 'WAMPPHPVERSION', phpVersion);
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
StringChange (srcContents, 'WAMPAPACHEPORT', apachePort);
SaveStringToFile(destFile, srcContents, False);
end
else
@ -369,6 +370,7 @@ begin
StringChange (srcContents, 'WAMPPHPVERSION', phpVersion);
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
StringChange (srcContents, 'WAMPAPACHEPORT', apachePort);
SaveStringToFile(destFile, srcContents, False);
end

File diff suppressed because one or more lines are too long

View File

@ -26,7 +26,7 @@
require("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/html.formadmin.class.php");
require_once(DOL_DOCUMENT_ROOT."/lib/menubase.class.php");
require_once(DOL_DOCUMENT_ROOT."/core/menubase.class.php");
$langs->load("admin");

View File

@ -26,7 +26,7 @@
require("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/compta/tva/tva.class.php");
require_once(DOL_DOCUMENT_ROOT."/chargesociales.class.php");
require_once(DOL_DOCUMENT_ROOT."/lib/report.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/report.lib.php");
$langs->load("bills");

View File

@ -24,7 +24,7 @@
*/
require("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/report.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/report.lib.php");
$year_start=isset($_GET["year_start"])?$_GET["year_start"]:$_POST["year_start"];

View File

@ -24,7 +24,7 @@
*/
require("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/report.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/report.lib.php");
$year=$_GET["year"];

View File

@ -16,18 +16,16 @@
* 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.
*
* $Id$
*/
/**
\file htdocs/compta/stats/casoc.php
\brief Page reporting CA par société
\version $Revision$
\version $Id$
*/
require("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/report.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/report.lib.php");
$langs->load("companies");

View File

@ -15,18 +15,16 @@
* 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.
*
* $Id$
*/
/**
\file htdocs/compta/stats/index.php
\brief Page reporting CA
\version $Revision$
\version $Id$
*/
require("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/report.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/report.lib.php");
$year_start=isset($_GET["year_start"])?$_GET["year_start"]:$_POST["year_start"];

View File

@ -27,7 +27,7 @@
*/
require("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/report.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/report.lib.php");
require_once(DOL_DOCUMENT_ROOT."/lib/tax.lib.php");
require_once(DOL_DOCUMENT_ROOT."/compta/tva/tva.class.php");

View File

@ -28,7 +28,7 @@
*/
require("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/report.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/report.lib.php");
require_once(DOL_DOCUMENT_ROOT."/lib/tax.lib.php");
require_once(DOL_DOCUMENT_ROOT."/compta/tva/tva.class.php");
require_once(DOL_DOCUMENT_ROOT."/facture.class.php");

View File

@ -17,10 +17,10 @@
*/
/**
\file htdocs/lib/menubase.class.php
\file htdocs/core/menubase.class.php
\ingroup core
\version $Id$
\brief File of class to manage menu entries
\brief File of class to manage dynamic menu entries
\remarks Initialy built by build_class_from_table on 2008-01-12 14:19
*/

View File

@ -53,7 +53,7 @@ class MenuLeft {
*/
function MenuLeft($db,&$menu_array)
{
require_once(DOL_DOCUMENT_ROOT."/lib/menubase.class.php");
require_once(DOL_DOCUMENT_ROOT."/core/menubase.class.php");
$this->db=$db;
$this->menu_array=$menu_array;

View File

@ -52,7 +52,7 @@ class MenuLeft {
*/
function MenuLeft($db,&$menu_array)
{
require_once(DOL_DOCUMENT_ROOT."/lib/menubase.class.php");
require_once(DOL_DOCUMENT_ROOT."/core/menubase.class.php");
$this->db=$db;
$this->menu_array=$menu_array;

View File

@ -59,7 +59,7 @@ class MenuTop {
*/
function showmenu()
{
require_once(DOL_DOCUMENT_ROOT."/lib/menubase.class.php");
require_once(DOL_DOCUMENT_ROOT."/core/menubase.class.php");
global $user,$conf,$langs,$dolibarr_main_db_name;;

View File

@ -59,7 +59,7 @@ class MenuTop {
*/
function showmenu()
{
require_once(DOL_DOCUMENT_ROOT."/lib/menubase.class.php");
require_once(DOL_DOCUMENT_ROOT."/core/menubase.class.php");
global $user,$conf,$langs,$dolibarr_main_db_name;;

View File

@ -343,7 +343,7 @@ class MenuTop {
// Affichage des menus personnalises
require_once(DOL_DOCUMENT_ROOT."/lib/menubase.class.php");
require_once(DOL_DOCUMENT_ROOT."/core/menubase.class.php");
$menuArbo = new Menubase($this->db,'eldy','top');
$tabMenu = $menuArbo->menutopCharger(0,$_SESSION['mainmenu'],'eldy');

View File

@ -308,7 +308,7 @@ class MenuTop {
// Affichage des menus personnalises
require_once(DOL_DOCUMENT_ROOT."/lib/menubase.class.php");
require_once(DOL_DOCUMENT_ROOT."/core/menubase.class.php");
$menuArbo = new Menubase($this->db,'eldy','top');
$tabMenu = $menuArbo->menutopCharger(1,$_SESSION['mainmenu'],'eldy');

View File

@ -68,7 +68,7 @@ class MenuTop {
/*
// Code to show personalized menus
require_once(DOL_DOCUMENT_ROOT."/lib/menubase.class.php");
require_once(DOL_DOCUMENT_ROOT."/core/menubase.class.php");
$menuArbo = new Menubase($this->db,'eldy','top');
$tabMenu = $menuArbo->menutopCharger(2,$_SESSION['mainmenu'],'');

View File

@ -307,7 +307,7 @@ class MenuTop {
// Affichage des menus personnalises
require_once(DOL_DOCUMENT_ROOT."/lib/menubase.class.php");
require_once(DOL_DOCUMENT_ROOT."/core/menubase.class.php");
$menuArbo = new Menubase($this->db,'rodolphe','top');
$tabMenu = $menuArbo->menutopCharger(2,$_SESSION['mainmenu'],'rodolphe');

View File

@ -728,7 +728,7 @@ class DolibarrModules
{
global $user;
require_once(DOL_DOCUMENT_ROOT."/lib/menubase.class.php");
require_once(DOL_DOCUMENT_ROOT."/core/menubase.class.php");
$err=0;

View File

@ -33,7 +33,7 @@ require_once($dolibarr_main_document_root . '/contrat/contrat.class.php');
require_once($dolibarr_main_document_root . '/commande/commande.class.php');
require_once($dolibarr_main_document_root . '/fourn/fournisseur.commande.class.php');
require_once($dolibarr_main_document_root . '/lib/price.lib.php');
require_once($dolibarr_main_document_root . '/lib/menubase.class.php');
require_once($dolibarr_main_document_root . '/core/menubase.class.php');
$grant_query='';
$etape = 2;

View File

@ -15,13 +15,12 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* or see http://www.gnu.org/
*
* $Id$
*/
/**
\file htdocs/lib/report.inc.php
\brief Ensemble de fonctions de base de dolibarr pour reporting sous forme d'include
\file htdocs/lib/report.lib.php
\brief Ensemble de fonctions de base de dolibarr pour reporting sous forme d'include
\version $Id$
*/