28include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
51 $this->family =
"interface";
53 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
55 $this->
description =
"This module include an external web site or page into Dolibarr menus and view it into a Dolibarr frame.";
57 $this->version =
'dolibarr';
59 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
61 $this->picto =
'website';
63 $this->langfiles = array(
"externalsite");
66 $this->dirs = array();
69 $this->config_page_url = array(
"index.php@externalsite");
72 $this->depends = array();
73 $this->requiredby = array();
80 $this->
const = array(0=>array(
'EXTERNALSITE_LABEL',
'chaine',
'ExternalSite',
'To declare label to use into external site menu entry', 0));
83 $this->boxes = array();
94 $this->rights_class =
'externalsite';
95 $this->rights = array();
101 $this->menu[$r] = array(
104 'titre'=>
'__[EXTERNALSITE_LABEL]__',
105 'prefix' =>
img_picto(
'', $this->picto,
'class="pictofixedwidth em092"'),
106 'mainmenu'=>
'externalsite',
107 'url'=>
'/externalsite/frames.php',
111 'enabled'=>
'$conf->externalsite->enabled',
Description and activation class for module ExternalSite.
__construct($db)
Constructor.
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
$conf db name
Only used if Module[ID]Name translation string is not found.