- Timestamp:
- Jun 19, 2004, 1:25:06 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/htmlfunctions.inc.php
r398 r438 26 26 // +-----------------------------------------------------------------------+ 27 27 28 function get_icon( $date _comparaison)28 function get_icon( $date ) 29 29 { 30 30 global $user, $conf, $lang; 31 $difference = time() - $date_comparaison; 32 $jours = 24*60*60; 31 32 list( $year,$month,$day ) = explode( '-', $date ); 33 $unixtime = mktime( 0, 0, 0, $month, $day, $year ); 34 35 $diff = time() - $unixtime; 36 $day_in_seconds = 24*60*60; 33 37 $output = ''; 34 38 $title = $lang['recent_image'].' '; 35 if ( $diff erence < $user['long_period'] * $jours )39 if ( $diff < $user['long_period'] * $day_in_seconds ) 36 40 { 37 41 $icon_url = './template/'.$user['template'].'/theme/'; 38 if ( $diff erence < $user['short_period'] * $jours )42 if ( $diff < $user['short_period'] * $day_in_seconds ) 39 43 { 40 44 $icon_url.= 'new_short.gif'; 41 $title .= $user['short_period'];45 $title .= $user['short_period']; 42 46 } 43 47 else 44 48 { 45 49 $icon_url.= 'new_long.gif'; 46 $title .= $user['long_period'];50 $title .= $user['long_period']; 47 51 } 48 $title .= ' '.$lang['days'];52 $title .= ' '.$lang['days']; 49 53 $size = getimagesize( $icon_url ); 50 54 $output = '<img title="'.$title.'" src="'.$icon_url.'" style="border:0;';
Note: See TracChangeset
for help on using the changeset viewer.