class tx_success_mail{
function PM_SubmitEmailHook($subpart, $maildata, $sessiondata, $markerArray, &$classRef){
$classRef->conf['emailformat.'][$subpart] = 'html';
}
function PM_SubmitEmailHook2($subpart, &$htmlMail, &$classRef){
if($subpart == 'recipient_mail'){
$userIdArr = explode("|||", $_COOKIE["_sccolvaluid"]);
$besuche = $userIdArr[1];
$userId = $userIdArr[0];
$sessionId = $_COOKIE["_sccolvalsid"];
$benutzer = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['dp_successcontrol']);
$url = "http://www.success-control.com/collect/success_mail.php?u=".$benutzer['successname']."&uID=".$userId."&sID=".$sessionId;
$content = file_get_contents($url);
$scImage = 'baseUrl.'typo3conf/ext/dp_success_mail/res/images/logo_sc.jpg" width="268" height="41" border="0" alt="ein service von success-control" />';
if($content) $classRef->mailcontent[$subpart] .= "
".$scImage."
".$content;
}
$classRef->htmlMail->setHTML($classRef->htmlMail->encodeMsg($this->generateTemplate($classRef->mailcontent[$subpart])));
}
function generateTemplate($content){
$topImage = 'baseUrl.'typo3conf/ext/dp_success_mail/res/images/top.jpg" width="105" height="28" alt="Anfrage" />';
$bottomImage = 'baseUrl.'typo3conf/ext/dp_success_mail/res/images/bottom.jpg" width="793" height="39" alt="Footerbild" />';
$template = '
';
return $template;
}
}
?>
$TYPO3_CONF_VARS['EXTCONF'] ['realurl'] ['_DEFAULT'] = array(
'init' => array(
'enableCHashCache' => 1,
'enableUrlDecodeCache' => 1,
'enableUrlEncodeHash' => 1,
'postVarSet_failureMode' => 'redirect_goodUpperDir',
),
'rewrite' => array(
),
/*'preVars' => array(
array(
'GETvar' => 'L',
'valueMap' => array(
'de' => '0',
'en' => '1',
),
'valueDefault' => 'de',
),
),*/
'pagePath' => array(
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 3,
'rootpage_id' => '1'
),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => 1,
'index' => array(
'page.html' => array(
'keyValues' => array (
'type' => 1,
),
),
),
),
'fixedPostVarSets' => array(
),
'postVarSets' => array(
'_DEFAULT' => array(
//archive
'period' => array (
array (
'condPrevValue' => -1,
'GETvar' => 'tx_ttnews[pS]',
//'valueMap => array()
),
array (
'GETvar' => 'tx_ttnews[pL]',
//'valueMap => array()
),
array (
'GETvar' => 'tx_ttnews[arc]',
'valueMap' => array(
'non-archived' => -1,
),
),
),
'browse' => array (
array (
'GETvar' => 'tx_ttnews[pointer]',
),
),
'select' => array (
array (
'GETvar' => 'tx_ttnews[cat]',
'lookUpTable' => array (
'table' => 'tt_news_cat',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause'=> 'AND NOT deleted',
'useUniqueCache'=> 1,
'useUniqueCache_conf' => array (
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
'article' => array(
array (
'GETvar' => 'tx_ttnews[backPid]',
// 'valueMap => array(
// ),
),
array (
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array (
'table' => 'tt_news',
'id_field' => 'uid',
'alias_field' => 'title',
'maxLength' => 20,
'addWhereClause'=> 'AND NOT deleted',
'useUniqueCache'=> 1,
'useUniqueCache_conf' => array (
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
),
),
),
);
?>