// Copyright: Copyright (C) 2004-2007 Pristine Communications // copyyear: Return the copyright year function copyyear($startyear) { // Cache the result static $cache; // Return the cache if (isset($cache)) { return $cache; } $thisyear = date("Y"); if ($thisyear == $startyear) { $cache = $startyear; } else { $cache = $startyear . "-" . $thisyear; } return $cache; } ?>