/**
	 * Main function, returning the HTML content of the module
	 *
	 * @return	string		HTML
	 */
	function main()	{

		require_once(t3lib_extMgm::extPath(STATIC_INFO_TABLES_EXTkey).'class.tx_staticinfotables_encoding.php');

		$tableArray = array ('static_countries', 'static_country_zones', 'static_languages', 'static_currencies');

		$content = '';
		$content.= '<br />Convert character encoding of the static info tables.';
		$content.= '<br />The default encoding is UTF-8.';
		$destEncoding = htmlspecialchars(t3lib_div::_GP('dest_encoding'));

		if(t3lib_div::_GP('convert') AND ($destEncoding != '')) {
			foreach ($tableArray as $table) {
				$content .= '<p>'.htmlspecialchars($table.' > '.$destEncoding).'</p>';
				tx_staticinfotables_encoding::convertEncodingTable($table, 'utf-8', $destEncoding);
			}
			$content .= '<p>You must enter the charset \''.$destEncoding.'\' now manually in the EM for static_info_tables!</p>';
			$content .= '<p>Done</p>';
		} else {
			$content .= '<form name="static_info_tables_form" action="'.htmlspecialchars(t3lib_div::linkThisScript()).'" method="post">';
			$linkScript = t3lib_div::slashJS(t3lib_div::linkThisScript());
			$content .= '<br /><br />';
			$content .= 'This conversion works only once. When you converted the tables and you want to do it again to another encoding you have to reinstall the tables with the Extension Manager or select \'UPDATE!\'.';
			$content .= '<br /><br />';
			$content .= 'Destination character encoding:';
			$content .= '<br />'.tx_staticinfotables_encoding::getEncodingSelect('dest_encoding', '', '', $TYPO3_CONF_VARS['EXTCONF'][STATIC_INFO_TABLES_EXTkey]['charset']);
			$content .= '<br /><br />';
			$content .= '<input type="submit" name="convert" value="Convert"  onclick="this.form.action=\''.$linkScript.'\';submit();" />';
			$content .= '</form>';
		}

		return $content;

	}
 public function __construct(Tx_Formhandler_Component_Manager $componentManager, Tx_Formhandler_Configuration $configuration)
 {
     parent::__construct($componentManager, $configuration);
     require_once t3lib_extMgm::extPath('formhandler') . 'Resources/PHP/class.formhandler_htmlmail.php';
     $this->emailObj = t3lib_div::makeInstance('formhandler_htmlmail');
     $this->emailObj->start();
 }
