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


PHP t3lib_div::_GET方法代码示例

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


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

示例1: main

 function main()
 {
     $feUserObj = tslib_eidtools::initFeUser();
     // Initialize FE user object
     tslib_eidtools::connectDB();
     //Connect to database
     $table = 'tx_drwiki_pages';
     $myPid = intval(t3lib_div::_GET('myPid'));
     $myKeyword = $GLOBALS['TYPO3_DB']->fullQuoteStr(trim(t3lib_div::_GET('myKeyword')), $table);
     $myKeyword = substr($myKeyword, 1, strlen($myKeyword) - 2);
     $searchString = $table . ".pid IN (" . $myPid . ") AND keyword like '%" . $myKeyword . "%'";
     // get Database entries
     $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', $table, $searchString);
     $results = array();
     while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
         $results[$row["uid"]] = $row["keyword"];
     }
     // Wir geben der Anfrage ein XML Objekt zurŸck
     $ajax_return_data = t3lib_div::array2xml($results);
     header('Expires: Mon, 26 Jul 2000 03:00:00 GMT');
     header('Last-Modified: ' . gmdate("D, d M Y H:i:s") . 'GMT');
     header('Cache-Control: no-cache, must-revalidate');
     header('Pragma: no-cache');
     header('Content-Length: ' . strlen($ajax_return_data));
     header('Content-Type: text/xml');
     echo $ajax_return_data;
 }
开发者ID:blumenbach,项目名称:bb-online.neu,代码行数:27,代码来源:class.eid_ajax.search.php

示例2: main

 /**
  * Main function
  *
  * @param   [type]    $$backRef: ...
  * @param   [type]    $menuItems: ...
  * @param   [type]    $table: ...
  * @param   [type]    $uid: ...
  * @return  [type]    ...
  */
 function main(&$backRef, $menuItems, $table, $uid)
 {
     global $BE_USER, $TCA, $LANG;
     $localItems = array();
     if (!$backRef->cmLevel) {
         // Returns directly, because the clicked item was not from the pages table
         if ($table == "tx_l10nmgr_cfg") {
             // Adds the regular item:
             $LL = $this->includeLL();
             // Repeat this (below) for as many items you want to add!
             // Remember to add entries in the localconf.php file for additional titles.
             $url = t3lib_extMgm::extRelPath("l10nmgr") . "cm1/index.php?id=" . $uid;
             $localItems[] = $backRef->linkItem($GLOBALS["LANG"]->getLLL("cm1_title", $LL), $backRef->excludeIcon('<img src="' . t3lib_extMgm::extRelPath("l10nmgr") . 'cm1/cm_icon.gif" width="15" height="12" border="0" align="top" />'), $backRef->urlRefForCM($url), 1);
         }
         $localItems["moreoptions_tx_l10nmgr_cm3"] = $backRef->linkItem('L10Nmgr tools', '', "top.loadTopMenu('" . t3lib_div::linkThisScript() . "&cmLevel=1&subname=moreoptions_tx_l10nmgrXX_cm3');return false;", 0, 1);
         // Simply merges the two arrays together and returns ...
         $menuItems = array_merge($menuItems, $localItems);
     } elseif (t3lib_div::_GET('subname') == 'moreoptions_tx_l10nmgrXX_cm3') {
         $url = t3lib_extMgm::extRelPath("l10nmgr") . "cm3/index.php?id=" . $uid . '&table=' . $table;
         $localItems[] = $backRef->linkItem('Create priority', '', $backRef->urlRefForCM($url . '&cmd=createPriority'), 1);
         $localItems[] = $backRef->linkItem('Manage priorities', '', $backRef->urlRefForCM($url . '&cmd=managePriorities'), 1);
         $localItems[] = $backRef->linkItem('Update Index', '', $backRef->urlRefForCM($url . '&cmd=updateIndex'), 1);
         $localItems[] = $backRef->linkItem('Flush Translations', '', $backRef->urlRefForCM($url . '&cmd=flushTranslations'), 1);
         $menuItems = array_merge($menuItems, $localItems);
     }
     return $menuItems;
 }
开发者ID:raimundlandig,项目名称:winkel.de-DEV,代码行数:36,代码来源:class.tx_l10nmgr_cm1.php

示例3: render

	/**
	 * Check FE Session
	 *
	 * @return 	boolean
	 */
	public function render() {
		// settings
		global $TYPO3_CONF_VARS;
		$userObj = tslib_eidtools::initFeUser();
		$GLOBALS['TSFE'] = t3lib_div::makeInstance(
			'tslib_fe',
			$TYPO3_CONF_VARS,
			t3lib_div::_GET('id'),
			0,
			true
		);
		$GLOBALS['TSFE']->fe_user = $userObj;

		// random value for session storing
		$value = md5(time());

		// store in session
		$GLOBALS['TSFE']->fe_user->setKey('ses', $this->sessionKey, $value);
		$GLOBALS['TSFE']->storeSessionData();

		if ($GLOBALS['TSFE']->fe_user->getKey('ses', $this->sessionKey) === $value) {
			return true;
		}
		return false;
	}
