[TYPO3-german] powermail und cooluri - geht dass?
Michael Karrer
m.karrer at bt-center.at
Wed May 7 15:08:12 CEST 2008
Ich möchte gerne powermail zusammen mit cooluri verwenden.
Powermail verwendet folgende Konfiguration für RealURL.:
ext_localconf.php:
-----
// Set realurlconf for type = 3131 (needed to get a dynamic JavaScript
for formcheck)
if(t3lib_extMgm::isLoaded('realurl',0) &&
$confArr['disablePMRealUrlConfig'] != 1) { // only if realurl is loaded
and automatic configuration should be activated
// $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']
if(isset($TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'])) { //
only if array is already set in localconf.php
$i=0; $set=0; // init counter and flag
if(isset($TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['preVars'])
&&
is_array($TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['preVars']))
{ // if preVars already set in realurl conf
foreach
($TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['preVars'] as $key
=> $value) { // one loop for every preVar
if($TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['preVars'][$i]['GETvar']
== 'type') { // if current preVar == type
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['preVars'][$i]['valueMap']['validation']
= '3131'; // add validation => 3131
$set = 1; // validation alreade added - so flag = 1
}
$i++; // increase loop counter
}
}
if($set==0) { // if flag == 0 (valdiation => 3131 not set) add
complete type array
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['preVars'][] = array
( // add complete type array
'GETvar' => 'type',
'valueMap' => array (
'validation' => '3131'
),
'noMatch' => 'bypass'
);
}
} else { // set preVars for realurl
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['preVars'][]
= array ( // add complete type array
'GETvar' => 'type',
'valueMap' => array (
'validation' => '3131'
),
'noMatch' => 'bypass'
);
}
// $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.currentURL.com']
if(isset($TYPO3_CONF_VARS['EXTCONF']['realurl'][$_SERVER['HTTP_HOST']]))
{ // only if array is already set in localconf.php
$i=0; $set=0; // init counter and flag
if(isset($TYPO3_CONF_VARS['EXTCONF']['realurl'][$_SERVER['HTTP_HOST']]['preVars'])
&&
is_array($TYPO3_CONF_VARS['EXTCONF']['realurl'][$_SERVER['HTTP_HOST']]['preVars']))
{ // if preVars already set in realurl conf
foreach
($TYPO3_CONF_VARS['EXTCONF']['realurl'][$_SERVER['HTTP_HOST']]['preVars']
as $key => $value) { // one loop for every preVar
if($TYPO3_CONF_VARS['EXTCONF']['realurl'][$_SERVER['HTTP_HOST']]['preVars'][$i]['GETvar']
== 'type') { // if current preVar == type
$TYPO3_CONF_VARS['EXTCONF']['realurl'][$_SERVER['HTTP_HOST']]['preVars'][$i]['valueMap']['validation']
= '3131'; // add validation => 3131
$set = 1; // validation alreade added - so flag = 1
}
$i++; // increase loop counter
}
}
if($set==0) { // if flag == 0 (valdiation => 3131 not set) add
complete type array
// Bugfix 2008-04-10 for special realurlconf
if
(!is_array($TYPO3_CONF_VARS['EXTCONF']['realurl'][$_SERVER['HTTP_HOST']])) {
$key =
$TYPO3_CONF_VARS['EXTCONF']['realurl'][$_SERVER['HTTP_HOST']];
} else {
$key = $_SERVER['HTTP_HOST'];
}
$TYPO3_CONF_VARS['EXTCONF']['realurl'][$key]['preVars'][] =
array ( // add complete type array
'GETvar' => 'type',
'valueMap' => array (
'validation' => '3131'
),
'noMatch' => 'bypass'
);
}
}
}
-----
hat jemand eine Idee wie das ganze für CoolURI aussehen würde?!?
"Quick and Dirty" würd mir durchaus genügen.
Danke Liste!
mike
More information about the TYPO3-german
mailing list