/** * Initializes the Module * * @return void */ public function initialize() { parent::init(); $this->doc = t3lib_div::makeInstance('template'); $this->doc->setModuleTemplate(t3lib_extMgm::extPath('recycler') . 'mod1/mod_template.html'); $this->doc->backPath = $GLOBALS['BACK_PATH']; $this->doc->setExtDirectStateProvider(); $this->pageRenderer = $this->doc->getPageRenderer(); $this->relativePath = t3lib_extMgm::extRelPath('recycler'); $this->pageRecord = t3lib_BEfunc::readPageAccess($this->id, $this->perms_clause); $this->isAccessibleForCurrentUser = $this->id && is_array($this->pageRecord) || !$this->id && $this->isCurrentUserAdmin(); //don't access in workspace if ($GLOBALS['BE_USER']->workspace !== 0) { $this->isAccessibleForCurrentUser = false; } //read configuration $modTS = $GLOBALS['BE_USER']->getTSConfig('mod.recycler'); if ($this->isCurrentUserAdmin()) { $this->allowDelete = true; } else { $this->allowDelete = $modTS['properties']['allowDelete'] == '1'; } if (isset($modTS['properties']['recordsPageLimit']) && intval($modTS['properties']['recordsPageLimit']) > 0) { $this->recordsPageLimit = intval($modTS['properties']['recordsPageLimit']); } }
/** * Constructor function for script class. * * @return void */ function init() { global $BE_USER, $BACK_PATH, $TYPO3_CONF_VARS; parent::init(); // Setting GPvars: $this->table = t3lib_div::_GP('table'); $this->field = t3lib_div::_GP('field'); $this->uid = t3lib_div::_GP('uid'); $this->itemFormElName = t3lib_div::_GP('elname'); $this->flex_config = t3lib_div::_GP('config'); $seckey = t3lib_div::_GP('seckey'); // since we are worried about someone forging parameters (XSS security hole) we will check with sent md5 hash: if (!($seckey === t3lib_div::shortMD5($this->table . '|' . $this->field . '|' . $this->uid . '|' . $this->itemFormElName . '|' . $this->flex_config . '|' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']))) { die('access denied'); } if ($this->flex_config) { $this->flex_config = unserialize(base64_decode($this->flex_config)); } $this->backPath = $BACK_PATH; // Initialize template object $this->doc = t3lib_div::makeInstance('template'); $this->doc->docType = 'xhtml_trans'; $this->doc->styleSheetFile2 = t3lib_extMgm::extRelPath('dam') . 'res/css/stylesheet.css'; $this->doc->backPath = $this->backPath; }
/** * Initializes the Module * * @return void */ public function __construct() { parent::init(); // initialize document $this->doc = t3lib_div::makeInstance('template'); $this->doc->setModuleTemplate(t3lib_extMgm::extPath('reports') . 'mod/mod_template.html'); $this->doc->backPath = $GLOBALS['BACK_PATH']; $this->doc->addStyleSheet('tx_reports', '../' . t3lib_extMgm::siteRelPath('reports') . 'mod/mod_styles.css'); }
/** * Initializes the module. * * @return void */ public function init() { parent::init(); /* if (t3lib_div::_GP('clear_all_cache')) { $this->include_once[] = PATH_t3lib . 'class.t3lib_tcemain.php'; } */ }
/** * Initializes the Module * * @return void */ public function init() { global $BE_USER, $LANG, $BACK_PATH, $TCA_DESCR, $TCA, $CLIENT, $TYPO3_CONF_VARS; // Check nb per page $nbPerPage = t3lib_div::_GP('nbPerPage'); if ($nbPerPage !== NULL) { $this->nbElementsPerPage = $nbPerPage; } parent::init(); }
/** * Initializes the Module * @return void */ function init() { global $BE_USER, $LANG, $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'; } */ }
/** * Initializes the Module * @return void */ function init() { global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS; parent::init(); $this->extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['rzdummyimage']); $store_path = $this->extConf['storePath']; if($store_path == '') $store_path = 'fileadmin/user_upload/rzdummyimage'; t3lib_div::mkdir(PATH_site . $store_path); }
/** * Initializes the Module * * @return void */ public function __construct() { parent::init(); // initialize document $this->doc = t3lib_div::makeInstance('template'); $this->doc->setModuleTemplate(t3lib_extMgm::extPath('taskcenter') . 'res/mod_template.html'); $this->doc->backPath = $GLOBALS['BACK_PATH']; $this->doc->getPageRenderer()->loadScriptaculous('effects,dragdrop'); $this->doc->addStyleSheet('tx_taskcenter', '../' . t3lib_extMgm::siteRelPath('taskcenter') . 'res/mod_styles.css'); }
/** * Initializes the Module * * @return void */ public function init() { global $BE_USER, $LANG, $BACK_PATH, $TCA_DESCR, $TCA, $CLIENT, $TYPO3_CONF_VARS; global $MCONF; parent::init(); // Fetch module args $this->_moduleArgs = array(); if (!empty($_GET[$MCONF['name']])) { $this->_moduleArgs = (array) $_GET[$MCONF['name']]; } }
/** * Initializes the Module * * @return void */ public function init() { global $BE_USER, $LANG, $BACK_PATH, $TCA_DESCR, $TCA, $CLIENT, $TYPO3_CONF_VARS; parent::init(); // initialize doc $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('template'); $this->doc->setModuleTemplate(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('solr') . 'ModAdmin/mod_admin.html'); $this->doc->backPath = $BACK_PATH; $this->doc->bodyTagId = 'typo3-mod-php'; $this->doc->bodyTagAdditions = 'class="tx_solr_mod-admin"'; }
/** * Initializes the Module * @return void */ public function init() { global $BE_USER, $LANG, $BACK_PATH, $TCA_DESCR, $TCA, $CLIENT, $TYPO3_CONF_VARS; parent::init(); // initialize doc $this->doc = t3lib_div::makeInstance('template'); $this->doc->setModuleTemplate(t3lib_extMgm::extPath('solr') . 'mod_admin/mod_admin.html'); $this->doc->backPath = $BACK_PATH; $this->doc->bodyTagId = 'typo3-mod-php'; $this->doc->bodyTagAdditions = 'class="tx_solr_mod-admin"'; }
/** * Initializes the Module * @return void */ function init() { global $BE_USER, $LANG, $BACK_PATH, $TCA_DESCR, $TCA, $CLIENT, $TYPO3_CONF_VARS; parent::init(); $this->include_once[] = realpath(dirname(__FILE__) . '/class.tx_nawsecuredl_table.php'); /* if (t3lib_div::_GP('clear_all_cache')) { $this->include_once[] = PATH_t3lib.'class.t3lib_tcemain.php'; } */ }
/** * Initializes the Module * @return void */ function init() { global $BE_USER, $LANG, $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'; } */ $this->path = t3lib_extMgm::extRelPath("myquizpoll") . 'mod1/'; }
function init() { parent::init(); $this->id = intval(t3lib_div::_GP('id')); $this->e = t3lib_div::_GP('e'); $this->sObj = t3lib_div::_GP('sObj'); $this->edit = t3lib_div::_GP('edit'); $this->perms_clause = $GLOBALS['BE_USER']->getPagePermsClause(1); if (t3lib_div::_GP('clear_all_cache')) { $this->include_once[] = PATH_t3lib . 'class.t3lib_tcemain.php'; } }
/** * Initializes the Module * @return void */ function init() { /*{{{*/ global $BE_USER, $LANG, $BACK_PATH, $TCA_DESCR, $TCA, $CLIENT, $TYPO3_CONF_VARS; parent::init(); $this->enableFields_tickets = t3lib_BEfunc::deleteClause($this->tickets_table) . t3lib_BEfunc::BEenableFields($this->tickets_table); $this->enableFields_fe_users = t3lib_BEfunc::deleteClause($this->users_table) . t3lib_BEfunc::BEenableFields($this->users_table); $this->enableFields_category = t3lib_BEfunc::deleteClause($this->category_table) . t3lib_BEfunc::BEenableFields($this->category_table); $this->enableFields_address = t3lib_BEfunc::deleteClause($this->address_table) . t3lib_BEfunc::BEenableFields($this->address_table); $this->enableFields_pages = t3lib_BEfunc::deleteClause($this->pages_table) . t3lib_BEfunc::BEenableFields($this->pages_table); $this->lib = t3lib_div::makeInstance('tx_ketroubletickets_lib'); // get the page ts config $this->pageTSConfig = t3lib_BEfunc::getPagesTSconfig($this->id); /* if (t3lib_div::_GP('clear_all_cache')) { $this->include_once[] = PATH_t3lib.'class.t3lib_tcemain.php'; } */ }
/** * Initialisation of this backend module * * @return void * @access public */ function init() { parent::init(); $this->modTSconfig = t3lib_BEfunc::getModTSconfig($this->id, 'mod.' . $this->MCONF['name']); $this->modSharedTSconfig = t3lib_BEfunc::getModTSconfig($this->id, 'mod.SHARED'); $this->MOD_SETTINGS = t3lib_BEfunc::getModuleData($this->MOD_MENU, t3lib_div::_GP('SET'), $this->MCONF['name']); $tmpTSc = t3lib_BEfunc::getModTSconfig($this->id, 'mod.web_list'); $tmpTSc = $tmpTSc['properties']['newContentWiz.']['overrideWithExtension']; if ($tmpTSc != 'templavoila' && t3lib_extMgm::isLoaded($tmpTSc)) { $this->newContentWizScriptPath = $GLOBALS['BACK_PATH'] . t3lib_extMgm::extRelPath($tmpTSc) . 'mod1/db_new_content_el.php'; } $this->extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['templavoila']); $this->altRoot = t3lib_div::_GP('altRoot'); $this->versionId = t3lib_div::_GP('versionId'); if (isset($this->modTSconfig['properties']['previewTitleMaxLen'])) { $this->previewTitleMaxLen = intval($this->modTSconfig['properties']['previewTitleMaxLen']); } // enable debug for development if ($this->modTSconfig['properties']['debug']) { $this->debug = TRUE; } $this->blindIcons = isset($this->modTSconfig['properties']['blindIcons']) ? t3lib_div::trimExplode(',', $this->modTSconfig['properties']['blindIcons'], TRUE) : array(); $this->addToRecentElements(); // Fill array allAvailableLanguages and currently selected language (from language selector or from outside) $this->allAvailableLanguages = $this->getAvailableLanguages(0, true, true, true); $this->currentLanguageKey = $this->allAvailableLanguages[$this->MOD_SETTINGS['language']]['ISOcode']; $this->currentLanguageUid = $this->allAvailableLanguages[$this->MOD_SETTINGS['language']]['uid']; // If no translations exist for this page, set the current language to default (as there won't be a language selector) $this->translatedLanguagesArr = $this->getAvailableLanguages($this->id); if (count($this->translatedLanguagesArr) == 1) { // Only default language exists $this->currentLanguageKey = 'DEF'; } // Set translator mode if the default langauge is not accessible for the user: if (!$GLOBALS['BE_USER']->checkLanguageAccess(0) && !$GLOBALS['BE_USER']->isAdmin()) { $this->translatorMode = TRUE; } // Initialize side bar and wizards: $this->sideBarObj =& t3lib_div::getUserObj('&tx_templavoila_mod1_sidebar', ''); $this->sideBarObj->init($this); $this->sideBarObj->position = isset($this->modTSconfig['properties']['sideBarPosition']) ? $this->modTSconfig['properties']['sideBarPosition'] : 'toptabs'; $this->wizardsObj = t3lib_div::getUserObj('&tx_templavoila_mod1_wizards', ''); $this->wizardsObj->init($this); // Initialize TemplaVoila API class: $this->apiObj = t3lib_div::makeInstance('tx_templavoila_api', $this->altRoot ? $this->altRoot : 'pages'); if (isset($this->modSharedTSconfig['properties']['useLiveWorkspaceForReferenceListUpdates'])) { $this->apiObj->modifyReferencesInLiveWS(true); } // Initialize the clipboard $this->clipboardObj =& t3lib_div::getUserObj('&tx_templavoila_mod1_clipboard', ''); $this->clipboardObj->init($this); // Initialize the record module $this->recordsObj =& t3lib_div::getUserObj('&tx_templavoila_mod1_records', ''); $this->recordsObj->init($this); // Add the localization module if localization is enabled: if ($this->alternativeLanguagesDefined()) { $this->localizationObj =& t3lib_div::getUserObj('&tx_templavoila_mod1_localization', ''); $this->localizationObj->init($this); } }
/** * Standard init function of a module. * * @return void */ function init() { global $BE_USER, $LANG, $BACK_PATH, $TYPO3_CONF_VARS; /** * Extension Categories (static var) * Content must be redundant with the same internal variable as in class.tx_extrep.php! */ $this->categories = array('be' => $GLOBALS['LANG']->getLL('category_BE'), 'module' => $GLOBALS['LANG']->getLL('category_BE_modules'), 'fe' => $GLOBALS['LANG']->getLL('category_FE'), 'plugin' => $GLOBALS['LANG']->getLL('category_FE_plugins'), 'misc' => $GLOBALS['LANG']->getLL('category_miscellanous'), 'services' => $GLOBALS['LANG']->getLL('category_services'), 'templates' => $GLOBALS['LANG']->getLL('category_templates'), 'example' => $GLOBALS['LANG']->getLL('category_examples'), 'doc' => $GLOBALS['LANG']->getLL('category_documentation')); /** * Extension States * Content must be redundant with the same internal variable as in class.tx_extrep.php! */ $this->states = array('alpha' => $GLOBALS['LANG']->getLL('state_alpha'), 'beta' => $GLOBALS['LANG']->getLL('state_beta'), 'stable' => $GLOBALS['LANG']->getLL('state_stable'), 'experimental' => $GLOBALS['LANG']->getLL('state_experimental'), 'test' => $GLOBALS['LANG']->getLL('state_test'), 'obsolete' => $GLOBALS['LANG']->getLL('state_obsolete'), 'excludeFromUpdates' => $GLOBALS['LANG']->getLL('state_exclude_from_updates')); /** * "TYPE" information; labels, paths, description etc. */ $this->typeLabels = array('S' => $GLOBALS['LANG']->getLL('type_system'), 'G' => $GLOBALS['LANG']->getLL('type_global'), 'L' => $GLOBALS['LANG']->getLL('type_local')); $this->typeDescr = array('S' => $GLOBALS['LANG']->getLL('descr_system'), 'G' => $GLOBALS['LANG']->getLL('descr_global'), 'L' => $GLOBALS['LANG']->getLL('descr_local')); // Setting paths of install scopes: $this->typePaths = array('S' => TYPO3_mainDir . 'sysext/', 'G' => TYPO3_mainDir . 'ext/', 'L' => 'typo3conf/ext/'); $this->typeBackPaths = array('S' => '../../../', 'G' => '../../../', 'L' => '../../../../' . TYPO3_mainDir); $this->privacyNotice = $GLOBALS['LANG']->getLL('privacy_notice'); $securityMessage = $GLOBALS['LANG']->getLL('security_warning_extensions') . '<br /><br />' . sprintf($GLOBALS['LANG']->getLL('security_descr'), '<a href="http://typo3.org/teams/security/" target="_blank">', '</a>'); $flashMessage = t3lib_div::makeInstance('t3lib_FlashMessage', $securityMessage, $GLOBALS['LANG']->getLL('security_header'), t3lib_FlashMessage::INFO); $this->securityHint = $flashMessage->render(); $this->excludeForPackaging = $GLOBALS['TYPO3_CONF_VARS']['EXT']['excludeForPackaging']; // Setting module configuration: $this->MCONF = $GLOBALS['MCONF']; // Setting GPvars: $this->CMD = is_array(t3lib_div::_GP('CMD')) ? t3lib_div::_GP('CMD') : array(); $this->lookUpStr = trim(t3lib_div::_GP('lookUp')); $this->listRemote = t3lib_div::_GP('ter_connect'); $this->listRemote_search = trim(t3lib_div::_GP('ter_search')); // Configure menu $this->menuConfig(); // Setting internal static: if ($TYPO3_CONF_VARS['EXT']['allowSystemInstall']) { $this->systemInstall = 1; } $this->requiredExt = t3lib_div::trimExplode(',', $TYPO3_CONF_VARS['EXT']['requiredExt'], 1); // Initialize helper object $this->terConnection = t3lib_div::makeInstance('SC_mod_tools_em_terconnection'); $this->terConnection->emObj = $this; $this->terConnection->wsdlURL = $TYPO3_CONF_VARS['EXT']['em_wsdlURL']; $this->xmlhandler = t3lib_div::makeInstance('SC_mod_tools_em_xmlhandler'); $this->xmlhandler->emObj = $this; $this->xmlhandler->useObsolete = $this->MOD_SETTINGS['display_obsolete']; // Initialize Document Template object: $this->doc = t3lib_div::makeInstance('template'); $this->doc->backPath = $BACK_PATH; $this->doc->setModuleTemplate('templates/em_index.html'); // JavaScript $this->doc->JScode = $this->doc->wrapScriptTags(' script_ended = 0; function jumpToUrl(URL) { // window.location.href = URL; } '); // Reload left frame menu if ($this->CMD['refreshMenu']) { $this->doc->JScode .= $this->doc->wrapScriptTags(' if(top.refreshMenu) { top.refreshMenu(); } else { top.TYPO3ModuleMenu.refreshMenu(); } '); } // Descriptions: $this->descrTable = '_MOD_' . $this->MCONF['name']; if ($BE_USER->uc['edit_showFieldHelp']) { $LANG->loadSingleTableDescription($this->descrTable); } // Setting username/password etc. for upload-user: $this->fe_user['username'] = $this->MOD_SETTINGS['fe_u']; $this->fe_user['password'] = $this->MOD_SETTINGS['fe_p']; parent::init(); $this->handleExternalFunctionValue('singleDetails'); }
/** * Standard init function of a module. * * @return void */ function init() { global $BE_USER, $LANG, $BACK_PATH, $TYPO3_CONF_VARS; /** * Extension Categories (static var) * Content must be redundant with the same internal variable as in class.tx_extrep.php! */ $this->categories = array('be' => $GLOBALS['LANG']->getLL('category_BE'), 'module' => $GLOBALS['LANG']->getLL('category_BE_modules'), 'fe' => $GLOBALS['LANG']->getLL('category_FE'), 'plugin' => $GLOBALS['LANG']->getLL('category_FE_plugins'), 'misc' => $GLOBALS['LANG']->getLL('category_miscellanous'), 'services' => $GLOBALS['LANG']->getLL('category_services'), 'templates' => $GLOBALS['LANG']->getLL('category_templates'), 'example' => $GLOBALS['LANG']->getLL('category_examples'), 'doc' => $GLOBALS['LANG']->getLL('category_documentation')); /** * Extension States * Content must be redundant with the same internal variable as in class.tx_extrep.php! */ $this->states = tx_em_Tools::getStates(); $this->script = 'mod.php?M=tools_em'; $this->privacyNotice = $GLOBALS['LANG']->getLL('privacy_notice'); $securityMessage = $GLOBALS['LANG']->getLL('security_warning_extensions') . '<br /><br />' . sprintf($GLOBALS['LANG']->getLL('security_descr'), '<a href="http://typo3.org/teams/security/" target="_blank">', '</a>'); $flashMessage = t3lib_div::makeInstance('t3lib_FlashMessage', $securityMessage, $GLOBALS['LANG']->getLL('security_header'), t3lib_FlashMessage::INFO); $this->securityHint = $flashMessage->render(); $this->excludeForPackaging = $GLOBALS['TYPO3_CONF_VARS']['EXT']['excludeForPackaging']; // Setting module configuration: $this->MCONF = $GLOBALS['MCONF']; // Setting GPvars: $this->CMD = is_array(t3lib_div::_GP('CMD')) ? t3lib_div::_GP('CMD') : array(); $this->lookUpStr = trim(t3lib_div::_GP('lookUp')); $this->listRemote = t3lib_div::_GP('ter_connect'); $this->listRemote_search = trim(t3lib_div::_GP('ter_search')); $this->noDocHeader = intval(t3lib_div::_GP('nodoc') > 0); $this->settings = t3lib_div::makeInstance('tx_em_Settings'); $this->install = t3lib_div::makeInstance('tx_em_Install', $this); if (t3lib_div::_GP('silentMode') || $this->noDocHeader) { $this->CMD['silentMode'] = 1; $this->noDocHeader = 1; } if ($this->CMD['silentMode']) { $this->install->setSilentMode(TRUE); } // Configure menu $this->menuConfig(); // Setting internal static: $this->requiredExt = t3lib_div::trimExplode(',', t3lib_extMgm::getRequiredExtensionList(), TRUE); // Initialize Document Template object: $this->doc = t3lib_div::makeInstance('template'); $this->doc->backPath = $BACK_PATH; $this->doc->setModuleTemplate('templates/em_index.html'); // Initialize helper objects $this->api = t3lib_div::makeInstance('tx_em_API'); $this->terConnection = t3lib_div::makeInstance('tx_em_Connection_Ter', $this); $this->terConnection->wsdlURL = $TYPO3_CONF_VARS['EXT']['em_wsdlURL']; $this->xmlHandler = t3lib_div::makeInstance('tx_em_Tools_XmlHandler'); $this->xmlHandler->emObj = $this; $this->xmlHandler->useObsolete = $this->MOD_SETTINGS['display_obsolete']; // Initialize newListing if (isset($this->MOD_MENU['function']['extensionmanager'])) { $this->extensionmanager = t3lib_div::makeInstance('tx_em_ExtensionManager', $this); } else { $this->extensionmanager =& $this; } // Output classes $this->extensionList = t3lib_div::makeInstance('tx_em_Extensions_List', $this); $this->extensionDetails = t3lib_div::makeInstance('tx_em_Extensions_Details', $this); $this->translations = t3lib_div::makeInstance('tx_em_Translations', $this); // the id is needed for getting same styles TODO: general table styles $this->doc->bodyTagId = 'typo3-mod-tools-em-index-php'; // JavaScript $this->doc->JScode = $this->doc->wrapScriptTags(' script_ended = 0; function jumpToUrl(URL) { // window.location.href = URL; } '); // Reload left frame menu if ($this->CMD['refreshMenu']) { $this->doc->JScode .= $this->doc->wrapScriptTags(' if(top.refreshMenu) { top.refreshMenu(); } else { top.TYPO3ModuleMenu.refreshMenu(); } '); } // Descriptions: $this->descrTable = '_MOD_' . $this->MCONF['name']; if ($BE_USER->uc['edit_showFieldHelp']) { $LANG->loadSingleTableDescription($this->descrTable); } // Setting username/password etc. for upload-user: $this->fe_user['username'] = $this->MOD_SETTINGS['fe_u']; $this->fe_user['password'] = $this->MOD_SETTINGS['fe_p']; parent::init(); $this->handleExternalFunctionValue('singleDetails'); }
/** * Initializes the module. See <code>t3lib_SCbase::init()</code> for more information. * * @return void */ function init() { // Setting module configuration: $this->MCONF = $GLOBALS['MCONF']; // Initialize Document Template object: $this->doc = t3lib_div::makeInstance('template'); $this->doc->backPath = $GLOBALS['BACK_PATH']; $this->doc->setModuleTemplate('templates/ws_forms.html'); $this->doc->form = '<form action="' . t3lib_div::getIndpEnv('SCRIPT_NAME') . '" method="post" enctype="' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['form_enctype'] . '" name="editform" onsubmit="return TBE_EDITOR.checkSubmit(1);">'; $this->doc->getContextMenuCode(); // Parent initialization: t3lib_SCbase::init(); }
/** * Initializes the Module * @return void */ function init() { global $BE_USER, $LANG, $BACK_PATH, $TCA_DESCR, $TCA, $CLIENT, $TYPO3_CONF_VARS; parent::init(); }
/** * Initializes the Module * @return void */ function init() { global $BE_USER, $LANG, $BACK_PATH, $TCA_DESCR, $TCA, $CLIENT, $TYPO3_CONF_VARS; parent::init(); $this->node_id = $_GET['id']; }
/** * Initialisation of this backend module * * @return void * @access public */ function init() { parent::init(); $this->MOD_SETTINGS = t3lib_BEfunc::getModuleData($this->MOD_MENU, t3lib_div::_GP('SET'), $this->MCONF['name']); $this->altRoot = t3lib_div::_GP('altRoot'); $this->versionId = t3lib_div::_GP('versionId'); // Fill array allAvailableLanguages and currently selected language (from language selector or from outside) $this->allAvailableLanguages = $this->getAvailableLanguages(0, true, true, true); $this->currentLanguageKey = $this->allAvailableLanguages[$this->MOD_SETTINGS['language']]['ISOcode']; $this->currentLanguageUid = $this->allAvailableLanguages[$this->MOD_SETTINGS['language']]['uid']; // If no translations exist for this page, set the current language to default (as there won't be a language selector) $this->translatedLanguagesArr = $this->getAvailableLanguages($this->id); if (count($this->translatedLanguagesArr) == 1) { // Only default language exists $this->currentLanguageKey = 'DEF'; } // Set translator mode if the default langauge is not accessible for the user: if (!$GLOBALS['BE_USER']->checkLanguageAccess(0) && !$GLOBALS['BE_USER']->isAdmin()) { $this->translatorMode = TRUE; } // Initialize side bar and wizards: $this->sideBarObj =& t3lib_div::getUserObj('&tx_templavoila_mod1_sidebar', ''); $this->sideBarObj->init($this); $this->sideBarObj->position = isset($this->modTSconfig['properties']['sideBarPosition']) ? $this->modTSconfig['properties']['sideBarPosition'] : 'toptabs'; $this->wizardsObj = t3lib_div::getUserObj('&tx_templavoila_mod1_wizards', ''); $this->wizardsObj->init($this); // Initialize TemplaVoila API class: $apiClassName = t3lib_div::makeInstanceClassName('tx_templavoila_api'); $this->apiObj = new $apiClassName($this->altRoot ? $this->altRoot : 'pages'); // Initialize the clipboard $this->clipboardObj =& t3lib_div::getUserObj('&tx_templavoila_mod1_clipboard', ''); $this->clipboardObj->init($this); // Initialize the record module $this->recordsObj =& t3lib_div::getUserObj('&tx_templavoila_mod1_records', ''); $this->recordsObj->init($this); }
/** * Initializes the module. See <code>t3lib_SCbase::init()</code> for more information. * * @return void */ function init() { // Setting module configuration: $this->MCONF = $GLOBALS['MCONF']; $this->isSwap = t3lib_div::_GP('swap'); $this->nextRecordNumber = t3lib_div::_GP('continue_publish'); // Initialize Document Template object: $this->doc = t3lib_div::makeInstance('mediumDoc'); $this->doc->backPath = $GLOBALS['BACK_PATH']; $this->doc->JScode = '<script type="text/javascript">/*<![CDATA[*/ function closeAndReload() { //window.opener.location.reload(); window.close(); window.location.href = \'index.php\'; } function nextPortion(val) { setTimeout(\'window.location.href = "publish.php?continue_publish=\' + val + \'&swap=' . ($this->isSwap ? 1 : 0) . '"\', 750); } /*]]>*/</script> '; $this->doc->inDocStyles = ' #progress-block { width: 450px; margin: 50px auto; text-align: center; } H3 { margin-bottom: 20px; } P, IMG { margin-bottom: 20px; } #progress-block A { text-decoration: underline; } '; // Parent initialization: t3lib_SCbase::init(); }
/** * Initializes the backend module by setting internal variables, initializing the menu. * * @access public * * @return void */ public function __construct() { $GLOBALS['BE_USER']->modAccess($GLOBALS['MCONF'], 1); $GLOBALS['LANG']->includeLLFile('EXT:' . $this->extKey . '/modules/' . $this->modPath . 'locallang.xml'); $this->setMOD_MENU(); parent::init(); $this->conf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$this->extKey]); $this->pageInfo = t3lib_BEfunc::readPageAccess($this->id, $this->perms_clause); $this->doc = t3lib_div::makeInstance('template'); $this->doc->setModuleTemplate('EXT:' . $this->extKey . '/modules/' . $this->modPath . 'template.tmpl'); $this->doc->getPageRenderer()->addCssFile(t3lib_extMgm::extRelPath($this->extKey) . 'res/backend.css'); $this->doc->backPath = $GLOBALS['BACK_PATH']; $this->doc->bodyTagAdditions = 'class="ext-' . $this->extKey . '-modules"'; $this->doc->form = '<form action="" method="post" enctype="multipart/form-data">'; $this->data = t3lib_div::_GPmerged($this->prefixId); }
/** * Initializes the Module * * @return void */ public function init() { global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS; global $MCONF; parent::init(); // Fetch module args $this->_moduleArgs = array(); if( !empty($_GET[ $MCONF['name'] ]) ) { $this->_moduleArgs = (array)$_GET[ $MCONF['name'] ]; } // Init form protection instance $this->_formProtection = t3lib_div::makeInstance('t3lib_formprotection_BackendFormProtection'); }
/** * Standard init function of a module. * * @return void */ function init() { global $BACK_PATH, $BE_USER; // Setting module configuration: $this->MCONF = $GLOBALS['MCONF']; // Initialize Document Template object: $this->doc = t3lib_div::makeInstance('template'); $this->doc->backPath = $BACK_PATH; $this->doc->setModuleTemplate('templates/ws.html'); // JavaScript $this->doc->JScode = $this->doc->wrapScriptTags(' script_ended = 0; function jumpToUrl(URL) { // window.location.href = URL; } function expandCollapse(rowNumber) { elementId = "wl_" + rowNumber; element = document.getElementById(elementId); image = document.getElementById("spanw1_" + rowNumber); if (element.style) { if (element.style.display == "none") { element.style.display = "table-row"; image.className = "t3-icon t3-icon-actions t3-icon-actions-view t3-icon-view-table-collapse"; } else { element.style.display = "none"; image.className = "t3-icon t3-icon-actions t3-icon-actions-view t3-icon-view-table-expand"; } } } '); $this->doc->form = '<form action="index.php" method="post" name="pageform">'; // Setting up the context sensitive menu: $this->doc->getContextMenuCode(); // Add JS for dynamic tabs: $this->doc->JScode .= $this->doc->getDynTabMenuJScode(); // Setting publish access permission for workspace: $this->publishAccess = $BE_USER->workspacePublishAccess($BE_USER->workspace); // Parent initialization: parent::init(); }
/** * Initialise the plugin * * @return void */ function init() { global $MCONF; // Get extension configuration $this->extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$MCONF['extKey']]); if (empty($this->extConf['entriesPerPage'])) { $this->extConf['entriesPerPage'] = $this->defaultEntriesPerPage; } // Get log run list $this->getLogRuns(); // Clean up excess logs (if activated) if ($this->extConf['autoCleanup']) { $this->logGC(); } // Get and store the GET and POST variables $this->setVars = t3lib_div::_GP('SET'); parent::init(); $this->selectLog(); // Set key for CSH $this->cshKey = '_MOD_' . $MCONF['name']; // Assemble a base URL, without parameters, but with CSRF token $this->baseUrl = t3lib_BEfunc::getModuleUrl($GLOBALS['MCONF']['name']); }
function init() { parent::init(); $this->extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['templavoila']); }
/** * Initializes the Module * @return void */ function init() { // get extension configuration $this->confArray = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$this->extKey]); $this->configXML['groups'] = array(); $this->configXML['groups_missing'] = array(); // get the XML-Config from jQuery if ($this->confArray['jQueryVersion']) { $version = $this->confArray['jQueryVersion']; $array_name = 'groups'; } else { $version = $this->jQueryVersionOrig; $array_name = 'groups_missing'; } $this->jQueryConfig = tx_t3jquery::getJqueryConfiguration($version); if (count($this->jQueryConfig['groups']) > 0) { $this->configXML[$array_name] = $this->jQueryConfig['groups']; } // Get the XML-Config from jQuery UI if ($this->confArray['jQueryUiVersion']) { $version = $this->confArray['jQueryUiVersion']; $array_name = 'groups'; } else { $version = $this->jQueryUiVersionOrig; $array_name = 'groups_missing'; } $this->jQueryUiConfig = tx_t3jquery::getJqueryUiConfiguration($version); if (count($this->jQueryUiConfig['groups']) > 0) { foreach ($this->jQueryUiConfig['groups'] as $group) { $this->configXML[$array_name][] = $group; } } // Get the XML-Config from jQuery TOOLS if ($this->confArray['jQueryTOOLSVersion']) { $version = $this->confArray['jQueryTOOLSVersion']; $array_name = 'groups'; } else { $version = $this->jQueryTOOLSVersionOrig; $array_name = 'groups_missing'; } $this->jQueryTOOLSConfig = tx_t3jquery::getJqueryToolsConfiguration($version); if (count($this->jQueryTOOLSConfig['groups']) > 0) { foreach ($this->jQueryTOOLSConfig['groups'] as $group) { $this->configXML[$array_name][] = $group; } } // Get the XML-Config from jQuery Bootstrap if ($this->confArray['jQueryBootstrapVersion']) { $version = $this->confArray['jQueryBootstrapVersion']; $array_name = 'groups'; } else { $version = $this->jQueryBootstrapVersionOrig; $array_name = 'groups_missing'; } $this->jQueryBootstrapConfig = tx_t3jquery::getJqueryBootstrapConfiguration($version); if (count($this->jQueryBootstrapConfig['groups']) > 0) { foreach ($this->jQueryBootstrapConfig['groups'] as $group) { $this->configXML[$array_name][] = $group; } } // Define the language object $this->LANG = $GLOBALS['LANG']; // Define the used file directory $this->configDir = PATH_site . tx_t3jquery::getJqPath(); if (! is_dir($this->configDir)) { $this->configDir = PATH_site . 'uploads/tx_t3jquery/'; } $this->createFolder(); $this->initConfig(); parent::init(); }
/** * Constructor * * @return void */ public function __construct() { // prepare configuration $this->prepareConfig(); // set error wrap $errorWrap = '<p class="tx-lfeditor-error">|</p>'; $noticeWrap = '<p class="tx-lfeditor-notice">|</p>'; LFException::setWrap($errorWrap, $noticeWrap); parent::init(); }