Qual: First change to remove pre.inc.php

This commit is contained in:
Regis Houssin 2010-03-01 08:00:49 +00:00
parent 337ebafceb
commit a740922190
5 changed files with 11 additions and 49 deletions

View File

@ -142,7 +142,7 @@ class modMyModule extends DolibarrModules
// 'type'=>'top', // This is a Top menu entry
// 'titre'=>'MyModule top menu',
// 'mainmenu'=>'mymodule',
// 'leftmenu'=>'1', // Use 1 if you also want to add left menu entries using this descriptor. Use 0 if left menu entries are defined in a file pre.inc.php (old school).
// 'leftmenu'=>'1', // Use 1 if you also want to add left menu entries using this descriptor.
// 'url'=>'/mymodule/pagetop.php',
// 'langs'=>'mylangfile', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
// 'position'=>100,

View File

@ -1,38 +0,0 @@
<?php
/* Copyright (C) 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/webcal/pre.inc.php
\ingroup webcalendar
\brief Fichier de gestion du menu gauche du module webcalendar
\version $Id$
*/
require ("../main.inc.php");
function llxHeader($head = "", $title="", $help_url='')
{
global $langs;
top_menu($head, $title);
$menu = new Menu();
left_menu($menu->liste, $help_url);
}
?>

View File

@ -18,12 +18,12 @@
/** \file htdocs/webcal/webcal.php
\ingroup webcalendar
\brief Page générant 2 frames, une pour le menu Dolibarr, l'autre pour l'affichage du calendrier
\brief Page generant 2 frames, une pour le menu Dolibarr, l'autre pour l'affichage du calendrier
\author Laurent Destailleur
\version $Id$
*/
require("./pre.inc.php");
require("../main.inc.php");
if (empty($conf->global->PHPWEBCALENDAR_URL))
{
@ -55,7 +55,7 @@ print "
<body>
<br><center>
Malheureusement, votre navigateur est trop vieux pour visualiser cette zone.<br>
Il vous faut un navigateur gérant les frames.<br>
Il vous faut un navigateur gerant les frames.<br>
</center>
</body>
</noframes>

View File

@ -25,13 +25,13 @@
// This is to make Dolibarr working with Plesk
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
require("../main.inc.php");
require_once(DOL_DOCUMENT_ROOT.'/webcal/webcal.class.php');
// C'est un wrapper, donc header vierge
function llxHeader() { print '<html><title>Export cal</title><body>'; }
function llxFooter() { print '</body></html>'; }
require("../main.inc.php");
require_once(DOL_DOCUMENT_ROOT.'/webcal/webcal.class.php');
// Security check
if (! $conf->webcal->enabled)
accessforbidden();

View File

@ -18,10 +18,10 @@
*/
/**
\file htdocs/webcal/webcaltop.php
\ingroup webcalendar
\brief Top frame to show calendar
\version $Id$
* \file htdocs/webcal/webcaltop.php
* \ingroup webcalendar
* \brief Top frame to show calendar
* \version $Id$
*/
require ("../main.inc.php");