Esempio n. 3
0
 /**
  * lädt die HybridAuth Klassen
  *
  * @return void
  */
 private static function loadHybridAuth()
 {
     if (!class_exists('Hybrid_Auth')) {
         require_once t3lib_extMgm::extPath('t3socials', '/lib/hybridauth/Hybrid/Auth.php');
         require_once t3lib_extMgm::extPath('t3socials', '/lib/hybridauth/Hybrid/Endpoint.php');
     }
 }
 /**
  * Main function, returning the HTML content of the module
  *
  * @return	string		HTML
  */
 function main()
 {
     $content = '';
     $content .= '<br />Update the Static Info Tables with new language labels.';
     $content .= '<br />';
     if (t3lib_div::_GP('import')) {
         $destEncoding = t3lib_div::_GP('dest_encoding');
         $extPath = t3lib_extMgm::extPath('static_info_tables_it');
         $fileContent = explode("\n", t3lib_div::getUrl($extPath . 'ext_tables_static_update.sql'));
         foreach ($fileContent as $line) {
             if ($line = trim($line) and preg_match('#^UPDATE#i', $line)) {
                 $query = $this->getUpdateEncoded($line, $destEncoding);
                 $res = $GLOBALS['TYPO3_DB']->admin_query($query);
             }
         }
         $content .= '<br />';
         $content .= '<p>Encoding: ' . htmlspecialchars($destEncoding) . '</p>';
         $content .= '<p>Done.</p>';
     } elseif (t3lib_extMgm::isLoaded('static_info_tables_it')) {
         $content .= '</form>';
         $content .= '<form action="' . htmlspecialchars(t3lib_div::linkThisScript()) . '" method="post">';
         $content .= '<br />Destination character encoding:';
         $content .= '<br />' . tx_staticinfotables_encoding::getEncodingSelect('dest_encoding', '', 'utf-8');
         $content .= '<br />(The character encoding must match the encoding of the existing tables data. By default this is UTF-8.)';
         $content .= '<br /><br />';
         $content .= '<input type="submit" name="import" value="Import" />';
         $content .= '</form>';
     } else {
         $content .= '<br /><strong>The extension needs to be installed first!</strong>';
     }
     return $content;
 }
 public function user_rgsg($content, $conf)
 {
     $sysPageObj = t3lib_div::makeInstance('t3lib_pageSelect');
     $rootLine = $sysPageObj->getRootLine($GLOBALS['TSFE']->id);
     $TSObj = t3lib_div::makeInstance('t3lib_tsparser_ext');
     $TSObj->tt_track = 0;
     $TSObj->init();
     $TSObj->runThroughTemplates($rootLine);
     $TSObj->generateConfig();
     $this->conf = $TSObj->setup['plugin.']['tx_rgsmoothgallery_pi1.'];
     $split = strpos($GLOBALS['TSFE']->currentRecord, ':');
     $id = substr($GLOBALS['TSFE']->currentRecord, $split + 1);
     $where = 'uid =' . $id;
     $table = 'tt_content';
     $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('imagewidth,imageheight', $table, $where, $groupBy = '', $orderBy, $limit = '');
     $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
     $css .= $row['imagewidth'] ? 'width:' . $row['imagewidth'] . 'px;' : '';
     $css .= $row['imageheight'] ? 'height:' . $row['imageheight'] . 'px;' : '';
     $GLOBALS['TSFE']->additionalCSS['rgsmoothgallery' . $id] = '#myGallery' . $id . ' {' . $css . '}';
     if (t3lib_extMgm::isLoaded('t3mootools')) {
         require_once t3lib_extMgm::extPath('t3mootools') . 'class.tx_t3mootools.php';
     }
     if (defined('T3MOOTOOLS')) {
         tx_t3mootools::addMooJS();
     } else {
         $header .= $this->getPath($this->conf['pathToMootools']) ? '<script src="' . $this->getPath($this->conf['pathToMootools']) . '" type="text/javascript"></script>' : '';
         $header .= $this->getPath($this->conf['pathToMootoolsMore']) ? '<script src="' . $this->getPath($this->conf['pathToMootoolsMore']) . '" type="text/javascript"></script>' : '';
     }
     // path to js + css
     $GLOBALS['TSFE']->additionalHeaderData['rgsmoothgallery'] = $header . '
     <script src="' . $this->getPath($this->conf['pathToJdgalleryJS']) . '" type="text/javascript"></script>
     <link rel="stylesheet" href="' . $this->getPath($this->conf['pathToJdgalleryCSS']) . '" type="text/css" media="screen" />
   ';
     return $content;
 }
 private function fetchPhpHooks()
 {
     $hooksFileBasepath = t3lib_extMgm::extPath('t3tt') . 'Resources/Private/PHP/Transition/';
     // TODO: make this configurable
     $hooksFile = $hooksFileBasepath . $this->_transformationRequest->getPhpHooksFile();
     $this->_phpHookAggregation = (array) (include_once $hooksFile);
 }
 /**
  * Initialize handler
  *
  * @param	array		Configuration from DBAL
  * @param	object		Parent object
  * @return	boolean		True on success.
  */
 function init($config, $pObj)
 {
     $this->config = $config['config'];
     if (t3lib_extMgm::isLoaded('libunzipped')) {
         // Include Unzip library:
         require_once t3lib_extMgm::extPath('libunzipped') . 'class.tx_libunzipped.php';
         // Find database file:
         $sxc_file = t3lib_div::getFileAbsFileName($this->config['sxc_file']);
         if (@is_file($sxc_file)) {
             // Initialize Unzip object:
             $this->unzip = t3lib_div::makeInstance('tx_libunzipped');
             $this->spreadSheetFiles = $this->unzip->init($sxc_file);
             if (is_array($this->spreadSheetFiles)) {
                 return TRUE;
             } else {
                 $this->errorStatus = 'Spreadsheet could not be unzipped...?';
             }
         } else {
             $this->errorStatus = 'The Spreadsheet file "' . $sxc_file . '" was not found!';
         }
     } else {
         $this->errorStatus = 'This data handler needs the extension "tx_libunzipped" to be installed!';
     }
     return FALSE;
 }
 function initialize_editor($pageId, $template_uid = 0)
 {
     // Initializes the module. Done in this function because we may need to re-initialize if data is submitted!
     global $tmpl, $tplRow, $theConstants;
     $tmpl = t3lib_div::makeInstance("t3lib_tsparser_ext");
     // Defined global here!
     $tmpl->tt_track = 0;
     // Do not log time-performance information
     $tmpl->init();
     $tmpl->ext_localGfxPrefix = t3lib_extMgm::extPath("tstemplate_ceditor");
     $tmpl->ext_localWebGfxPrefix = $GLOBALS["BACK_PATH"] . t3lib_extMgm::extRelPath("tstemplate_ceditor");
     $tplRow = $tmpl->ext_getFirstTemplate($pageId, $template_uid);
     // Get the row of the first VISIBLE template of the page. whereclause like the frontend.
     if (is_array($tplRow)) {
         // IF there was a template...
         // Gets the rootLine
         $sys_page = t3lib_div::makeInstance("t3lib_pageSelect");
         $rootLine = $sys_page->getRootLine($pageId);
         $tmpl->runThroughTemplates($rootLine, $template_uid);
         // This generates the constants/config + hierarchy info for the template.
         $theConstants = $tmpl->generateConfig_constants();
         // The editable constants are returned in an array.
         $tmpl->ext_categorizeEditableConstants($theConstants);
         // The returned constants are sorted in categories, that goes into the $tmpl->categories array
         $tmpl->ext_regObjectPositions($tplRow["constants"]);
         // This array will contain key=[expanded constantname], value=linenumber in template. (after edit_divider, if any)
         return 1;
     }
 }
