' . t('Save') . ']';
$caches_newstring = '' . t('NEW') . ' ';
$caches_olddays = 7;
$caches_oconlystring = '
';
$bgcolor1 = 'odd'; // even lines
$bgcolor2 = 'even'; // odd lines
$bgcolor_found = "#66FFCC"; // if cache was found by user
$bgcolor_owner = "#ffffc5"; // if user is owner
$bgcolor_inactive = "#fafafa"; // if cache is inactive
$string_by = t('by');
$logdateformat = 'd.m.Y';
$logpics[1] = '
';
$logpics[2] = '
';
$logpics[3] = '
';
$diffpics[2] = 'diff-10.gif';
$diffpics[3] = 'diff-15.gif';
$diffpics[4] = 'diff-20.gif';
$diffpics[5] = 'diff-25.gif';
$diffpics[6] = 'diff-30.gif';
$diffpics[7] = 'diff-35.gif';
$diffpics[8] = 'diff-40.gif';
$diffpics[9] = 'diff-45.gif';
$diffpics[10] = 'diff-50.gif';
$terrpics[2] = 'terr-10.gif';
$terrpics[3] = 'terr-15.gif';
$terrpics[4] = 'terr-20.gif';
$terrpics[5] = 'terr-25.gif';
$terrpics[6] = 'terr-30.gif';
$terrpics[7] = 'terr-35.gif';
$terrpics[8] = 'terr-40.gif';
$terrpics[9] = 'terr-45.gif';
$terrpics[10] = 'terr-50.gif';
$terrpics[1] = 'rat-10.gif';
$terrpics[2] = 'rat-20.gif';
$terrpics[3] = 'rat-30.gif';
$terrpics[4] = 'rat-40.gif';
$terrpics[5] = 'rat-50.gif';
$difficulty_text_diff = t("Difficulty: %01.1f of 5.0");
$difficulty_text_terr = t("Terrain: %01.1f of 5.0");
$rating_text = t("Rating: {rating}%");
$not_rated = t('No Rating');
$error_plz = '
' . t('The postal code could not be found') . ' |
';
$error_ort = '' . t('There does no city exist with this name') . ' |
';
$error_locidnocoords = '' . t('There are no Koordinates available for the selected city') . ' |
';
$error_noort = '' . t('The entered city is not valid.') . ' |
';
$error_nofulltext = '' . t('The entered text is invalid.') . ' |
';
$error_fulltexttoolong = '' . t('The entered text contains more than 50 words.') . ' |
';
$gns_countries['GM'] = t('Germany');
$gns_countries['AU'] = t('Austria');
$gns_countries['SZ'] = t('Switzerland');
$default_lang = t('EN');
$search_all_countries = '';
$search_all_cachetypes = '';
$cache_attrib_group =
'';
$cache_attrib_jsarray_line = "new Array('{id}', {state}, '{text_long}', '{icon}', '{icon_no}', '{icon_undef}', '{search_default}')";
$cache_attrib_img_line1 = '
';
$cache_attrib_img_line2 = '
';
function dateDiff($interval, $dateTimeBegin, $dateTimeEnd)
{
//Parse about any English textual datetime
//$dateTimeBegin, $dateTimeEnd
$dateTimeBegin = strtotime($dateTimeBegin);
if ($dateTimeBegin === -1)
return("..begin date Invalid");
$dateTimeEnd = strtotime($dateTimeEnd);
if ($dateTimeEnd === -1)
return("..end date Invalid");
$dif = $dateTimeEnd - $dateTimeBegin;
switch($interval)
{
case "s"://seconds
return($dif);
case "n"://minutes
return(floor($dif/60)); //60s=1m
case "h"://hours
return(floor($dif/3600)); //3600s=1h
case "d"://days
return(floor($dif/86400)); //86400s=1d
case "ww"://Week
return(floor($dif/604800)); //604800s=1week=1semana
case "m": //similar result "m" dateDiff Microsoft
$monthBegin = (date("Y",$dateTimeBegin)*12) + date("n",$dateTimeBegin);
$monthEnd = (date("Y",$dateTimeEnd)*12) + date("n",$dateTimeEnd);
$monthDiff = $monthEnd - $monthBegin;
return($monthDiff);
case "yyyy": //similar result "yyyy" dateDiff Microsoft
return(date("Y",$dateTimeEnd) - date("Y",$dateTimeBegin));
default:
return(floor($dif/86400)); //86400s=1d
}
}
?>