开发者ID:rafu1987,项目名称:t3bootstrap-project,代码行数:30,代码来源:SessionViewHelper.php

示例4: 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

示例5: renderElement_preProcessRow

 public function renderElement_preProcessRow(&$row, $table, $parent)
 {
     $portalSeite = FALSE;
     if ($table == 'pages') {
         $get = t3lib_div::_GET();
         $idGet = $get['id'];
         /*
          * Verweis testen: 
          * bei Seiten vom Typ Verweis werden nicht die Daten der Originalseite
          * sondern die Daten der Zielseite übergeben (andere Id)
          */
         if (!empty($idGet) && $idGet != $row['uid']) {
             $dokType = $this->getPageData($idGet, 'doktype');
         } else {
             $dokType = $row['doktype'];
         }
         /*
          *  Seiten vom Typ Verweis nicht ändern
          */
         if ($dokType != 4) {
             $mp = $get['MP'];
             $uid = $row['uid'];
             $pid = $row['pid'];
             if ($uid == 92125) {
                 $portalSeite = TRUE;
             } else {
                 if (!empty($mp)) {
                     $mountPageLists = explode(',', $mp);
                     $mountPages = explode('-', $mountPageLists[0]);
                     $pid = $mountPages[1];
                 }
                 if ($this->isParentPage($pid, 92125)) {
                     $portalSeite = TRUE;
                 }
             }
             if ($portalSeite) {
                 /*
                 t3lib_div::devLog("MP: " . print_r($mp,true), 'tx_he_tools_templavoila_hooks', 0);
                 //t3lib_div::devLog("row: " . print_r($row,true), 'tx_he_tools_templavoila_hooks', 0);
                 t3lib_div::devLog("Portalseite: $uid, tx_templavoila_ds: " . $row['tx_templavoila_ds'], 'tx_he_tools_templavoila_hooks', 0);
                 */
                 if (!empty($row['tx_templavoila_ds'])) {
                     switch ($row['tx_templavoila_ds']) {
                         // dreispaltig
                         case 4:
                             $row['tx_templavoila_ds'] = 19;
                             $row['tx_templavoila_to'] = 39;
                             break;
                             // zweispaltig
                         // zweispaltig
                         case 9:
                             $row['tx_templavoila_ds'] = 18;
                             $row['tx_templavoila_to'] = 36;
                             break;
                     }
                 }
             }
         }
     }
 }
开发者ID:mmirsch,项目名称:he_tools1,代码行数:60,代码来源:class.tx_he_tools_templavoila_hooks.php

示例6: newAction

 /**
  * action new
  *
  * @param Tx_T3orgSpamremover_Domain_Model_SpamReport $newSpamReport
  * @dontvalidate $newSpamReport
  * @return void
  */
 public function newAction(Tx_T3orgSpamremover_Domain_Model_SpamReport $newSpamReport = NULL)
 {
     try {
         $newSpamReport = $this->addDefaultValuesToReport($newSpamReport);
         // don't use plugin specific parameters, because url should be public API
         if (t3lib_div::_GET('spammer')) {
             /** @var Tx_T3orgSpamremover_Domain_Repository_SpammerRepository $spammerRepository */
             $spammerRepository = $this->objectManager->get('Tx_T3orgSpamremover_Domain_Repository_SpammerRepository');
             $spammer = $spammerRepository->getSpammerByMd5Email(t3lib_div::_GET('spammer'));
             if (!$spammer) {
                 throw new InvalidArgumentException('The given user is not found. The user might have been deleted in the meantime.');
             }
             $newSpamReport->setSpammer($spammer);
         } elseif (!$newSpamReport->getSpammer()) {
             if ($this->isLoggedInUserAnAdministrator()) {
                 $this->redirect('list', 'Spammer');
             }
             throw new InvalidArgumentException('No user given');
         }
         if (t3lib_div::_GET('link')) {
             $newSpamReport->setLink((string) t3lib_div::_GET('link'));
         }
         $this->view->assign('newSpamReport', $newSpamReport);
     } catch (InvalidArgumentException $e) {
         $this->view->assign('error_text', $e->getMessage());
     }
 }
开发者ID:TYPO3-typo3org,项目名称:community,代码行数:34,代码来源:SpamReportController.php

示例7: setUp

 /**
  * Sets up this testcase
  */
 public function setUp()
 {
     $this->getBackup = t3lib_div::_GET();
     $this->postBackup = t3lib_div::_POST();
     $this->typo3DbBackup = $GLOBALS['TYPO3_DB'];
     $GLOBALS['TYPO3_DB'] = $this->getMock('t3lib_DB', array());
     $this->backendConfigurationManager = $this->getMock($this->buildAccessibleProxy('Tx_Extbase_Configuration_BackendConfigurationManager'), array('dummy'));
 }
