View Single Post
  #89  
Old 2nd November 2008, 03:24
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
in offervotes.php remove
PHP Code:
function get_elapsed_time($ts)
{
  
$mins = floor((gmtime() - $ts) / 60);
  
$hours = floor($mins / 60);
  
$mins -= $hours * 60;
  
$days = floor($hours / 24);
  
$hours -= $days * 24;
  
$weeks = floor($days / 7);
  
$days -= $weeks * 7;
  
$t = "";
  if (
$weeks)
    return 
"$weeks week" . ($weeks > 1 ? "s" : "");
  if (
$days)
    return 
"$days day" . ($days > 1 ? "s" : "");
  if (
$hours)
    return 
"$hours hour" . ($hours > 1 ? "s" : "");
  if (
$mins)
    return 
"$mins min" . ($mins > 1 ? "s" : "");
  return 
"< 1 min";
}
function 
gmtime()
{
    return 
strtotime(get_date_time());
}
function 
get_date_time($timestamp = 0)
{
if (
$timestamp)
return 
date("Y-m-d H:i:s", $timestamp);
else
  
$idcookie = $_COOKIE['uid'];
  return 
gmdate("Y-m-d H:i:s", time());
} 
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote