@@ -18,14 +18,17 @@ |
||
| 18 | 18 | </div> |
| 19 | 19 | </div> |
| 20 | 20 | |
| 21 | - <?php else : ?> |
|
| 21 | + <?php else { |
|
| 22 | + : ?> |
|
| 22 | 23 | <div class="ip-results invalid"> |
| 23 | 24 | <div class="ip-div"> |
| 24 | 25 | <span class="ip-label">Validerar inte</span> |
| 25 | 26 | <i class="fas fa-times"></i> |
| 26 | 27 | </div> |
| 27 | 28 | </div> |
| 28 | - <?php endif; ?> |
|
| 29 | + <?php endif; |
|
| 30 | +} |
|
| 31 | +?> |
|
| 29 | 32 | |
| 30 | 33 | |
| 31 | 34 | <?php if ($protocol) : ?> |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | * Input your own key and change file name to "api_ip_config.php" |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | - return [ |
|
| 8 | - "apiKey" => "putyourownkeyhere", |
|
| 9 | - "baseUrl" => "http://api.ipstack.com/" |
|
| 10 | - ]; |
|
| 7 | + return [ |
|
| 8 | + "apiKey" => "putyourownkeyhere", |
|
| 9 | + "baseUrl" => "http://api.ipstack.com/" |
|
| 10 | + ]; |
|
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | "services" => [ |
| 8 | 8 | "weather_prog" => [ |
| 9 | 9 | "shared" => true, |
| 10 | - "callback" => function () { |
|
| 10 | + "callback" => function() { |
|
| 11 | 11 | $weatherProg = new \Hepa19\Weather\WeatherModel(); |
| 12 | 12 | $curl = new \Hepa19\Curl\Curl(); |
| 13 | 13 | $cfg = $this->get("configuration"); |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | "services" => [ |
| 8 | 8 | "ipstack" => [ |
| 9 | 9 | "shared" => true, |
| 10 | - "callback" => function () { |
|
| 10 | + "callback" => function() { |
|
| 11 | 11 | $ipstack = new \Hepa19\IPGeo\IPStack(); |
| 12 | 12 | $curl = new \Hepa19\Curl\Curl(); |
| 13 | 13 | $cfg = $this->get("configuration"); |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | "services" => [ |
| 8 | 8 | "validator" => [ |
| 9 | 9 | "shared" => true, |
| 10 | - "callback" => function () { |
|
| 10 | + "callback" => function() { |
|
| 11 | 11 | $validator = new \Hepa19\IPGeo\IPGeoValidator(); |
| 12 | 12 | return $validator; |
| 13 | 13 | } |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | "services" => [ |
| 8 | 8 | "curl" => [ |
| 9 | 9 | "shared" => true, |
| 10 | - "callback" => function () { |
|
| 10 | + "callback" => function() { |
|
| 11 | 11 | $curl = new \Hepa19\Curl\Curl(); |
| 12 | 12 | return $curl; |
| 13 | 13 | } |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | "services" => [ |
| 8 | 8 | "ipgetcurrent" => [ |
| 9 | 9 | "shared" => true, |
| 10 | - "callback" => function () { |
|
| 10 | + "callback" => function() { |
|
| 11 | 11 | $ipgetcurrent = new \Hepa19\IPGeo\IPGetCurrent(); |
| 12 | 12 | return $ipgetcurrent; |
| 13 | 13 | } |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | "services" => [ |
| 8 | 8 | "weather" => [ |
| 9 | 9 | "shared" => true, |
| 10 | - "callback" => function () { |
|
| 10 | + "callback" => function() { |
|
| 11 | 11 | $weather = new \Hepa19\Weather\WeatherModel(); |
| 12 | 12 | $curl = new \Hepa19\Curl\Curl(); |
| 13 | 13 | $cfg = $this->get("configuration"); |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | "services" => [ |
| 8 | 8 | "map" => [ |
| 9 | 9 | "shared" => true, |
| 10 | - "callback" => function () { |
|
| 10 | + "callback" => function() { |
|
| 11 | 11 | $map = new \Hepa19\IPGeo\OpenStreetMap(); |
| 12 | 12 | return $map; |
| 13 | 13 | } |