From 1560e04991e69b503d0fb146f093353d41935494 Mon Sep 17 00:00:00 2001 From: Schrolli Date: Wed, 8 Apr 2015 08:14:18 +0200 Subject: [PATCH] optic and (C) in web --- www/index.php | 6 +++++- www/parser.php | 21 ++++++++++++++------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/www/index.php b/www/index.php index 792ba95..cf1a925 100644 --- a/www/index.php +++ b/www/index.php @@ -72,7 +72,11 @@ $db_link = mysqli_connect ($dbhost, $dbuser, $dbpassword, $database); ?> +

+ (C) BOSWatch - All rights reserved +

+ - + \ No newline at end of file diff --git a/www/parser.php b/www/parser.php index 5a8bb00..ac055af 100644 --- a/www/parser.php +++ b/www/parser.php @@ -69,7 +69,8 @@ switch ($mode) { #Parse Service case "service": - if (array_key_exists($data, $service)) { + if (array_key_exists($data, $service)) + { return $service[substr($data,0,1)]; }else { @@ -79,7 +80,8 @@ #Parse Country case "country": - if (array_key_exists($data, $country)) { + if (array_key_exists($data, $country)) + { return $country[substr($data,1,1)]; }else { @@ -89,7 +91,8 @@ #Parse Location case "location": - if (array_key_exists($data, $location)) { + if (array_key_exists($data, $location)) + { return $location[substr($data,2,2)]; }else { @@ -99,7 +102,8 @@ #Parse Vehicle case "vehicle": - if (array_key_exists($data, $vehicle)) { + if (array_key_exists($data, $vehicle)) + { return $vehicle[substr($data,4,4)]; }else { @@ -109,9 +113,11 @@ #Parse direction case "direction": - if(substr($fms,9,1) == 1){ + if(substr($fms,9,1) == 1 + { return "L->F"; - }elseif(substr($fms,9,1) == 0){ + }elseif(substr($fms,9,1) == 0 + { return "F->L"; }else return "ERR!"; @@ -120,7 +126,8 @@ #Parse Zvei case "zvei": - if (array_key_exists($data, $zvei)) { + if (array_key_exists($data, $zvei)) + { return $data ." - ". $zvei[$data]; }else {