From 056921b1e8d64702535f03e238bc2e451ddca646 Mon Sep 17 00:00:00 2001
From: Friendika Calculator
+
+
+
+
+EOT;
+return $o;
+
+}
diff --git a/convert.tgz b/convert.tgz
new file mode 100644
index 0000000000000000000000000000000000000000..b6e3e2a538ccaaba3a6b2e4c2d67a59d7f93eff3
GIT binary patch
literal 5324
zcmV;-6f^4|iwFRu>wZoE1MNF&bK6Fe{wi1LKg^=IA!$<}K~fa;jD1SHapg8~Mc(9t
zqEdmtki-fEaCnGT*8cC;-SfZz1ZAybd+X|i-N?jDPfx$5yJx21#nCNK^Zt`B_zd7V
zIM{zO+#eqdhvO%M{mF1LcBoxGPaJ3B988=M{O`%Y8IH%JCv5*q5~ZFZ%iWZ*Co9)m
z1nF%MZGlS``x9q6oqi3PzT)Fa{mXytWSM;SIZ(lq$#{$YLE}zc|KrJM@PrLMJ0%Uz
z|8xDHd
+
+
+
+
+
+
+
+
+
+
+
+
";
+ return $string;
+ }
+
+ }
+}
+
+
+$conv = new TP_Converter('en');
+
+
+$conversions = array(
+ 'Temperature'=>array('base' =>'Celsius',
+ 'conv'=>array(
+ 'Fahrenheit'=>array('ratio'=>1.8, 'offset'=>32),
+ 'Kelvin'=>array('ratio'=>1, 'offset'=>273),
+ 'Reaumur'=>0.8
+ )
+ ),
+ 'Weight' => array('base' =>'kg',
+ 'conv'=>array(
+ 'g'=>1000,
+ 'mg'=>1000000,
+ 't'=>0.001,
+ 'grain'=>15432,
+ 'oz'=>35.274,
+ 'lb'=>2.2046,
+ 'cwt(UK)' => 0.019684,
+ 'cwt(US)' => 0.022046,
+ 'ton (US)' => 0.0011023,
+ 'ton (UK)' => 0.0009842
+ )
+ ),
+ 'Distance' => array('base' =>'km',
+ 'conv'=>array(
+ 'm'=>1000,
+ 'dm'=>10000,
+ 'cm'=>100000,
+ 'mm'=>1000000,
+ 'mile'=>0.62137,
+ 'naut.mile'=>0.53996,
+ 'inch(es)'=>39370,
+ 'ft'=>3280.8,
+ 'yd'=>1093.6,
+ 'furlong'=>4.970969537898672,
+ 'fathom'=>546.8066491688539
+ )
+ ),
+ 'Area' => array('base' =>'km 2',
+ 'conv'=>array(
+ 'ha'=>100,
+ 'acre'=>247.105,
+ 'm 2'=>pow(1000,2),
+ 'dm 2'=>pow(10000,2),
+ 'cm 2'=>pow(100000,2),
+ 'mm 2'=>pow(1000000,2),
+ 'mile 2'=>pow(0.62137,2),
+ 'naut.miles 2'=>pow(0.53996,2),
+ 'in 2'=>pow(39370,2),
+ 'ft 2'=>pow(3280.8,2),
+ 'yd 2'=>pow(1093.6,2),
+ )
+ ),
+ 'Volume' => array('base' =>'m 3',
+ 'conv'=>array(
+ 'in 3'=>61023.6,
+ 'ft 3'=>35.315,
+ 'cm 3'=>pow(10,6),
+ 'dm 3'=>1000,
+ 'litre'=>1000,
+ 'hl'=>10,
+ 'yd 3'=>1.30795,
+ 'gal(US)'=>264.172,
+ 'gal(UK)'=>219.969,
+ 'pint' => 2113.376,
+ 'quart' => 1056.688,
+ 'cup' => 4266.753,
+ 'fl oz' => 33814.02,
+ 'tablespoon' => 67628.04,
+ 'teaspoon' => 202884.1,
+ 'pt (UK)'=>1000/0.56826,
+ 'barrel petroleum'=>1000/158.99,
+ 'Register Tons'=>2.832,
+ 'Ocean Tons'=>1.1327
+ )
+ ),
+ 'Speed' =>array('base' =>'kmph',
+ 'conv'=>array(
+ 'mps'=>0.0001726031,
+ 'milesph'=>0.62137,
+ 'knots'=>0.53996,
+ 'mach STP'=>0.0008380431,
+ 'c (warp)'=>9.265669e-10
+ )
+ )
+);
+
+
+while (list($key,$val) = each($conversions)) {
+ $conv->addConversion($val['base'], $val['conv']);
+ $list[$key][] = $val['base'];
+ while (list($ukey,$uval) = each($val['conv'])) {
+ $list[$key][] = $ukey;
+ }
+}
+
+ $o .= '";
+ $string .= " $value $from_unit ";
+ $i=0;
+ foreach ($cells as $cell) {
+ if ($i==0) {
+ $string .= "".$cell['value']." ";
+ $i++;
+ } else {
+ $string .= "".$cell['value']." ";
+ }
+ }
+ $string .= "Unit Conversions
';
+
+
+ if (isset($_POST['from_unit']) && isset($_POST['value'])) {
+ $_POST['value'] = $_POST['value'] + 0;
+
+
+ $o .= ($conv->getTable($_POST['value'], $_POST['from_unit'], $_POST['to_unit'], 5))."
Select:
"; + } + + if(isset($_POST['value'])) + $value = $_POST['value']; + else + $value = ''; + + $o .= ''; + + return $o; +} diff --git a/facebook.tgz b/facebook.tgz new file mode 100644 index 0000000000000000000000000000000000000000..05c7c735fb916966b35732f13b059f6ea80ec9c3 GIT binary patch literal 9982 zcmV'.t('Site Owner').': '. $tmp .'
'.t('Email Address').': '.$email.'
'.t('Site Owner').': '. $tmp .'
'; + } + if (strlen($postal)) { + $b .= ''.t('Postal Address').'
'. $postal .'
'.$notes.'
'; + } + } else { + $b .= ''.t('The impressum addon needs to be configured!
Please add at least the owner variable to your config file. For other variables please refer to the README file of the addon.').'
O5v^XFkHHEE4Q+s~p#`>0A!VEJ7tv#nLo_sC$;_7m))*Q5);
zj9Lovm-`|DfS#K6lC>?tq5bdgZ`3+1B09OyM7gz(s8REE!MdQwMBv;8F!(3v^*SPl
z0%-3C%m?&BBwscaJpD0NZ K9?;wnZEi@R
zaL5ClJMw@$MZ_N_M{b336YRyq6$r>kT>%!cYPHp@n%5k~ilemRD6crmDxO{#l}Nr!
zLOLoG3Pss%H2F^3Ls}4Jt%1i@jM&J7H`0I67t)7QyVOTkJIkcDhUhzZI%4nW*MCkq
z0j~J*pQ7cIKkCz*4vKA|QgBTR-fWY0XXiS372G|F4x)ryRBY{_V}w;OR}@+6)2&=J
z2^!f;%pxijNwU+QxwP2AGCz=ER{fnJQ()t{I>nX{u$>{G17b?pqb6GoevsDJxV%ZY
z+Gx@n-loQc(b2@fntM9urlk*
>X5fpwq=+aU_hx^L8~=&t%}r|D(ZT^mF;futBQ3Wr)$Id
zIP1mZDmK1ipY!ZV!bDbo`|O8{$)9^Q3JErN