Project

General

Profile

Bug #23497 » class.tx_t3innapi_content_eid.php

Administrator Admin, 2010-09-03 12:15

 
<?php

// Inclusion des librairies nécessaires
require_once(PATH_t3lib . 'class.t3lib_befunc.php');
require_once(PATH_t3lib . 'stddb/tables.php');
require_once(t3lib_extMgm::extPath('cms', 'ext_tables.php'));
require_once(t3lib_extMgm::extPath('t3inn_api').'class.ux_tslib_pibase.php');

class tx_t3innapi_content_eID extends ux_tslib_pibase {
public function __construct() {
@set_time_limit(300);
$this->initTSFE();
}
function main() {
$cObj = t3lib_div::makeInstance('tslib_cObj');
$this->cObj = $cObj;
tslib_eidtools::connectDB(); //Connect to database
$uid = trim(t3lib_div::_GP('uid'));
$uid = substr($uid, 1);
$local_cObj = t3lib_div::makeInstance('tslib_cObj');
$ceConf = array('tables' => 'tt_content', 'source' => $uid, 'dontCheckPid' => 1);
$content = $local_cObj->RECORDS($ceConf);
echo $content;
}
protected function initTSFE() {
if (version_compare(TYPO3_version, '4.3.0', '<')) {
$tsfeClassName = t3lib_div::makeInstanceClassName('tslib_fe');
$GLOBALS['TSFE'] = new $tsfeClassName($GLOBALS['TYPO3_CONF_VARS'], t3lib_div::_GP('id'), '');
}
else {
$GLOBALS['TSFE'] = t3lib_div::makeInstance('tslib_fe', $GLOBALS['TYPO3_CONF_VARS'], t3lib_div::_GP('id'), '');
}
$GLOBALS['TSFE']->connectToDB();
$GLOBALS['TSFE']->initFEuser();
$GLOBALS['TSFE']->checkAlternativeIdMethods();
$GLOBALS['TSFE']->determineId();
$GLOBALS['TSFE']->getCompressedTCarray();
$GLOBALS['TSFE']->initTemplate();
$GLOBALS['TSFE']->getConfigArray();

TSpagegen::pagegenInit();
}

}

// instanciation
$SOBE = t3lib_div::makeInstance('tx_t3innapi_content_eID');
$SOBE->main();

if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/t3inn_api/class.tx_t3innapi_content_eid.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/t3inn_api/class.tx_t3innapi_content_eid.php']);
}
?>
    (1-1/1)