Qual: First change to remove pre.inc.php
This commit is contained in:
parent
337ebafceb
commit
a740922190
@ -142,7 +142,7 @@ class modMyModule extends DolibarrModules
|
|||||||
// 'type'=>'top', // This is a Top menu entry
|
// 'type'=>'top', // This is a Top menu entry
|
||||||
// 'titre'=>'MyModule top menu',
|
// 'titre'=>'MyModule top menu',
|
||||||
// 'mainmenu'=>'mymodule',
|
// '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',
|
// 'url'=>'/mymodule/pagetop.php',
|
||||||
// 'langs'=>'mylangfile', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
|
// 'langs'=>'mylangfile', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
|
||||||
// 'position'=>100,
|
// 'position'=>100,
|
||||||
|
|||||||
@ -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);
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
@ -18,12 +18,12 @@
|
|||||||
|
|
||||||
/** \file htdocs/webcal/webcal.php
|
/** \file htdocs/webcal/webcal.php
|
||||||
\ingroup webcalendar
|
\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
|
\author Laurent Destailleur
|
||||||
\version $Id$
|
\version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("../main.inc.php");
|
||||||
|
|
||||||
if (empty($conf->global->PHPWEBCALENDAR_URL))
|
if (empty($conf->global->PHPWEBCALENDAR_URL))
|
||||||
{
|
{
|
||||||
@ -55,7 +55,7 @@ print "
|
|||||||
<body>
|
<body>
|
||||||
<br><center>
|
<br><center>
|
||||||
Malheureusement, votre navigateur est trop vieux pour visualiser cette zone.<br>
|
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>
|
</center>
|
||||||
</body>
|
</body>
|
||||||
</noframes>
|
</noframes>
|
||||||
|
|||||||
@ -25,13 +25,13 @@
|
|||||||
// This is to make Dolibarr working with Plesk
|
// This is to make Dolibarr working with Plesk
|
||||||
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
|
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
|
// C'est un wrapper, donc header vierge
|
||||||
function llxHeader() { print '<html><title>Export cal</title><body>'; }
|
function llxHeader() { print '<html><title>Export cal</title><body>'; }
|
||||||
function llxFooter() { print '</body></html>'; }
|
function llxFooter() { print '</body></html>'; }
|
||||||
|
|
||||||
require("../main.inc.php");
|
|
||||||
require_once(DOL_DOCUMENT_ROOT.'/webcal/webcal.class.php');
|
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
if (! $conf->webcal->enabled)
|
if (! $conf->webcal->enabled)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|||||||
@ -18,10 +18,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/webcal/webcaltop.php
|
* \file htdocs/webcal/webcaltop.php
|
||||||
\ingroup webcalendar
|
* \ingroup webcalendar
|
||||||
\brief Top frame to show calendar
|
* \brief Top frame to show calendar
|
||||||
\version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require ("../main.inc.php");
|
require ("../main.inc.php");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user