# HG changeset patch # User Tom Fredrik "BFG" Klaussen # Date 1348064138 -7200 # Node ID ccfddd7fba1b0d0f0b8b8e3d48125292cd9186c1 # Parent 5dc5cc27471d09e74cb13cb3ca3b87da75504414 Cleanup. diff -r 5dc5cc27471d -r ccfddd7fba1b cache_check.inc --- a/cache_check.inc Wed Sep 19 16:12:42 2012 +0200 +++ b/cache_check.inc Wed Sep 19 16:15:38 2012 +0200 @@ -16,7 +16,8 @@ header("Last-Modified: $gmdate_mod"); } -function cache_time($path) { +function cache_time($path) +{ global $newest; $mtime = filemtime($path); if ($mtime > $newest) { @@ -24,7 +25,8 @@ } } -function include_with_mtime($path) { +function include_with_mtime($path) +{ cache_time($path); include($path); } diff -r 5dc5cc27471d -r ccfddd7fba1b index.php --- a/index.php Wed Sep 19 16:12:42 2012 +0200 +++ b/index.php Wed Sep 19 16:15:38 2012 +0200 @@ -45,7 +45,8 @@ } } -function getParam($param) { +function getParam($param) +{ $param_type=$param->getAttribute("type"); $param_value; if (!$param_type) @@ -74,7 +75,8 @@ return $param_value; } -function getInput($master, $param) { +function getInput($master, $param) +{ $out=''; $lang=$GLOBALS['lang'];