"TYPO3 4.0.1: typo3_src-4.0.1/typo3/sysext/cms/tslib/media/scripts/testscript_EXT.php Source File", "datetime" => "Sat Dec 2 19:22:30 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>
00001 <?php 00002 # TYPO3 CVS ID: $Id: testscript_EXT.php 141 2004-03-22 15:46:24Z typo3 $ 00003 00004 if (!is_object($TSFE)) die ('Error: No parent object present.'); 00005 00006 00007 00008 00016 function user_printTimeExt($content,$conf) { 00017 return '<font color="red">Dynamic time: '.date('H:i:s').'</font><br />'; 00018 } 00019 00020 ?> 00021 00022 This is output from an external script! 00023 <br /> 00024 <br /> 00025 00026 You can get the content of the record, that included this script in $REC:<br /> 00027 <br /> 00028 00029 00030 <?php debug($REC); ?> 00031 00032 <br /> 00033 <br /> 00034 The configuration for the script is in the array, $CONF:<br /> 00035 <br /> 00036 00037 00038 00039 00040 <?php 00041 debug($CONF); 00042 00043 ?> 00044 00045 <br /> 00046 <br /> 00047 These are global variables! 00048 00049 <br /> 00050 <br /> 00051 Good luck.... 00052 00053 00054 BTW: The time: 00055 <?php if ($CONF['showTime']) {echo user_printTimeExt('','');} ?> 00056 <br /> 00057 <br /> 00058 00059 <?php 00060 00061 $content = '(This is returned in the variable, $content, which is another option...'; 00062 00063 ?> 00064 <hr />