Feature #16937 ยป matchconditions.patch
/Users/olivier/Documents/workspace/TYPO3trunk/t3lib/class.t3lib_matchcondition.php (working copy) | ||
---|---|---|
case 'hostname':
|
||
if (t3lib_div::cmpFQDN(t3lib_div::getIndpEnv('REMOTE_ADDR'), $value)) {return true;}
|
||
break;
|
||
// hour, minute, dayofweek, dayofmonth, month
|
||
// hour, minute, dayofweek, dayofmonth, month, year, julianday
|
||
case 'hour':
|
||
case 'minute':
|
||
case 'dayofweek':
|
||
... | ... | |
case 'dayofweek':
|
||
case 'dayofmonth':
|
||
case 'month':
|
||
case 'year':
|
||
case 'julianday':
|
||
$theEvalTime = $GLOBALS['SIM_EXEC_TIME']; // In order to simulate time properly in templates.
|
||
switch($key) {
|
||
case 'hour': $theTestValue = date('H',$theEvalTime); break;
|
||
... | ... | |
case 'dayofweek': $theTestValue = date('w',$theEvalTime); break;
|
||
case 'dayofmonth': $theTestValue = date('d',$theEvalTime); break;
|
||
case 'month': $theTestValue = date('m',$theEvalTime); break;
|
||
case 'year': $theTestValue = date('Y',$theEvalTime); break;
|
||
case 'julianday': $theTestValue = date('z',$theEvalTime); break;
|
||
}
|
||
$theTestValue = intval($theTestValue);
|
||
// comp
|