当前位置: 首页>>代码示例>>PHP>>正文


PHP t3lib_div::getIndpEnv方法代码示例

本文整理汇总了PHP中t3lib_div::getIndpEnv方法的典型用法代码示例。如果您正苦于以下问题:PHP t3lib_div::getIndpEnv方法的具体用法?PHP t3lib_div::getIndpEnv怎么用?PHP t3lib_div::getIndpEnv使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在t3lib_div的用法示例。


在下文中一共展示了t3lib_div::getIndpEnv方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getDevMode

 public static function getDevMode()
 {
     if (self::$devMode === null) {
         self::$devMode = t3lib_div::cmpIP(t3lib_div::getIndpEnv('REMOTE_ADDR'), $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask']);
     }
     return self::$devMode;
 }
开发者ID:rekrut,项目名称:typo3-extbase-doctrine2-extension,代码行数:7,代码来源:Manager.php

示例2: main

 /**
  * Default action.
  *
  * @return array
  * @throws RuntimeException
  */
 public function main()
 {
     $this->init();
     $allowedIps = t3lib_div::trimExplode(',', $this->config['allowedIps'], true);
     if ($this->config['debug']) {
         t3lib_div::sysLog('Connection from ' . t3lib_div::getIndpEnv('REMOTE_ADDR'), self::$extKey);
     }
     if ($this->config['mode'] !== 'M' || count($allowedIps) && !t3lib_div::inArray($allowedIps, t3lib_div::getIndpEnv('REMOTE_ADDR'))) {
         $this->denyAccess();
     }
     $this->initTSFE();
     if (!empty($this->config['synchronizeDeletedAccounts']) && $this->config['synchronizeDeletedAccounts']) {
         $additionalFields = ', deleted';
         $additionalWhere = '';
     } else {
         $additionalFields = '';
         $additionalWhere = ' AND deleted=0';
     }
     $administrators = $this->getDatabaseConnection()->exec_SELECTgetRows('username, admin, disable, realName, email, TSconfig, starttime, endtime, lang, tx_openid_openid' . $additionalFields, 'be_users', 'admin=1 AND tx_openid_openid<>\'\'' . $additionalWhere);
     if (count($administrators)) {
         $key = $this->config['preSharedKey'];
         $data = json_encode($administrators);
         $encrypted = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $data, MCRYPT_MODE_CBC, md5(md5($key)));
         $encrypted = base64_encode($encrypted);
         return $encrypted;
     } else {
         throw new RuntimeException('No administrators found', 1327586994);
     }
 }
开发者ID:sruegg,项目名称:t3ext-causal_accounts,代码行数:35,代码来源:class.tx_causalaccounts_eid.php

示例3: render

 /**
  * Render the facebook like viewhelper
  *
  * @return string
  */
 public function render()
 {
     $code = '';
     $url = !empty($this->arguments['href']) ? $this->arguments['href'] : t3lib_div::getIndpEnv('TYPO3_REQUEST_URL');
     // absolute urls are needed
     $this->tag->addAttribute('href', Tx_News_Utility_Url::prependDomain($url));
     $this->tag->forceClosingTag(TRUE);
     // -1 means no JS
     if ($this->arguments['javaScript'] != '-1') {
         if (empty($this->arguments['javaScript'])) {
             $tsSettings = $this->pluginSettingsService->getSettings();
             $locale = !empty($tsSettings['facebookLocale']) ? $tsSettings['facebookLocale'] : 'en_US';
             $code = '<script src="http://connect.facebook.net/' . $locale . '/all.js#xfbml=1"></script>';
             // Social interaction Google Analytics
             if ($this->pluginSettingsService->getByPath('analytics.social.facebookLike') == 1) {
                 $code .= t3lib_div::wrapJS("\n\t\t\t\t\t\tFB.Event.subscribe('edge.create', function(targetUrl) {\n\t\t\t\t\t\t \t_gaq.push(['_trackSocial', 'facebook', 'like', targetUrl]);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tFB.Event.subscribe('edge.remove', function(targetUrl) {\n\t\t\t\t\t\t  _gaq.push(['_trackSocial', 'facebook', 'unlike', targetUrl]);\n\t\t\t\t\t\t});\n\t\t\t\t\t");
             }
         } else {
             $code = '<script src="' . htmlspecialchars($this->arguments['javaScript']) . '"></script>';
         }
     }
     // seems as if a div with id fb-root is needed this is just a dirty
     // workaround to make things work again Perhaps we should
     // use the iframe variation.
     $code .= '<div id="fb-root"></div>' . $this->tag->render();
     return $code;
 }