Esempio n. 9
0
 /**
  * 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']);
     }
 }
 /**
  * Adds onchange listener on the drop down menu "predefined".
  * If the event is fired and old value was ".default", then empty some fields.
  *
  * @param array $config
  * @return string the javascript
  * @author Fabien Udriot
  */
 function addFields_predefinedJS($config)
 {
     $newRecord = 'true';
     if ($config['row']['pi_flexform'] != '') {
         $flexData = t3lib_div::xml2array($config['row']['pi_flexform']);
         if (isset($flexData['data']['sDEF']['lDEF']['predefined'])) {
             $newRecord = 'false';
         }
     }
     $uid = key($GLOBALS['SOBE']->editconf['tt_content']);
     if ($uid < 0 || empty($uid) || !strstr($uid, 'NEW')) {
         $uid = $GLOBALS['SOBE']->elementsData[0]['uid'];
     }
     //print_r($GLOBALS['SOBE']->elementsData[0]);
     $js = "<script>\n";
     $js .= "/*<![CDATA[*/\n";
     $divId = $GLOBALS['SOBE']->tceforms->dynNestedStack[0][1];
     if (!$divId) {
         //$divId = 'DTM-' . $uid;
         $divId = "DIV.c-tablayer";
     } else {
         $divId .= "-DIV";
     }
     $js .= "var uid = '" . $uid . "'\n";
     $js .= "var flexformBoxId = '" . $divId . "'\n";
     //$js .= "var flexformBoxId = 'DIV.c-tablayer'\n";
     $js .= "var newRecord = " . $newRecord . "\n";
     $js .= file_get_contents(t3lib_extMgm::extPath('formhandler') . 'Resources/JS/addFields_predefinedJS.js');
     $js .= "/*]]>*/\n";
     $js .= "</script>\n";
     return $js;
 }
 /**
  * Constructor
  */
 function tx_kickstarter_wizard()
 {
     $this->modData = t3lib_div::_POST($this->varPrefix);
     $version = class_exists('t3lib_utility_VersionNumber') ? t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) : t3lib_div::int_from_ver(TYPO3_version);
     if ($version < 4006000) {
         $LOCAL_LANG = t3lib_div::readLLXMLfile(t3lib_extMgm::extPath('setup') . '/mod/locallang.xml', 'default');
         // Getting the available languages
         $theLanguages = t3lib_div::trimExplode('|', TYPO3_languages);
     } else {
         /** @var $xliffParser t3lib_l10n_parser_Xliff */
         $xliffParser = t3lib_div::makeInstance('t3lib_l10n_parser_Xliff');
         $LOCAL_LANG = $xliffParser->getParsedData(t3lib_extMgm::extPath('setup') . '/mod/locallang.xlf', 'default');
         /** @var $locales t3lib_l10n_Locales */
         $locales = t3lib_div::makeInstance('t3lib_l10n_Locales');
         // Getting the available languages
         $theLanguages = $locales->getLocales();
     }
     foreach ($theLanguages as $val) {
         if ($val !== 'default') {
             if ($version < 4006000) {
                 $localLabel = htmlspecialchars($LOCAL_LANG['default']['lang_' . $val]);
             } else {
                 $localLabel = htmlspecialchars($LOCAL_LANG['default']['lang_' . $val][0]['target']);
             }
             $this->languages[$val] = $localLabel;
         }
     }
     asort($this->languages);
     // init reserved words
     $resWords = t3lib_div::makeInstance('tx_kickstarter_reservedWords');
     $this->reservedWords = $resWords->getReservedWords();
 }
