From de1d3131486d7f8b617d5326786a66884e8cd8fd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 28 Feb 2010 15:33:31 +0000 Subject: [PATCH] Remove pre.inc.php on module directories. --- htdocs/exports/export.php | 2 +- htdocs/exports/index.php | 2 +- htdocs/exports/pre.inc.php | 42 -------------------------------------- htdocs/imports/import.php | 2 +- htdocs/imports/index.php | 2 +- htdocs/imports/pre.inc.php | 42 -------------------------------------- 6 files changed, 4 insertions(+), 88 deletions(-) delete mode 100644 htdocs/exports/pre.inc.php delete mode 100644 htdocs/imports/pre.inc.php diff --git a/htdocs/exports/export.php b/htdocs/exports/export.php index d1fc416e2e4..8fa513c114f 100644 --- a/htdocs/exports/export.php +++ b/htdocs/exports/export.php @@ -24,7 +24,7 @@ * \version $Id$ */ -require_once("./pre.inc.php"); +require_once("../main.inc.php"); require_once(DOL_DOCUMENT_ROOT."/html.formfile.class.php"); require_once(DOL_DOCUMENT_ROOT."/html.formother.class.php"); require_once(DOL_DOCUMENT_ROOT."/exports/export.class.php"); diff --git a/htdocs/exports/index.php b/htdocs/exports/index.php index a39dc50a5a2..659fb66b55f 100644 --- a/htdocs/exports/index.php +++ b/htdocs/exports/index.php @@ -23,7 +23,7 @@ * \version $Id$ */ -require_once("./pre.inc.php"); +require_once("../main.inc.php"); require_once(DOL_DOCUMENT_ROOT."/exports/export.class.php"); $langs->load("exports"); diff --git a/htdocs/exports/pre.inc.php b/htdocs/exports/pre.inc.php deleted file mode 100644 index 27520054054..00000000000 --- a/htdocs/exports/pre.inc.php +++ /dev/null @@ -1,42 +0,0 @@ - - * - * 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/exports/pre.inc.php - * \ingroup export - * \brief Fichier de gestion du menu gauche de l'espace exports - * \version $Id$ - */ -require("../main.inc.php"); - - -function llxHeader($head = '', $title='', $help_url='') -{ - global $user, $conf, $langs; - - top_menu($head, $title); - - $menu = new Menu(); - - $menu->add(DOL_URL_ROOT."/exports/index.php", $langs->trans("Exports")); - $menu->add_submenu(DOL_URL_ROOT."/exports/export.php", $langs->trans("NewExport")); - - left_menu($menu->liste, $help_url); -} - -?> diff --git a/htdocs/imports/import.php b/htdocs/imports/import.php index a72d6009418..9c4eb92483c 100644 --- a/htdocs/imports/import.php +++ b/htdocs/imports/import.php @@ -24,7 +24,7 @@ * \version $Id$ */ -require_once("./pre.inc.php"); +require_once("../main.inc.php"); require_once(DOL_DOCUMENT_ROOT."/html.formfile.class.php"); require_once(DOL_DOCUMENT_ROOT."/html.formother.class.php"); require_once(DOL_DOCUMENT_ROOT."/imports/import.class.php"); diff --git a/htdocs/imports/index.php b/htdocs/imports/index.php index aa9758f8691..5f8b37f53d2 100644 --- a/htdocs/imports/index.php +++ b/htdocs/imports/index.php @@ -23,7 +23,7 @@ * \version $Id$ */ -require_once("./pre.inc.php"); +require_once("../main.inc.php"); require_once(DOL_DOCUMENT_ROOT."/imports/import.class.php"); $langs->load("exports"); diff --git a/htdocs/imports/pre.inc.php b/htdocs/imports/pre.inc.php deleted file mode 100644 index 958d2c08412..00000000000 --- a/htdocs/imports/pre.inc.php +++ /dev/null @@ -1,42 +0,0 @@ - - * - * 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/imports/pre.inc.php - * \ingroup import - * \brief Fichier de gestion du menu gauche de l'espace exports - * \version $Id$ - */ -require("../main.inc.php"); - - -function llxHeader($head = '', $title='', $help_url='') -{ - global $user, $conf, $langs; - - top_menu($head, $title); - - $menu = new Menu(); - - $menu->add(DOL_URL_ROOT."/imports/index.php", $langs->trans("Imports")); - $menu->add_submenu(DOL_URL_ROOT."/imports/import.php", $langs->trans("NewImport")); - - left_menu($menu->liste, $help_url); -} - -?>