开发者ID:preinboth,项目名称:moox_social,代码行数:32,代码来源:LikeViewHelper.php

示例4: loginFormHook

 /**
  * Hooks to the felogin extension to provide additional code for FE login
  *
  * @return	array	0 => onSubmit function, 1 => extra fields and required files
  */
 public function loginFormHook()
 {
     $result = array(0 => '', 1 => '');
     if ($GLOBALS['TYPO3_CONF_VARS']['FE']['loginSecurityLevel'] == 'rsa') {
         $backend = tx_rsaauth_backendfactory::getBackend();
         if ($backend) {
             $result[0] = 'tx_rsaauth_feencrypt(this);';
             $javascriptPath = t3lib_extMgm::siteRelPath('rsaauth') . 'resources/';
             $files = array('jsbn/jsbn.js', 'jsbn/prng4.js', 'jsbn/rng.js', 'jsbn/rsa.js', 'jsbn/base64.js', 'rsaauth_min.js');
             foreach ($files as $file) {
                 $result[1] .= '<script type="text/javascript" src="' . t3lib_div::getIndpEnv('TYPO3_SITE_URL') . $javascriptPath . $file . '"></script>';
             }
             // Generate a new key pair
             $keyPair = $backend->createNewKeyPair();
             // Save private key
             $storage = tx_rsaauth_storagefactory::getStorage();
             /* @var $storage tx_rsaauth_abstract_storage */
             $storage->put($keyPair->getPrivateKey());
             // Add RSA hidden fields
             $result[1] .= '<input type="hidden" id="rsa_n" name="n" value="' . htmlspecialchars($keyPair->getPublicKeyModulus()) . '" />';
             $result[1] .= '<input type="hidden" id="rsa_e" name="e" value="' . sprintf('%x', $keyPair->getExponent()) . '" />';
         }
     }
     return $result;
 }
开发者ID:zsolt-molnar,项目名称:TYPO3-4.5-trunk,代码行数:30,代码来源:class.tx_rsaauth_feloginhook.php

示例5: getSiteUrl

 /**
  * Obtains site URL.
  *
  * @static
  * @param int $pageId
  * @return string
  */
 protected static function getSiteUrl($pageId)
 {
     $domain = t3lib_BEfunc::firstDomainRecord(t3lib_BEfunc::BEgetRootLine($pageId));
     $pageRecord = t3lib_BEfunc::getRecord('pages', $pageId);
     $scheme = is_array($pageRecord) && isset($pageRecord['url_scheme']) && $pageRecord['url_scheme'] == t3lib_utility_Http::SCHEME_HTTPS ? 'https' : 'http';
     return $domain ? $scheme . '://' . $domain . '/' : t3lib_div::getIndpEnv('TYPO3_SITE_URL');
 }
开发者ID:educo-adymorz,项目名称:typo3-pagepath,代码行数:14,代码来源:class.tx_pagepath_api.php

