[ Index ] |
PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09) |
[Summary view] [Print] [Text view]
1 <?php 2 3 // ---------------------------------------------------------------- 4 // obligate check for phpwcms constants 5 if (!defined('PHPWCMS_ROOT')) { 6 die("You Cannot Access This Script Directly, Have a Nice Day."); 7 } 8 // ---------------------------------------------------------------- 9 10 11 $content["all"] = preg_replace('/\{D:(.*?)\}/ie', 'myRT1("$1")', $content["all"]); 12 13 function myRT1($rtinfo) { 14 15 $dateImage = ''; 16 $rtinfo = explode(',', $rtinfo); 17 $startDate = strtotime($rtinfo[0]); 18 $timeout = isset($rtinfo[1]) ? intval($rtinfo[1]) : 0; 19 $timeout = $timeout * 24 * 3600; 20 21 if(time() - $timeout < $startDate) { 22 $dateImage = '<img src="picture/myRT1/'.$rtinfo[2].'" alt="'.$rtinfo[0].'" border="0">'; 23 } 24 25 return $dateImage; 26 } 27 28 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Dec 30 05:55:15 2009 | Cross-referenced by PHPXref 0.7 |