Esempio n. 12
0
 /**
  * @param String (FILENAME) $filename
  */
 public function __construct($filename)
 {
     $filepath = t3lib_extMgm::extPath('t3tt') . 'Resources/Private/XSLT/Stylesheets/Snippets/';
     if (!file_exists($filepath . $filename)) {
         throw new Tx_T3tt_Domain_Model_Exception_InvalidParamsException("Given Snippetfile `" . $filepath . $filename . "' does not exist.");
     }
     $this->_filename = $filepath . $filename;
 }
 /**
  * Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file.
  *
  * @return	The array with language labels
  */
 function includeLocalLang()
 {
     $llFile = t3lib_extMgm::extPath('ameos_formidable') . 'locallang.xml';
     if (function_exists("t3lib_div::readLLXMLfile")) {
         $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
     }
     return $LOCAL_LANG;
 }
 /**
  * Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file.
  *
  * @return	The array with language labels
  */
 function includeLocalLang()
 {
     $llFile = t3lib_extMgm::extPath('newssdf') . 'locallang.xml';
     // Patch suggested by Marc Neuhaus on forge, concerning TYPO3 v. 6.0 compatibility; Manually applied by RICC
     $LOCAL_LANG = tx_ttnews_compatibility::getInstance()->readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
     //$LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
     return $LOCAL_LANG;
 }
 function proc($wizardItems)
 {
     global $LANG;
     // get language file
     include t3lib_extMgm::extPath('sema_sourcecode') . 'pi1/locallang.php';
     $wizardItems["plugins_tx_semasourcecode_pi1"] = array("icon" => t3lib_extMgm::extRelPath("sema_sourcecode") . "pi1/ce_wiz.gif", "title" => $LANG->getLLL('ext_title', $LOCAL_LANG), "description" => $LANG->getLLL('ext_desc', $LOCAL_LANG), "params" => "&defVals[tt_content][CType]=list&defVals[tt_content][list_type]=sema_sourcecode_pi1");
     return $wizardItems;
 }
 /**
  * Get the locallang for class use out of an XML file
  *
  * @return  array   Array of the locallang data
  */
 function getLL()
 {
     $path2llXml = t3lib_extMgm::extPath('pdfcontroller') . 'locallang_db.xml';
     $llXml = implode('', file($path2llXml));
     $arr_ll = t3lib_div::xml2array($llXml, $NSprefix = '', $reportDocTag = false);
     $LOCAL_LANG = $arr_ll['data'];
     return $LOCAL_LANG;
 }
 /**
  * The constructor for a finisher setting the component manager and the configuration.
  *
  * @param Tx_Formhandler_Component_Manager $componentManager
  * @param Tx_Formhandler_Configuration $configuration
  * @author Reinhard Führicht <*****@*****.**>
  * @return void
  */
 public function __construct(Tx_Formhandler_Component_Manager $componentManager, Tx_Formhandler_Configuration $configuration)
 {
     $this->componentManager = $componentManager;
     $this->configuration = $configuration;
     $this->templatePath = t3lib_extMgm::extPath('formhandler') . 'Resources/HTML/backend/';
     $this->templateFile = $this->templatePath . 'template.html';
     $this->templateCode = t3lib_div::getURL($this->templateFile);
 }
 /**
  * @return void
  */
 protected function connectXmpp()
 {
     require_once t3lib_extMgm::extPath('caretaker', 'res/php/xmpphp/XMPPHP/XMPP.php');
     $this->connection = new XMPPHP_XMPP($this->config['host'], $this->config['port'], $this->config['user'], $this->config['password'], $this->config['resource'], $this->config['server']);
     // TODO configurable: $this->connection->useEncryption(FALSE);
     $this->connection->connect();
     $this->connection->processUntil('session_start');
 }
 /**
  * init method to load translation data and set log table.
  *
  * @global $LANG
  * @return void
  */
 protected function init()
 {
     global $LANG;
     $LANG->includeLLFile('EXT:formhandler/Resources/Language/locallang.xml');
     $templatePath = t3lib_extMgm::extPath('formhandler') . 'Resources/HTML/backend/';
     $templateFile = $templatePath . 'template.html';
     $this->templateCode = t3lib_div::getURL($templateFile);
 }
 /**
  * Constructor
  *
  * @param SC_mod_tools_em_index $parentObject
  */
 public function __construct($parentObject = NULL)
 {
     $GLOBALS['LANG']->includeLLFile(t3lib_extMgm::extPath('em', 'language/locallang.xml'));
     $this->parentObject = $parentObject;
     $this->api = t3lib_div::makeInstance('tx_em_API');
     $this->install = t3lib_div::makeInstance('t3lib_install');
     $this->install->INSTALL = t3lib_div::_GP('TYPO3_INSTALL');
     $this->systemInstall = isset($GLOBALS['TYPO3_CONF_VARS']['EXT']['allowSystemInstall']) && $GLOBALS['TYPO3_CONF_VARS']['EXT']['allowSystemInstall'];
 }
