// DEFAULT initialization of a module [BEGIN]
error_reporting (E_ALL ^ E_NOTICE);
unset($MCONF);
require ('conf.php');
require ($BACK_PATH.'init.php');
require ($BACK_PATH.'template.php');
$LANG->includeLLFile('EXT:direct_mail/locallang/locallang_mod2-6.xml');
//$LANG->includeLLFile('EXT:direct_mail/mod/locallang_csh_web_directmail.xml');
$LANG->includeLLFile('EXT:direct_mail/locallang/locallang_csh_sysdmail.xml');
$BE_USER->modAccess($MCONF,1); // This checks permissions and exits if the users has no permission for entry.
// Make instance:
require_once(t3lib_extMgm::extPath('direct_mail').'mod2/class.tx_directmail_dmail.php');
$SOBE = t3lib_div::makeInstance('tx_directmail_dmail');
$SOBE->init();
// Include files?
foreach($SOBE->include_once as $INC_FILE) {
include_once($INC_FILE);
}
Hier noch ein Auszug aus der zugehörigen Conig-Datei:
<?php
// DO NOT REMOVE OR CHANGE THESE 3 LINES:
define('TYPO3_MOD_PATH', '../typo3conf/ext/direct_mail/mod2/');
$BACK_PATH='../../../../typo3/';
$MCONF['name'] = 'txdirectmailM1_txdirectmailM2';
$MLANG['default']['tabs_images']['tab'] = 'mod_icon.gif';
$MLANG['default']['ll_ref'] = 'LLL:EXT:direct_mail/mod2/locallang_mod.xml';
$MCONF['access'] = 'user,group';
$MCONF['script']='index.php';
$MCONF['workspaces'] = 'online'
?>
Hier noch ein Auszug aus der locallang_mod.xml:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>^M
<T3locallang>^M
<meta type="array">^M
<description>Labels for the main Direct Mail module</description>^M
<type>module</type>^M
<csh_table></csh_table>^M
<fileId>EXT:direct_mail/mod/locallang.xml</fileId>^M
<labelContext type="array">^M
<label index="mlang_tabs_tab"></label>^M
<label index="mlang_labels_tablabel"></label>^M
<label index="mlang_labels_tabdescr"></label>^M
</labelContext>^M
</meta>^M
<data type="array">^M
<languageKey index="default" type="array">^M
<label index="mlang_tabs_tab">Direct Mail</label>^M
<label index="mlang_labels_tablabel">Direct Mailer</label>^M
<label index="mlang_labels_tabdescr">Direct mailing of newsletters to targeted recipients.</label>^M
</languageKey>^M
<languageKey index="de" type="array">^M
<label index="mlang_tabs_tab">Direct Mail</label>^M
<label index="mlang_labels_tablabel">Direct Mailer</label>^M
<label index="mlang_labels_tabdescr">Direct mailing von Newslettern an ausgewählte Empfänger.</label>^M
</languageKey>^M
</data>^M
</T3locallang>^M