PEEL Shopping
Open source ecommerce : PEEL Shopping
shared.make_timestamp.php
Go to the documentation of this file.
1 <?php
17 function smarty_make_timestamp($string)
18 {
19  if (empty($string)) {
20  // use "now":
21  return time();
22  } elseif ($string instanceof DateTime) {
23  return $string->getTimestamp();
24  } elseif (strlen($string) == 14 && ctype_digit($string)) {
25  // it is mysql timestamp format of YYYYMMDDHHMMSS?
26  return mktime(substr($string, 8, 2),substr($string, 10, 2),substr($string, 12, 2),
27  substr($string, 4, 2),substr($string, 6, 2),substr($string, 0, 4));
28  } elseif (is_numeric($string)) {
29  // it is a numeric string, we handle it as timestamp
30  return (int) $string;
31  } else {
32  // strtotime should handle it
33  $time = strtotime($string);
34  if ($time == -1 || $time === false) {
35  // strtotime() was not able to parse $string, use "now":
36  return time();
37  }
38  return $time;
39  }
40 }
41 
42 ?>
smarty_make_timestamp($string)
Function: smarty_make_timestamp Purpose: used by other smarty functions to make a timestamp from a s...
if(strlen($date2)== '10') if($type== 'users-by-age'&&a_priv('admin_users', true)) elseif($type== 'forums-count'&&a_priv('admin_content', true)) elseif($type== 'forums-categories'&&a_priv('admin_content', true)) elseif($type== 'users-count'&&a_priv('admin_users', true)) elseif($type== 'product-categories'&&a_priv('admin_products', true)) elseif($type== 'users-by-sex'&&a_priv('admin_users', true)) elseif($type== 'users-by-country'&&a_priv('admin_users', true)) elseif($type== 'sales'&&a_priv('admin_sales', true))
Definition: chart-data.php:160

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:16 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.