示例6: process

 /**
  * Logs the given values.
  *
  * @return void
  */
 public function process()
 {
     //set params
     $table = "tx_formhandler_log";
     $fields['ip'] = t3lib_div::getIndpEnv('REMOTE_ADDR');
     if (isset($this->settings['disableIPlog']) && intval($this->settings['disableIPlog']) == 1) {
         $fields['ip'] = NULL;
     }
     $fields['tstamp'] = time();
     $fields['crdate'] = time();
     $fields['pid'] = Tx_Formhandler_StaticFuncs::getSingle($this->settings, 'pid');
     if (!$fields['pid']) {
         $fields['pid'] = $GLOBALS['TSFE']->id;
     }
     ksort($this->gp);
     $keys = array_keys($this->gp);
     $serialized = serialize($this->gp);
     $hash = md5(serialize($keys));
     $fields['params'] = $serialized;
     $fields['key_hash'] = $hash;
     if (intval($this->settings['markAsSpam']) == 1) {
         $fields['is_spam'] = 1;
     }
     //query the database
     $res = $GLOBALS['TYPO3_DB']->exec_INSERTquery($table, $fields);
     $insertedUID = $GLOBALS['TYPO3_DB']->sql_insert_id();
     $sessionValues = array('inserted_uid' => $insertedUID, 'inserted_tstamp' => $fields['tstamp'], 'key_hash' => $hash);
     Tx_Formhandler_Globals::$session->setMultiple($sessionValues);
     if (!$this->settings['nodebug']) {
         Tx_Formhandler_StaticFuncs::debugMessage('logging', array($table, implode(',', $fields)));
         if (strlen($GLOBALS['TYPO3_DB']->sql_error()) > 0) {
             Tx_Formhandler_StaticFuncs::debugMessage('error', array($GLOBALS['TYPO3_DB']->sql_error()), 3);
         }
     }
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:40,代码来源:Tx_Formhandler_Logger_DB.php

示例7: __construct

 /**
  * Constructor
  *
  * @param tslib_cObj $contentObject The current cObject. If NULL a new instance will be created
  */
 public function __construct(tslib_cObj $contentObject = NULL)
 {
     if (!t3lib_extMgm::isLoaded('extbase')) {
         return 'In the current version you still need to have Extbase installed in order to use the Fluid Standalone view!';
     }
     $this->initializeAutoloader();
     $this->objectManager = t3lib_div::makeInstance('Tx_Extbase_Object_ObjectManager');
     $configurationManager = $this->objectManager->get('Tx_Extbase_Configuration_ConfigurationManagerInterface');
     if ($contentObject === NULL) {
         $contentObject = t3lib_div::makeInstance('tslib_cObj');
     }
     $configurationManager->setContentObject($contentObject);
     $this->templateParser = $this->objectManager->get('Tx_Fluid_Core_Parser_TemplateParser');
     $this->setRenderingContext($this->objectManager->create('Tx_Fluid_Core_Rendering_RenderingContext'));
     $request = $this->objectManager->create('Tx_Extbase_MVC_Web_Request');
     $request->setRequestURI(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'));
     $request->setBaseURI(t3lib_div::getIndpEnv('TYPO3_SITE_URL'));
     $uriBuilder = $this->objectManager->create('Tx_Extbase_MVC_Web_Routing_UriBuilder');
     $uriBuilder->setRequest($request);
     $controllerContext = $this->objectManager->create('Tx_Extbase_MVC_Controller_ControllerContext');
     $controllerContext->setRequest($request);
     $controllerContext->setUriBuilder($uriBuilder);
     $flashMessageContainer = $this->objectManager->get('Tx_Extbase_MVC_Controller_FlashMessages');
     // singleton
     $controllerContext->setFlashMessageContainer($flashMessageContainer);
     $this->setControllerContext($controllerContext);
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:32,代码来源:StandaloneView.php

示例8: main

    /**
     * Main function
     *
     * @return	void
     */
    function main()
    {
        switch ((string) t3lib_div::_GET('cmd')) {
            case 'menuitem':
                echo '
				<img src="gfx/x_t3logo.png" width="61" height="16" hspace="3" alt="" />';
                $menuItems = array(array('title' => 'About TYPO3', 'xurl' => 'http://typo3.com/', 'subitems' => array(array('title' => 'License', 'xurl' => 'http://typo3.com/License.1625.0.html'), array('title' => 'Support', 'subitems' => array(array('title' => 'Mailing lists', 'xurl' => 'http://lists.netfielders.de/cgi-bin/mailman/listinfo'), array('title' => 'Documentation', 'xurl' => 'http://typo3.org/documentation/'), array('title' => 'Find consultancy', 'xurl' => 'http://typo3.com/Consultancies.1248.0.html'))), array('title' => 'Contribute', 'xurl' => 'http://typo3.org/community/participate/'), array('title' => 'Donate', 'xurl' => 'http://typo3.com/Donations.1261.0.html', 'icon' => '1'))), array('title' => 'Extensions', 'url' => 'mod/tools/em/index.php'), array('title' => 'Menu preferences and such things', 'onclick' => 'alert("A dialog is now shown which will allow user configuration of items in the menu");event.stopPropagation();', 'state' => 'checked'), array('title' => '--div--'), array('title' => 'Recent Items', 'id' => $this->id . '_recent', 'subitems' => array(), 'html' => $this->menuItemObject($this->id . '_recent', '
							fetched: false,
							onActivate: function() {
//								if (!this.fetched)	{
									//Element.update("' . $this->id . '_recent-layer","asdfasdf");
									getElementContent("' . $this->id . '_recent-layer", 0, "logomenu.php?cmd=recent")
									this.fetched = true;
//								}
							}
						')), array('title' => '--div--'), array('title' => 'View frontend', 'xurl' => t3lib_div::getIndpEnv('TYPO3_SITE_URL')), array('title' => 'Log out', 'onclick' => "top.document.location='logout.php';"));
                echo $this->menuLayer($menuItems);
                break;
            case 'recent':
                $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('sys_log.*, MAX(sys_log.tstamp) AS tstamp_MAX', 'sys_log,pages', 'pages.uid=sys_log.event_pid AND sys_log.userid=' . intval($GLOBALS['BE_USER']->user['uid']) . ' AND sys_log.event_pid>0 AND sys_log.type=1 AND sys_log.action=2 AND sys_log.error=0', 'tablename,recuid', 'tstamp_MAX DESC', 20);
                $items = array();
                while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
                    $elRow = t3lib_BEfunc::getRecord($row['tablename'], $row['recuid']);
                    if (is_array($elRow)) {
                        $items[] = array('title' => t3lib_div::fixed_lgd_cs(t3lib_BEfunc::getRecordTitle($row['tablename'], $elRow), $GLOBALS['BE_USER']->uc['titleLen']) . ' - ' . t3lib_BEfunc::calcAge($GLOBALS['EXEC_TIME'] - $row['tstamp_MAX']), 'icon' => array(t3lib_iconworks::getIcon($row['tablename'], $elRow), 'width="18" height="16"'), 'onclick' => 'content.' . t3lib_BEfunc::editOnClick('&edit[' . $row['tablename'] . '][' . $row['recuid'] . ']=edit', '', 'dummy.php'));
                    }
                }
                echo $this->menuItems($items);
                break;
        }
    }
开发者ID:zsolt-molnar,项目名称:TYPO3-4.5-trunk,代码行数:36,代码来源:logomenu.php

示例9: _render

 function _render()
 {
     $this->oForm->bStoreFormInSession = TRUE;
     // requesting eID context for upload-service
     $this->initButtonBrowse();
     $this->initButtonUpload();
     $this->initListQueue();
     $aButtonBrowse = $this->oForm->_renderElement($this->oButtonBrowse);
     $aButtonUpload = $this->oForm->_renderElement($this->oButtonUpload);
     $aListQueue = $this->oForm->_renderElement($this->oListQueue);
     /* forging access to upload service */
     $sHtmlId = $this->_getElementHtmlId();
     $sObject = "rdt_swfupload";
     $sServiceKey = "upload";
     $sFormId = $this->oForm->formid;
     $sSafeLock = $this->_getSessionDataHashKey();
     $sThrower = $sHtmlId;
     $sUrl = $this->oForm->_removeEndingSlash(t3lib_div::getIndpEnv("TYPO3_SITE_URL")) . "/index.php?eID=tx_ameosformidable&object=" . $sObject . "&servicekey=" . $sServiceKey . "&formid=" . $sFormId . "&safelock=" . $sSafeLock . "&thrower=" . $sThrower;
     $sButtonUrl = $this->oForm->getLLLabel("LLL:EXT:ameos_formidable/api/base/rdt_swfupload/res/locallang.xml:buttonbrowse.image_url");
     $aConf = array("buttonBrowseId" => $this->oButtonBrowse->_getElementHtmlId(), "buttonUploadId" => $this->oButtonUpload->_getElementHtmlId(), "listQueueId" => $this->oListQueue->_getElementHtmlId(), "swfupload_config" => array("upload_url" => $sUrl, "flash_url" => $this->sExtWebPath . "res/flash/swfupload.swf", "file_post_name" => "rdt_swfupload", "file_size_limit" => $this->getMaxUploadSize(), "file_types_description" => $this->getFileTypeDesc(), "file_types" => $this->getFileType(), "file_queue_limit" => $this->getQueueLimit(), "button_placeholder_id" => $this->oButtonBrowse->_getElementHtmlId(), "button_image_url" => $this->oForm->toWebPath($sButtonUrl), "button_width" => "61", "button_height" => "22"));
     $this->includeScripts($aConf);
     $sAddInputParams = $this->_getAddInputParams();
     $GLOBALS["_SESSION"]["ameos_formidable"]["ajax_services"][$sObject][$sServiceKey][$sSafeLock] = array("requester" => array("name" => $this->getAbsName(), "xpath" => $this->sXPath));
     $aButtonBrowse["__compiled"] .= "<input type=\"hidden\" id=\"" . $this->_getElementHtmlId() . "\" />";
     return array("__compiled" => $aButtonBrowse["__compiled"] . " " . $aButtonUpload["__compiled"] . " " . $aListQueue["__compiled"], "buttonBrowse" => $aButtonBrowse, "buttonUpload" => $aButtonUpload, "listQueue" => $aListQueue);
 }
开发者ID:preinboth,项目名称:formidable,代码行数:26,代码来源:class.tx_rdtswfupload.php

示例10: render

 /**
  * Render a share button
  *
  * @param boolean $loadJs
  * @return string
  */
 public function render($loadJs = TRUE)
 {
     // check defaults
     if (empty($this->arguments['href'])) {
         $this->tag->addAttribute('href', 'http://www.facebook.com/sharer.php');
     }
     if (empty($this->arguments['name'])) {
         $this->tag->addAttribute('name', 'fb_share');
     }
     if (empty($this->arguments['type'])) {
         $this->tag->addAttribute('type', 'button_count');
     }
     $shareUrl = empty($this->arguments['shareurl']) ? t3lib_div::getIndpEnv('TYPO3_REQUEST_URL') : $this->arguments['shareurl'];
     $this->tag->addAttribute('share_url', $shareUrl);
     $this->tag->removeAttribute('shareurl');
     $this->tag->setContent($this->renderChildren());
     $code = $this->tag->render();
     if ($loadJs) {
         $code .= '<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>';
     }
     // Social interaction Google Analytics
     if ($this->pluginSettingsService->getByPath('analytics.social.facebookShare') == 1) {
         $code .= t3lib_div::wrapJS("\r\n\t\t\t\tFB.Event.subscribe('message.send', function(targetUrl) {\r\n\t\t\t\t  _gaq.push(['_trackSocial', 'facebook', 'send', targetUrl]);\r\n\t\t\t\t});\r\n\t\t\t");
     }
     return $code;
 }
开发者ID:rafu1987,项目名称:t3bootstrap-project,代码行数:32,代码来源:ShareViewHelper.php

示例11: prependDomain

 /**
  * Prepend current url if url is relative
  *
  * @param string $url given url
  * @return string
  */
 public static function prependDomain($url)
 {
     if (!t3lib_div::isFirstPartOfStr($url, t3lib_div::getIndpEnv('TYPO3_SITE_URL'))) {
         $url = t3lib_div::getIndpEnv('TYPO3_SITE_URL') . $url;
     }
     return $url;
 }
开发者ID:rafu1987,项目名称:t3bootstrap-project,代码行数:13,代码来源:Url.php

示例12: tslib_fe_checkAlternativeIdMethods

 function tslib_fe_checkAlternativeIdMethods($params, $ref)
 {
     $pObj =& $params['pObj'];
     if (t3lib_div::int_from_ver($GLOBALS["TYPO_VERSION"]) >= 3007000) {
         $siteScript = t3lib_div::getIndpEnv('TYPO3_SITE_SCRIPT');
     } else {
         $siteScript = $GLOBALS["HTTP_SERVER_VARS"]["REQUEST_URI"];
     }
     if ($siteScript && substr($siteScript, 0, 9) != 'index.php') {
         // If there has been a redirect (basically; we arrived here otherwise than via "index.php" in the URL) this can happend either due to a CGI-script or because of reWrite rule. Earlier we used $_SERVER['REDIRECT_URL'] to check but
         $uParts = parse_url($siteScript);
         // Parse the path:
         $requestFilename = trim(preg_replace('/.*\\//', '', $uParts['path']));
         // This is the filename of the script/simulated pdf-file.
         $parts = explode('.', preg_replace('/.*\\//', '', $requestFilename));
         $pCount = count($parts);
         if ($parts[$pCount - 1] == 'pdf') {
             if ($pCount > 2) {
                 $pObj->type = intval($parts[$pCount - 2]);
                 $pObj->id = $parts[$pCount - 3];
             } else {
                 $pObj->type = $GLOBALS['pdf_generator2_parameters']['typeNum'];
                 $pObj->id = $parts[0];
             }
         }
     }
 }
开发者ID:raimundlandig,项目名称:winkel.de-DEV,代码行数:27,代码来源:class.tx_pdfgenerator2.php

示例13: execute

 function execute()
 {
     return 1;
     $pfad = 'fileadmin/medien/fakultaeten/allgemein/modulbeschreibungen';
     $documentRoot = t3lib_div::getIndpEnv(TYPO3_DOCUMENT_ROOT);
     $pfadKomplett = $documentRoot . '/' . $pfad;
     $this->recursive_rm($pfadKomplett);
     return 1;
     $start = time();
     $lsfStudiengangDaten = array();
     $where = 'deleted=0 AND hidden=0 AND cType="list" AND list_type="he_tools_pi1"';
     $contentElems = $GLOBALS['TYPO3_DB']->exec_SELECTquery('pid,pi_flexform', 'tt_content', $where);
     while ($daten = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($contentElems)) {
         $flexFormSettings = t3lib_div::xml2array($daten['pi_flexform']);
         $flexData = $flexFormSettings['data']['sDEF']['lDEF'];
         if (is_array($flexData)) {
             if ($flexData['mode']['vDEF'] == 'MODULUEBERSICHT_LSF') {
                 $spoVersion = $flexData['spo_version']['vDEF'];
                 $studiengang = $flexData['studiengang_lsf']['vDEF'];
                 $vertiefung = $flexData['vertiefung_lsf']['vDEF'];
                 $whereStudiengang = 'uid=' . $studiengang;
                 $abfrageStudiengang = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'tx_hetools_module_studiengaenge', $whereStudiengang);
                 if ($datenStudiengang = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($abfrageStudiengang)) {
                     $abschlussLsf = $datenStudiengang['lsf_abs'];
                     $studiengangLsf = $datenStudiengang['lsf_stdg'];
                     $fakultaet = $datenStudiengang['fakultaet'];
                     $vertiefungenLsf = array();
                     $whereVertiefung = ' modstud_id=' . $studiengang;
                     $abfrageVertiefung = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'tx_hetools_module_vertiefungen', $whereVertiefung);
                     while ($datenVertiefung = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($abfrageVertiefung)) {
                         if (!empty($datenVertiefung['version'])) {
                             if ($datenVertiefung['version'] == $spoVersion) {
                                 $vertiefungenLsf[] = $datenVertiefung['kuerzel'];
                             }
                         } else {
                             $vertiefungenLsf[] = $datenVertiefung['kuerzel'];
                         }
                     }
                     if (empty($lsfStudiengangDaten[$studiengang . $spoVersion])) {
                         $lsfStudiengangDaten[$studiengang . $spoVersion] = array($abschlussLsf, $spoVersion, $fakultaet, $studiengangLsf, $vertiefungenLsf);
                     }
                 }
             }
         }
     }
     foreach ($lsfStudiengangDaten as $lsfStudiengang) {
         // PDF für den Studiengang speichern
         $this->createPdf($lsfStudiengang[0], $lsfStudiengang[1], $lsfStudiengang[2], $lsfStudiengang[3], '');
         if (!empty($lsfStudiengang[4]) && count($lsfStudiengang[4]) > 0) {
             foreach ($lsfStudiengang[4] as $vertiefungLsf) {
                 $this->createPdf($lsfStudiengang[0], $lsfStudiengang[1], $lsfStudiengang[2], $lsfStudiengang[3], $vertiefungLsf);
             }
         }
     }
     $ende = time();
     $dauer = $ende - $start;
     t3lib_div::devLog('dauer: ' . $dauer . ' Sekunden', 'lsf_pdfs', 0);
     return 1;
 }
开发者ID:mmirsch,项目名称:he_tools1,代码行数:59,代码来源:class.tx_hetools_loesche_modul_pdfs.php

示例14: parseContent

 /**
  * [Describe function...]
  *
  * @param	[type]		$i: ...
  * @return	[type]		...
  */
 function parseContent($i)
 {
     $sitepath = t3lib_div::getIndpEnv('REQUEST_URI');
     $this->extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['naw_securedl']);
     $rest = $i;
     //while (preg_match('/(<[aA]|<[iI][mM][gG])+?\s[^>]*([hH][rR][eE][fF]|[sS][rR][cC])=(\"??)([^\" >]*?)\\3[^>]*>/siU', $i,$match)) {  // suchendes secured Verzeichnis
     //while (preg_match('/(<[aA]|<[iI][mM][gG])+?.[^>]*([hH][rR][eE][fF]|[sS][rR][cC])=(\"??)([^\" >]*?)\\3[^>]*>/siU', $i,$match)) {  // suchendes secured Verzeichnis
     $result = '';
     while (preg_match('/(?i)(<a|<img)+?.[^>]*(href|src)=(\\"??)([^\\" >]*?)\\3[^>]*>/siU', $i, $match)) {
         // suchendes secured Verzeichnis
         $cont = explode($match[0], $i, 2);
         $vor = $cont[0];
         $tag = $match[0];
         if ($this->extConf['debug'] == '2' || $this->extConf['debug'] == '3') {
             debug('tag:' . $tag);
         }
         $rest = $cont[1];
         if ($this->extConf['debug'] == '1' || $this->extConf['debug'] == '3') {
             debug(array('html-tag:' => $tag));
         }
         // investigate the HTML-Tag...
         //while (preg_match('/"((typo3temp|fileadmin|uploads).*?([pP][dD][fF]|[jJ][pP][eE]?[gG]|[gG][iI][fF]|[pP][nN][gG]))"/i', $tag,$match1)){
         if (preg_match('/"(?:' . $this->modifiyregex($this->extConf['domain']) . ')?(\\/?(?:' . $this->modifiyregex($this->extConf['securedDirs']) . ')+?.*?(?:' . $this->modifyfiletypes($this->extConf['filetype']) . '))"/i', $tag, $match1)) {
             if ($this->extConf['debug'] == '2' || $this->extConf['debug'] == '3') {
                 debug('/"(?:' . $this->modifiyregex($this->extConf['domain']) . ')?(\\/?(?:' . $this->modifiyregex($this->extConf['securedDirs']) . ')+?.*?(?:' . $this->modifyfiletypes($this->extConf['filetype']) . '))"/i');
             }
             if ($this->extConf['debug'] == '2' || $this->extConf['debug'] == '3') {
                 debug($match1);
             }
             $replace = $this->makeSecure($match1[1]);
             $tagexp = explode($match1[1], $tag, 2);
             if ($this->extConf['debug'] == '2' || $this->extConf['debug'] == '3') {
                 debug($tagexp[0]);
             }
             if ($this->extConf['debug'] == '2' || $this->extConf['debug'] == '3') {
                 debug($replace);
             }
             if ($this->extConf['debug'] == '2' || $this->extConf['debug'] == '3') {
                 debug($tagexp[1]);
             }
             $tag = $tagexp[0] . $replace;
             //$tag = $tagexp[0].$replace.$tagexp[1];
             $tmp = $tagexp[1];
             // search in the rest on the tag (e.g. for vHWin=window.open...)
             //print_R('/\'(?:'.$this->modifiyregex($this->extConf['domain']).')?'.$this->modifiyregex($sitepath).'(\/?(?:'.$this->modifiyregex($this->extConf['securedDirs']).')+?.*?(?:'.$this->modifyfiletypes($this->extConf['filetype']).'))\'/i');
             if (preg_match('/\'(?:' . $this->modifiyregex($this->extConf['domain']) . ')?.*?(\\/?(?:' . $this->modifiyregex($this->extConf['securedDirs']) . ')+?.*?(?:' . $this->modifyfiletypes($this->extConf['filetype']) . '))\'/i', $tmp, $match1)) {
                 $replace = $this->makeSecure($match1[1]);
                 $tagexp = explode($match1[1], $tmp, 2);
                 $add = $tagexp[0] . '/' . $replace . $tagexp[1];
             } else {
                 $add = $tagexp[1];
             }
             $tag .= $add;
         }
         $result .= $vor . $tag;
         $i = $rest;
     }
     return $result . $rest;
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:65,代码来源:class.tx_nawsecuredl.php

示例15: render

 /**
  * @return string
  */
 public function render()
 {
     $url = t3lib_div::getIndpEnv('TYPO3_REQUEST_URL');
     if (!t3lib_div::isFirstPartOfStr($url, t3lib_div::getIndpEnv('TYPO3_SITE_URL'))) {
         $url = t3lib_div::getIndpEnv('TYPO3_SITE_URL') . $url;
     }
     return $url;
 }
开发者ID:nyxos,项目名称:vhs,代码行数:11,代码来源:AbsoluteUrlViewHelper.php


注:本文中的t3lib_div::getIndpEnv方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。