Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_modules / postcalendar / pnincludes / Smarty / plugins [ view in CVS ]
Date | Directory [filter] | File(s) [view] | Author [filter] |
21 Aug 2002 20:21:47 | postnuke_modules/postcalendar/pnincludes/Smarty/plugins | function.assign_debug_info.php,1.1,1.2 function.cycle.php,1.1,1.2 function.eval.php,1.1,1.2 function.html_options.php,1.1,1.2 function.html_select_date.php,1.1,1.2 function.html_select_time.php,1.1,1.2 function.math.php,1.1,1.2 function.popup_init.php,1.1 | Roger Raymond |
Smarty 2.3.0 |
Update of /home/cvsroot/postnuke_modules/postcalendar/pnincludes/Smarty/plugins In directory ns7.hostnuke.net:/tmp/cvs-serv14933/plugins Modified Files: function.assign_debug_info.php function.cycle.php function.eval.php function.html_options.php function.html_select_date.php function.html_select_time.php function.math.php function.popup_init.php modifier.date_format.php modifier.debug_print_var.php modifier.escape.php shared.make_timestamp.php Log Message: Smarty 2.3.0 Index: function.assign_debug_info.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnincludes/Smarty/plugins/function.assign_debug_info.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** function.assign_debug_info.php 7 Jun 2002 01:06:53 -0000 1.1 --- function.assign_debug_info.php 21 Aug 2002 20:21:45 -0000 1.2 *************** *** 13,17 **** $assigned_vars = $smarty->_tpl_vars; ksort($assigned_vars); ! if (is_array($smarty->_config[0])) { $config_vars = $smarty->_config[0]; ksort($config_vars); --- 13,17 ---- $assigned_vars = $smarty->_tpl_vars; ksort($assigned_vars); ! if (@is_array($smarty->_config[0])) { $config_vars = $smarty->_config[0]; ksort($config_vars); Index: function.cycle.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnincludes/Smarty/plugins/function.cycle.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** function.cycle.php 7 Jun 2002 01:06:53 -0000 1.1 --- function.cycle.php 21 Aug 2002 20:21:45 -0000 1.2 *************** *** 6,10 **** * Type: function * Name: cycle ! * Version: 1.2 * Date: May 3, 2002 * Author: Monte Ohrt <monte@ispi.net> --- 6,10 ---- * Type: function * Name: cycle ! * Version: 1.3 * Date: May 3, 2002 * Author: Monte Ohrt <monte@ispi.net> *************** *** 47,55 **** $advance = true; } ! ! if (!isset($delimiter)) { ! $delimiter = ','; } ! if (!in_array('values', array_keys($params))) { if(!isset($cycle_vars[$name]['values'])) { --- 47,55 ---- $advance = true; } ! ! if (!isset($reset)) { ! $reset = false; } ! if (!in_array('values', array_keys($params))) { if(!isset($cycle_vars[$name]['values'])) { *************** *** 65,70 **** } if(!is_array($cycle_vars[$name]['values'])) { ! $cycle_array = explode($delimiter,$cycle_vars[$name]['values']); } else { $cycle_array = $cycle_vars[$name]['values']; --- 65,76 ---- } + if (isset($delimiter)) { + $cycle_vars[$name]['delimiter'] = $delimiter; + } elseif (!isset($cycle_vars[$name]['delimiter'])) { + $cycle_vars[$name]['delimiter'] = ','; + } + if(!is_array($cycle_vars[$name]['values'])) { ! $cycle_array = explode($cycle_vars[$name]['delimiter'],$cycle_vars[$name]['values']); } else { $cycle_array = $cycle_vars[$name]['values']; *************** *** 74,78 **** $cycle_vars[$name]['index'] = 0; } ! if (isset($assign)) { $print = false; --- 80,84 ---- $cycle_vars[$name]['index'] = 0; } ! if (isset($assign)) { $print = false; *************** *** 81,85 **** if($print) { ! echo $cycle_array[$cycle_vars[$name]['index']]."\n"; } --- 87,91 ---- if($print) { ! echo $cycle_array[$cycle_vars[$name]['index']]; } Index: function.eval.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnincludes/Smarty/plugins/function.eval.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** function.eval.php 7 Jun 2002 01:06:53 -0000 1.1 --- function.eval.php 21 Aug 2002 20:21:45 -0000 1.2 *************** *** 13,20 **** extract($params); ! if (empty($var)) { ! $this->trigger_error("assign: missing 'var' parameter"); return; } $this->_compile_template("evaluated template", $var, $source); --- 13,23 ---- extract($params); ! if (!isset($var)) { ! $this->trigger_error("eval: missing 'var' parameter"); return; } + if($var == '') { + return; + } $this->_compile_template("evaluated template", $var, $source); Index: function.html_options.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnincludes/Smarty/plugins/function.html_options.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** function.html_options.php 7 Jun 2002 01:06:53 -0000 1.1 --- function.html_options.php 21 Aug 2002 20:21:45 -0000 1.2 *************** *** 30,34 **** settype($output, 'array'); settype($values, 'array'); ! for ($i = 0; $i < count($output); $i++) { /* By default, check value against $selected */ $sel_check = $values[$i]; --- 30,34 ---- settype($output, 'array'); settype($values, 'array'); ! for ($i = 0, $for_max = count($output); $i < $for_max; $i++) { /* By default, check value against $selected */ $sel_check = $values[$i]; Index: function.html_select_date.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnincludes/Smarty/plugins/function.html_select_date.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** function.html_select_date.php 7 Jun 2002 01:06:53 -0000 1.1 --- function.html_select_date.php 21 Aug 2002 20:21:45 -0000 1.2 *************** *** 5,9 **** * Type: function * Name: html_select_date ! * Version: 1.2 * Purpose: Prints the dropdowns for date selection. * Author: Andrei Zmievski --- 5,9 ---- * Type: function * Name: html_select_date ! * Version: 1.3 * Purpose: Prints the dropdowns for date selection. * Author: Andrei Zmievski *************** *** 14,21 **** * 1.2 added support for yyyy-mm-dd syntax for * time value. (Jan Rosier) * ------------------------------------------------------------- */ ! require_once SMARTY_DIR . $this->plugins_dir . '/shared.make_timestamp.php'; ! require_once SMARTY_DIR . $this->plugins_dir . '/function.html_options.php'; function smarty_function_html_select_date($params, &$smarty) { --- 14,23 ---- * 1.2 added support for yyyy-mm-dd syntax for * time value. (Jan Rosier) + * 1.3 added support for choosing format for + * month values (Gary Loescher) * ------------------------------------------------------------- */ ! require_once $this->_get_plugin_filepath('shared','make_timestamp'); ! require_once $this->_get_plugin_filepath('function','html_options'); function smarty_function_html_select_date($params, &$smarty) { *************** *** 28,31 **** --- 30,35 ---- $display_years = true; $month_format = "%B"; + /* Write months as numbers by default GL */ + $month_value_format = "%m"; $day_format = "%02d"; $year_as_text = false; *************** *** 53,85 **** /* String printed between the different fields. */ $field_separator = "\n"; - extract($params); - - // If $time is not in format yyyy-mm-dd - if (!preg_match('/^\d{4}-\d{2}-\d{2}$/', $time)) { - // then $time is empty or unix timestamp or mysql timestamp - // using smarty_make_timestamp to get an unix timestamp and - // strftime to make yyyy-mm-dd - $time = strftime('%Y-%m-%d', smarty_make_timestamp($time)); - } - // Now split this in pieces, which later can be used to set the select - $time = explode("-", $time); ! // make syntax "+N" or "-N" work with start_year and end_year ! if (preg_match('!^(\+|\-)\s*(\d+)$!', $end_year, $match)) { ! if ($match[1] == '+') { ! $end_year = strftime('%Y') + $match[2]; ! } else { ! $end_year = strftime('%Y') - $match[2]; ! } ! } ! if (preg_match('!^(\+|\-)\s*(\d+)$!', $start_year, $match)) { ! if ($match[1] == '+') { ! $start_year = strftime('%Y') + $match[2]; ! } else { ! $start_year = strftime('%Y') - $match[2]; ! } ! } $field_order = strtoupper($field_order); --- 57,91 ---- /* String printed between the different fields. */ $field_separator = "\n"; + $time = time(); ! extract($params); + // If $time is not in format yyyy-mm-dd + if (!preg_match('/^\d{4}-\d{2}-\d{2}$/', $time)) { + // then $time is empty or unix timestamp or mysql timestamp + // using smarty_make_timestamp to get an unix timestamp and + // strftime to make yyyy-mm-dd + $time = strftime('%Y-%m-%d', smarty_make_timestamp($time)); + } + // Now split this in pieces, which later can be used to set the select + $time = explode("-", $time); + + // make syntax "+N" or "-N" work with start_year and end_year + if (preg_match('!^(\+|\-)\s*(\d+)$!', $end_year, $match)) { + if ($match[1] == '+') { + $end_year = strftime('%Y') + $match[2]; + } else { + $end_year = strftime('%Y') - $match[2]; + } + } + if (preg_match('!^(\+|\-)\s*(\d+)$!', $start_year, $match)) { + if ($match[1] == '+') { + $start_year = strftime('%Y') + $match[2]; + } else { + $start_year = strftime('%Y') - $match[2]; + } + } + $field_order = strtoupper($field_order); *************** *** 88,94 **** if ($display_months) { $month_names = array(); ! for ($i = 1; $i <= 12; $i++) $month_names[] = strftime($month_format, mktime(0, 0, 0, $i, 1, 2000)); $month_result .= '<select name='; --- 94,103 ---- if ($display_months) { $month_names = array(); + $month_values = array(); ! for ($i = 1; $i <= 12; $i++) { $month_names[] = strftime($month_format, mktime(0, 0, 0, $i, 1, 2000)); + $month_values[] = strftime($month_value_format, mktime(0, 0, 0, $i, 1, 2000)); + } $month_result .= '<select name='; *************** *** 108,116 **** } $month_result .= '>'."\n"; $month_result .= smarty_function_html_options(array('output' => $month_names, ! 'values' => range(1, 12), ! 'selected' => $time[1], 'print_result' => false), $smarty); $month_result .= '</select>'; } --- 117,127 ---- } $month_result .= '>'."\n"; + $month_result .= smarty_function_html_options(array('output' => $month_names, ! 'values' => $month_values, ! 'selected' => $month_values[$time[1]-1], 'print_result' => false), $smarty); + $month_result .= '</select>'; } Index: function.html_select_time.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnincludes/Smarty/plugins/function.html_select_time.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** function.html_select_time.php 7 Jun 2002 01:06:53 -0000 1.1 --- function.html_select_time.php 21 Aug 2002 20:21:45 -0000 1.2 *************** *** 9,14 **** * ------------------------------------------------------------- */ ! require_once SMARTY_DIR . $this->plugins_dir . '/shared.make_timestamp.php'; ! require_once SMARTY_DIR . $this->plugins_dir . '/function.html_options.php'; function smarty_function_html_select_time($params, &$smarty) { --- 9,14 ---- * ------------------------------------------------------------- */ ! require_once $this->_get_plugin_filepath('shared','make_timestamp'); ! require_once $this->_get_plugin_filepath('function','html_options'); function smarty_function_html_select_time($params, &$smarty) { *************** *** 28,31 **** --- 28,36 ---- Can be combined with prefix. */ $field_array = null; + $all_extra = null; + $hour_extra = null; + $minute_extra = null; + $second_extra = null; + $meridian_extra = null; extract($params); *************** *** 38,49 **** $hours = $use_24_hours ? range(0, 23) : range(1, 12); $hour_fmt = $use_24_hours ? '%H' : '%I'; ! for ($i = 0; $i < count($hours); $i++) $hours[$i] = sprintf('%02d', $hours[$i]); $html_result .= '<select name='; if (null !== $field_array) { ! $html_result .= '"' . $field_array . '[' . $prefix . 'Hour]">'."\n"; } else { ! $html_result .= '"' . $prefix . 'Hour">'."\n"; } $html_result .= smarty_function_html_options(array('output' => $hours, 'values' => $hours, --- 43,61 ---- $hours = $use_24_hours ? range(0, 23) : range(1, 12); $hour_fmt = $use_24_hours ? '%H' : '%I'; ! for ($i = 0, $for_max = count($hours); $i < $for_max; $i++) $hours[$i] = sprintf('%02d', $hours[$i]); $html_result .= '<select name='; if (null !== $field_array) { ! $html_result .= '"' . $field_array . '[' . $prefix . 'Hour]"'; } else { ! $html_result .= '"' . $prefix . 'Hour"'; ! } ! if (null !== $hour_extra){ ! $html_result .= ' ' . $hour_extra; ! } ! if (null !== $all_extra){ ! $html_result .= ' ' . $all_extra; } + $html_result .= '>'."\n"; $html_result .= smarty_function_html_options(array('output' => $hours, 'values' => $hours, *************** *** 56,68 **** if ($display_minutes) { $all_minutes = range(0, 59); ! for ($i = 0; $i < count($all_minutes); $i+= $minute_interval) $minutes[] = sprintf('%02d', $all_minutes[$i]); $selected = intval(floor(strftime('%M', $time) / $minute_interval) * $minute_interval); $html_result .= '<select name='; if (null !== $field_array) { ! $html_result .= '"' . $field_array . '[' . $prefix . 'Minute]">'."\n"; } else { ! $html_result .= '"' . $prefix . 'Minute">'."\n"; } $html_result .= smarty_function_html_options(array('output' => $minutes, 'values' => $minutes, --- 68,88 ---- if ($display_minutes) { $all_minutes = range(0, 59); ! for ($i = 0, $for_max = count($all_minutes); $i < $for_max; $i+= $minute_interval) $minutes[] = sprintf('%02d', $all_minutes[$i]); $selected = intval(floor(strftime('%M', $time) / $minute_interval) * $minute_interval); $html_result .= '<select name='; if (null !== $field_array) { ! $html_result .= '"' . $field_array . '[' . $prefix . 'Minute]"'; } else { ! $html_result .= '"' . $prefix . 'Minute"'; ! } ! if (null !== $minute_extra){ ! $html_result .= ' ' . $minute_extra; ! } ! if (null !== $all_extra){ ! $html_result .= ' ' . $all_extra; } + $html_result .= '>'."\n"; + $html_result .= smarty_function_html_options(array('output' => $minutes, 'values' => $minutes, *************** *** 75,87 **** if ($display_seconds) { $all_seconds = range(0, 59); ! for ($i = 0; $i < count($all_seconds); $i+= $second_interval) $seconds[] = sprintf('%02d', $all_seconds[$i]); $selected = intval(floor(strftime('%S', $time) / $second_interval) * $second_interval); $html_result .= '<select name='; if (null !== $field_array) { ! $html_result .= '"' . $field_array . '[' . $prefix . 'Second]">'."\n"; } else { ! $html_result .= '"' . $prefix . 'Second">'."\n"; } $html_result .= smarty_function_html_options(array('output' => $seconds, 'values' => $seconds, --- 95,116 ---- if ($display_seconds) { $all_seconds = range(0, 59); ! for ($i = 0, $for_max = count($all_seconds); $i < $for_max; $i+= $second_interval) $seconds[] = sprintf('%02d', $all_seconds[$i]); $selected = intval(floor(strftime('%S', $time) / $second_interval) * $second_interval); $html_result .= '<select name='; if (null !== $field_array) { ! $html_result .= '"' . $field_array . '[' . $prefix . 'Second]"'; } else { ! $html_result .= '"' . $prefix . 'Second"'; ! } ! ! if (null !== $second_extra){ ! $html_result .= ' ' . $second_extra; ! } ! if (null !== $all_extra){ ! $html_result .= ' ' . $all_extra; } + $html_result .= '>'."\n"; + $html_result .= smarty_function_html_options(array('output' => $seconds, 'values' => $seconds, *************** *** 95,102 **** $html_result .= '<select name='; if (null !== $field_array) { ! $html_result .= '"' . $field_array . '[' . $prefix . 'Meridian]">'."\n"; } else { ! $html_result .= '"' . $prefix . 'Meridian">'."\n"; } $html_result .= smarty_function_html_options(array('output' => array('AM', 'PM'), 'values' => array('am', 'pm'), --- 124,140 ---- $html_result .= '<select name='; if (null !== $field_array) { ! $html_result .= '"' . $field_array . '[' . $prefix . 'Meridian]"'; } else { ! $html_result .= '"' . $prefix . 'Meridian"'; ! } ! ! if (null !== $meridian_extra){ ! $html_result .= ' ' . $meridian_extra; ! } ! if (null !== $all_extra){ ! $html_result .= ' ' . $all_extra; } + $html_result .= '>'."\n"; + $html_result .= smarty_function_html_options(array('output' => array('AM', 'PM'), 'values' => array('am', 'pm'), Index: function.math.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnincludes/Smarty/plugins/function.math.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** function.math.php 7 Jun 2002 01:06:53 -0000 1.1 --- function.math.php 21 Aug 2002 20:21:45 -0000 1.2 *************** *** 12,21 **** { // be sure equation parameter is present ! if (empty($params["equation"])) { $smarty->trigger_error("math: missing equation parameter"); return; } ! $equation = $params["equation"]; // make sure parenthesis are balanced --- 12,21 ---- { // be sure equation parameter is present ! if (empty($params['equation'])) { $smarty->trigger_error("math: missing equation parameter"); return; } ! $equation = $params['equation']; // make sure parenthesis are balanced *************** *** 54,68 **** eval("\$smarty_math_result = ".$equation.";"); ! if (empty($params["format"])) { ! if (empty($params["assign"])) { echo $smarty_math_result; } else { ! $smarty->assign($params["assign"],$smarty_math_result); } } else { ! if (empty($params["assign"])){ ! printf($params["format"],$smarty_math_result); } else { ! $smarty->assign($assign,sprintf($params["format"],$smarty_math_result)); } } --- 54,68 ---- eval("\$smarty_math_result = ".$equation.";"); ! if (empty($params['format'])) { ! if (empty($params['assign'])) { echo $smarty_math_result; } else { ! $smarty->assign($params['assign'],$smarty_math_result); } } else { ! if (empty($params['assign'])){ ! printf($params['format'],$smarty_math_result); } else { ! $smarty->assign($params['assign'],sprintf($params['format'],$smarty_math_result)); } } Index: function.popup_init.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnincludes/Smarty/plugins/function.popup_init.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** function.popup_init.php 7 Jun 2002 01:06:53 -0000 1.1 --- function.popup_init.php 21 Aug 2002 20:21:45 -0000 1.2 *************** *** 11,24 **** function smarty_function_popup_init($params, &$smarty) { ! // be sure to place overlib.js where Smarty can locate it. ! // overlib.js came with the distribution of Smarty. ! extract($params); ! echo '<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>'."\n"; ! if (empty($src)) { ! echo '<script language="JavaScript">'."\n".'<!--'."\n"; ! readfile(SMARTY_DIR."overlib.js",1); ! echo '// -->'."\n".'</script>'."\n"; } else { ! echo '<script language="JavaScript" src="'.$src.'"></script>'."\n"; } } --- 11,25 ---- function smarty_function_popup_init($params, &$smarty) { ! $zindex = 1000; ! ! if (!empty($params['zindex'])) { ! $zindex = $params['zindex']; ! } ! ! if (!empty($params['src'])) { ! echo '<div id="overDiv" style="position:absolute; visibility:hidden; z-index:'.$zindex.';"></div>'."\n"; ! echo '<script type="text/javascript" language="JavaScript" src="'.$params['src'].'"></script>'."\n"; } else { ! $smarty->trigger_error("popup_init: missing src parameter"); } } Index: modifier.date_format.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnincludes/Smarty/plugins/modifier.date_format.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** modifier.date_format.php 7 Jun 2002 01:06:53 -0000 1.1 --- modifier.date_format.php 21 Aug 2002 20:21:45 -0000 1.2 *************** *** 7,16 **** * Name: date_format * Purpose: format datestamps via strftime * ------------------------------------------------------------- */ ! require_once SMARTY_DIR . $this->plugins_dir . '/shared.make_timestamp.php'; ! function smarty_modifier_date_format($string, $format="%b %e, %Y") { ! return strftime($format, smarty_make_timestamp($string)); } --- 7,25 ---- * Name: date_format * Purpose: format datestamps via strftime + * Input: string: input date string + * format: strftime format for output + * default_date: default date if $string is empty * ------------------------------------------------------------- */ ! require_once $this->_get_plugin_filepath('shared','make_timestamp'); ! function smarty_modifier_date_format($string, $format="%b %e, %Y", $default_date=null) { ! if($string != '') { ! return strftime($format, smarty_make_timestamp($string)); ! } elseif (isset($default_date) && $default_date != '') { ! return strftime($format, smarty_make_timestamp($default_date)); ! } else { ! return; ! } } Index: modifier.debug_print_var.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnincludes/Smarty/plugins/modifier.debug_print_var.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** modifier.debug_print_var.php 7 Jun 2002 01:06:53 -0000 1.1 --- modifier.debug_print_var.php 21 Aug 2002 20:21:45 -0000 1.2 *************** *** 18,21 **** --- 18,29 ---- } return $results; + } else if (is_object($var)) { + $object_vars = get_object_vars($var); + $results = "<b>".get_class($var)." Object (".count($object_vars).")</b>"; + foreach ($object_vars as $curr_key => $curr_val) { + $return = smarty_modifier_debug_print_var($curr_val, $depth+1); + $results .= '<br>\r'.str_repeat(' ', $depth*2)."<b>$curr_key</b> => $return"; + } + return $results; } else { if (empty($var) && $var != "0") { Index: modifier.escape.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnincludes/Smarty/plugins/modifier.escape.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** modifier.escape.php 10 Jun 2002 05:48:04 -0000 1.3 --- modifier.escape.php 21 Aug 2002 20:21:45 -0000 1.4 *************** *** 12,18 **** { switch ($esc_type) { - case 'addslashes': - return addslashes($string); - case 'html': return htmlspecialchars($string, ENT_QUOTES); --- 12,15 ---- *************** *** 27,32 **** // escape unescaped single quotes return preg_replace("%(?<!\\\\)'%", "\\'", $string); ! ! case 'hex': // escape every character into hex for ($x=0; $x < strlen($string); $x++) { --- 24,29 ---- // escape unescaped single quotes return preg_replace("%(?<!\\\\)'%", "\\'", $string); ! ! case 'hex': // escape every character into hex for ($x=0; $x < strlen($string); $x++) { Index: shared.make_timestamp.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/postcalendar/pnincludes/Smarty/plugins/shared.make_timestamp.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** shared.make_timestamp.php 7 Jun 2002 01:06:53 -0000 1.1 --- shared.make_timestamp.php 21 Aug 2002 20:21:45 -0000 1.2 *************** *** 23,28 **** } ! // can't decipher, just return it ! return $string; } --- 23,32 ---- } ! // couldn't recognize it, try to return a time ! $time = (int) $string; ! if ($time > 0) ! return $time; ! else ! return time(); }
View Statistics - Next Notice - Previous Notice
Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |