*/ // DEFAULT initialization of a module [BEGIN] #unset($MCONF); // include my own class file for database copying include_once('class.tx_cal_recurrence_generator.php'); include_once(t3lib_extMgm::extPath('cal').'controller/class.tx_cal_functions.php'); #require ('conf.php'); #require ($BACK_PATH.'init.php'); #require ($BACK_PATH.'template.php'); $GLOBALS['LANG']->includeLLFile('EXT:cal/mod1/locallang.php'); require_once (PATH_t3lib.'class.t3lib_scbase.php'); // include this to enable accessing the database via tce require_once (PATH_t3lib.'class.t3lib_tcemain.php'); require_once (PATH_t3lib.'class.t3lib_loaddbgroup.php'); require_once (PATH_t3lib.'class.t3lib_extfilefunc.php'); $BE_USER->modAccess($MCONF,1); // This checks permissions and exits if the users has no permission for entry. // DEFAULT initialization of a module [END] class tx_cal_recurrence_generator_module1 extends t3lib_SCbase { var $pageinfo; /** * */ function init() { global $BE_USER,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS; parent::init(); /* if (t3lib_div::_GP('clear_all_cache')) { $this->include_once[]=PATH_t3lib.'class.t3lib_tcemain.php'; } */ } /** * Adds items to the ->MOD_MENU array. Used for the function menu selector. */ function menuConfig() { $this->MOD_MENU = Array ( 'function' => Array ( '1' => $GLOBALS['LANG']->getLL('function1'), '2' => $GLOBALS['LANG']->getLL('function2'), ) ); parent::menuConfig(); } // If you chose 'web' as main module, you will need to consider the $this->id parameter which will contain the uid-number of the page clicked in the page tree /** * Main function of the module. Write the content to $this->content */ function main() { global $BE_USER,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS; // Access check! // The page will show only if there is a valid page and if this page may be viewed by the user $this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this->perms_clause); $access = is_array($this->pageinfo) ? 1 : 0; if (($this->id && $access) || ($BE_USER->user['admin'] && !$this->id)) { // Draw the header. $this->doc = t3lib_div::makeInstance('mediumDoc'); $this->doc->backPath = $BACK_PATH; $this->doc->form='