/**
  * Provides was to bypass the "?id=[xxx]&type=[xx]" format.
  *
  * Two options:
  * 1) Apache mod_rewrite: Here a .htaccess file maps all .html-files to index.php and then we extract the id and type from the name of that HTML-file.
  * 2) Use PATH_INFO (also Apache) to extract id and type from that var. Does not require any special modules compiled with apache.
  *
  * @see TSref.pdf
  */
 function checkAlternativeIdMethods()
 {
     // call original Function
     parent::checkAlternativeIdMethods();
     $_params = array('pObj' => &$this);
     require_once t3lib_div::getFileAbsFileName('EXT:pdf_generator2/class.tx_pdfgenerator2.php');
     t3lib_div::callUserFunction("tx_pdfgenerator2->tslib_fe_checkAlternativeIdMethods", $_params, $this);
 }
Example #2
0
//print_r(array(TYPO3_REQUESTTYPE_AJAX,TYPO3_REQUESTTYPE,TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX));
$L = intval(t3lib_div::_GP('L'));
if ($L > 0) {
    t3lib_div::_GETset(array('L' => $L));
}
$idAndTarget = rawurldecode(t3lib_div::_GP('id'));
$idParts = t3lib_div::trimExplode(' ', $idAndTarget, 1);
$id = intval($idParts[0]);
// Make new instance of TSFE
//$temp_TSFEclassName = t3lib_div::makeInstanceClassName('tslib_fe');
$TSFE = new tslib_fe($GLOBALS['TYPO3_CONF_VARS'], $id, t3lib_div::_GP('type'), t3lib_div::_GP('no_cache'), t3lib_div::_GP('cHash'), t3lib_div::_GP('jumpurl'), t3lib_div::_GP('MP'), t3lib_div::_GP('RDCT'));
// don't cache ajax responses
$TSFE->no_cache = true;
$TSFE->connectToDB();
$TSFE->initFEuser();
$TSFE->checkAlternativeIdMethods();
$TSFE->clear_preview();
$TSFE->determineId();
$TSFE->getCompressedTCarray();
$TSFE->initTemplate();
$TSFE->getConfigArray();
if ($L > 0) {
    $TSFE->settingLanguage();
    $TSFE->settingLocale();
}
// finding the script path from the variable
$ajaxID = (string) t3lib_div::_GP('ajaxID');
require_once t3lib_extMgm::extPath('tt_news') . 'pi/class.tx_ttnews.php';
require_once t3lib_extMgm::extPath('tt_news') . 'lib/class.tx_ttnews_helpers.php';
require_once t3lib_extMgm::extPath('tt_news') . 'lib/class.tx_ttnews_typo3ajax.php';
/**