Esempio n. 21
0
 function __construct()
 {
     // ensure no one else has loaded lessc already ;)
     if (!class_exists('\\Leafo\\ScssPhp\\Compiler')) {
         include_once t3lib_extMgm::extPath('dyncss_scss') . 'Resources/Private/Php/scss/scss.inc.php';
     }
     // build instance to usage
     $this->parser = new \Leafo\ScssPhp\Compiler();
 }
 public function step3Action()
 {
     $dstFolder = '<YOUR_FLOW3_ROOT>/Packages/Sites/TYPO3.$siteKey/Resources/Private/Content';
     $this->flashMessageContainer->add("Alright, now put the Sites.xml into " . $dstFolder, ':)', t3lib_FlashMessage::INFO);
     $target = t3lib_extMgm::extPath('t3tt') . 'Resources/Private/Data/Output.xml';
     $link = PATH_site . '/fileadmin/t3tt/Output.xml';
     symlink($target, $link);
     $this->view->assign('downloadFile', $link);
 }
 /**
  * Helper function to check for a working diff tool on a system.
  *
  * Tests same file to be sure there is not any error message.
  *
  * @return boolean TRUE if a diff tool was found, FALSE otherwise
  */
 protected function isDiffToolAvailable()
 {
     $filePath = t3lib_extMgm::extPath('phpunit') . 'Tests/Unit/Backend/Fixtures/LoadMe.php';
     // Makes sure everything is sent to the stdOutput.
     $executeCommand = $GLOBALS['TYPO3_CONF_VARS']['BE']['diff_path'] . ' 2>&1 ' . $filePath . ' ' . $filePath;
     $result = array();
     t3lib_utility_Command::exec($executeCommand, $result);
     return empty($result);
 }
 /**
  * Compares the generated result with the user's result.
  *
  * @return boolean
  * @author	Reinhard Führicht <*****@*****.**>
  */
 public function validateCaptcha()
 {
     $valid = true;
     require_once t3lib_extMgm::extPath('mathguard') . 'res/ClassMathGuard.php';
     if (!MathGuard::checkResult($_REQUEST['mathguard_answer'], $_REQUEST['mathguard_code'])) {
         $valid = false;
     }
     return $valid;
 }
 /**
  * Constructor
  *
  * @param object $parentObject
  */
 public function __construct($parentObject = NULL)
 {
     $this->parentObject = $parentObject;
     $this->api = t3lib_div::makeInstance('tx_em_API');
     $this->install = t3lib_div::makeInstance('tx_em_Install', $this);
     $GLOBALS['LANG']->includeLLFile(t3lib_extMgm::extPath('em') . 'language/locallang.xml');
     $this->categories = array('be' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:category_BE'), 'module' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:category_BE_modules'), 'fe' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:category_FE'), 'plugin' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:category_FE_plugins'), 'misc' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:category_miscellanous'), 'services' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:category_services'), 'templates' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:category_templates'), 'example' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:category_examples'), 'doc' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:category_documentation'));
     $this->states = tx_em_Tools::getStates();
 }
 public function main($parentObject)
 {
     if (!t3lib_extMgm::isLoaded('static_info_tables')) {
         $this->pluginButtons = t3lib_div::rmFromList('language', $this->pluginButtons);
     } else {
         require_once t3lib_extMgm::extPath('static_info_tables') . 'class.tx_staticinfotables_div.php';
     }
     return parent::main($parentObject);
 }
Esempio n. 27
0
 /**
  * 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');
 }
Esempio n. 28
0
	/**
	 * Reads the [extDir]/locallang.xml and returns the \$LOCAL_LANG array found in that file.
	 *
	 * @return	The array with language labels
	 */
	function includeLocalLang() {
		$localizationParser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml');
		$LOCAL_LANG = $localizationParser->getParsedData(
			t3lib_extMgm::extPath('powermail') . 'Resources/Private/Language/locallang.xml',
			$GLOBALS['LANG']->lang
		);

		return $LOCAL_LANG;
	}
 /**
  * Reads the [extDir]/locallang.xml and returns the \$LOCAL_LANG array found in that file.
  *
  * @return	The array with language labels
  */
 function includeLocalLang()
 {
     $llFile = t3lib_extMgm::extPath(wt_gallery) . 'locallang.xml';
     // [Joe Schäfer @ 2015-07-21 10:00:41]
     // $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
     $parser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml');
     $LOCAL_LANG = $parser->getParsedData($llFile, $GLOBALS['LANG']->lang);
     return $LOCAL_LANG;
 }
Esempio n. 30
0
 /**
  * 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');
 }