Qual: First change to remove pre.inc.php

This commit is contained in:
Regis Houssin 2010-03-01 08:28:29 +00:00
parent 9647d5a7a6
commit e04e6631e8
14 changed files with 28 additions and 181 deletions

View File

@ -18,17 +18,17 @@
*/
/**
\file htdocs/rapport/Atome.class.php
\brief Fichier de la classe mère Atome de génération de rapports
\version $Id$
*/
* \file htdocs/rapport/Atome.class.php
* \brief Fichier de la classe mere Atome de generation de rapports
* \version $Id$
*/
include_once DOL_DOCUMENT_ROOT.'/core/dolgraph.class.php';
/**
\class Atome
\brief Classe mère des classes de génération des images de rapports
\brief Classe m<EFBFBD>re des classes de g<EFBFBD>n<EFBFBD>ration des images de rapports
*/
class Atome

View File

@ -18,7 +18,7 @@
* $Id$
*/
require("./pre.inc.php");
require("../main.inc.php");
require("./AtomeFactureValidee.class.php");
require("./AtomePropaleValidee.class.php");

View File

@ -1,45 +0,0 @@
<?php
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*/
require ("../main.inc.php");
function llxHeader($head = '', $title='', $help_url='')
{
global $user, $conf;
/*
*
*
*/
top_menu($head, $title);
$menu = new Menu();
$menu->add(DOL_URL_ROOT."/rapport/presentation", "Presentation");
/*
*
*/
left_menu($menu->liste, $help_url);
}
?>

View File

@ -27,7 +27,7 @@
* \version $Id$
*/
require("./pre.inc.php");
require("../main.inc.php");
require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
require_once(DOL_DOCUMENT_ROOT."/facture.class.php");

View File

@ -18,13 +18,13 @@
*/
/**
\file htdocs/societe/commerciaux.php
\ingroup societe
\brief Page d'affectations des commerciaux aux societes
\version $Id$
* \file htdocs/societe/commerciaux.php
* \ingroup societe
* \brief Page d'affectations des commerciaux aux societes
* \version $Id$
*/
require("./pre.inc.php");
require("../main.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/company.lib.php");
$langs->load("companies");

View File

@ -25,7 +25,7 @@
* \version $Id$
*/
require("./pre.inc.php");
require("../main.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/company.lib.php");
require_once(DOL_DOCUMENT_ROOT."/lib/files.lib.php");
require_once(DOL_DOCUMENT_ROOT."/html.formfile.class.php");

View File

@ -17,13 +17,13 @@
*/
/**
\file htdocs/societe/info.php
\ingroup societe
\brief Page des informations d'une societe
\version $Id$
*/
* \file htdocs/societe/info.php
* \ingroup societe
* \brief Page des informations d'une societe
* \version $Id$
*/
require("./pre.inc.php");
require("../main.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/functions2.lib.php");
require_once(DOL_DOCUMENT_ROOT."/lib/company.lib.php");
require_once(DOL_DOCUMENT_ROOT."/societe.class.php");

View File

@ -18,13 +18,13 @@
*/
/**
\file htdocs/societe/lien.php
\ingroup societe
\brief Page of links to other third parties
\version $Id$
* \file htdocs/societe/lien.php
* \ingroup societe
* \brief Page of links to other third parties
* \version $Id$
*/
require("./pre.inc.php");
require("../main.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/company.lib.php");
$langs->load("companies");

View File

@ -24,7 +24,7 @@
* \version $Id$
*/
require("pre.inc.php");
require("../../main.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/company.lib.php");
require_once(DOL_DOCUMENT_ROOT."/contact.class.php");

View File

@ -24,7 +24,7 @@
\version $Id$
*/
require("./pre.inc.php");
require("../../main.inc.php");
$langs->load("companies");
$langs->load("banks");

View File

@ -1,53 +0,0 @@
<?php
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/**
\file htdocs/societe/notify/pre.inc.php
\ingroup product,service
\brief Fichier gestionnaire du menu gauche des notifications
\version $Id$
*/
require ("../../main.inc.php");
function llxHeader($head = "")
{
global $langs, $user, $conf;
top_menu($head);
$menu = new Menu();
if ($conf->societe->enabled)
{
$menu->add(DOL_URL_ROOT."/societe.php", $langs->trans("ThirdParties"),"company");
if ($conf->rights->societe->creer)
{
$menu->add_submenu(DOL_URL_ROOT."/soc.php?&action=create", $langs->trans("NewThirdParty"));
}
$menu->add_submenu(DOL_URL_ROOT."/contact.php", $langs->trans("Contacts"));
$menu->add_submenu("index.php", $langs->trans("Notifications"));
}
left_menu($menu->liste);
}
?>

View File

@ -1,55 +0,0 @@
<?php
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/**
\file htdocs/societe/pre.inc.php
\ingroup company
\brief Fichier gestionnaire du menu gauche des notifications
\version $Id$
*/
require ("../main.inc.php");
function llxHeader($head = '', $title='', $help_url='')
{
global $langs, $user, $conf;
top_menu($head);
$menu = new Menu();
if ($conf->societe->enabled)
{
$menu->add(DOL_URL_ROOT."/societe.php", $langs->trans("Companies"),"company");
if ($conf->rights->societe->creer)
{
$menu->add_submenu(DOL_URL_ROOT."/soc.php?&action=create", $langs->trans("NewCompany"));
}
$menu->add_submenu(DOL_URL_ROOT."/contact/index.php", $langs->trans("Contacts"));
$menu->add_submenu("notify/index.php", $langs->trans("Notifications"));
}
left_menu($menu->liste, $help_url);
}
?>

View File

@ -26,7 +26,7 @@
* \version $Id$
*/
require("./pre.inc.php");
require("../main.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/company.lib.php");
require_once(DOL_DOCUMENT_ROOT."/lib/bank.lib.php");
require_once DOL_DOCUMENT_ROOT."/companybankaccount.class.php";

View File

@ -25,7 +25,7 @@
* \version $Id$
*/
require("./pre.inc.php");
require("../main.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/company.lib.php");
$action = isset($_GET["action"])?$_GET["action"]:$_POST["action"];