开发者ID:zsolt-molnar,项目名称:TYPO3-4.5-trunk,代码行数:11,代码来源:BackendConfigurationManager_testcase.php

示例8: getMergedGP

 public static function getMergedGP()
 {
     $gp = array_merge(t3lib_div::_GET(), t3lib_div::_POST());
     $prefix = Tx_Formhandler_Globals::$formValuesPrefix;
     if ($prefix) {
         $gp = $gp[$prefix];
     }
     return $gp;
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:9,代码来源:Tx_Formhandler_StaticFuncs.php

示例9: auswertung

 function auswertung()
 {
     $get = t3lib_div::_GET();
     $post = t3lib_div::_POST();
     $out = '<h1> Hier kommt eine Auswertung </h1>';
     $out .= '<h3>Get: ' . print_r($get, true) . '</h3>';
     $out .= '<h3>Post: ' . print_r($post, true) . '</h3>';
     return $out;
 }
开发者ID:mmirsch,项目名称:he_tools1,代码行数:9,代码来源:class.tx_he_tools_echug.php

示例10: setUp

 /**
  * Sets up this testcase
  */
 public function setUp()
 {
     $this->getBackup = t3lib_div::_GET();
     $this->postBackup = t3lib_div::_POST();
     $this->typo3DbBackup = $GLOBALS['TYPO3_DB'];
     $GLOBALS['TYPO3_DB'] = $this->getMock('t3lib_DB', array());
     $this->extConfBackup = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase'];
     $this->backendConfigurationManager = $this->getAccessibleMock('Tx_Extbase_Configuration_BackendConfigurationManager', array('getTypoScriptSetup'));
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:12,代码来源:BackendConfigurationManagerTest.php

示例11: setUp

 public function setUp()
 {
     $this->tsfeBackup = $GLOBALS['TSFE'];
     $GLOBALS['TSFE'] = $this->getMock('tslib_fe', array(), array(), '', FALSE);
     $this->getBackup = t3lib_div::_GET();
     $this->contentObject = $this->getMock('tslib_cObj');
     $this->request = $this->getMock('Tx_Extbase_MVC_Web_Request');
     $this->uriBuilder = $this->getMock($this->buildAccessibleProxy('Tx_Extbase_MVC_Web_Routing_UriBuilder'), array('dummy'), array($this->contentObject));
     $this->uriBuilder->setRequest($this->request);
 }
开发者ID:zsolt-molnar,项目名称:TYPO3-4.5-trunk,代码行数:10,代码来源:UriBuilder_testcase.php

示例12: __construct

 /**
  * Default constructor.
  */
 public function __construct()
 {
     $this->supportedDrivers = $this->getSupportedDrivers();
     $this->availableDrivers = $this->getAvailableDrivers();
     $configDriver =& $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['dbal']['handlerCfg']['_DEFAULT']['config']['driver'];
     $this->driver = t3lib_div::_GET('driver');
     if (!$this->driver && $configDriver) {
         $this->driver = $configDriver;
     }
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:13,代码来源:class.tx_dbal_installtool.php

示例13: setUp

 public function setUp()
 {
     $this->tsfeBackup = $GLOBALS['TSFE'];
     $GLOBALS['TSFE'] = $this->getMock('tslib_fe', array(), array(), '', FALSE);
     $this->getBackup = t3lib_div::_GET();
     $this->mockContentObject = $this->getMock('tslib_cObj');
     $this->mockRequest = $this->getMock('Tx_Extbase_MVC_Web_Request');
     $this->uriBuilder = $this->getAccessibleMock('Tx_Extbase_MVC_Web_Routing_UriBuilder', array('build'));
     $this->uriBuilder->setRequest($this->mockRequest);
     $this->uriBuilder->_set('contentObject', $this->mockContentObject);
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:11,代码来源:UriBuilderTest.php

示例14: loadGP

 protected function loadGP()
 {
     $gp = array_merge(t3lib_div::_GET(), t3lib_div::_POST());
     if ($this->formValuesPrefix) {
         $gp = $gp[$this->formValuesPrefix];
     }
     if (!is_array($gp)) {
         $gp = array();
     }
     return $gp;
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:11,代码来源:Tx_Formhandler_PreProcessor_LoadGetPost.php

示例15: add_totop_params

 function add_totop_params()
 {
     $params_search = t3lib_div::_GET('tx_indexedsearch');
     if ($params_search) {
         $addParams = t3lib_div::_GET('no_cache') ? '&no_cache=1' : '';
         foreach ($params_search as $k => $v) {
             $addParams .= '&tx_indexedsearch[' . $k . ']=' . $v;
         }
     }
     return $addParams;
 }
开发者ID:rafu1987,项目名称:t3bootstrap-project,代码行数:11,代码来源:user_is_functions.php


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