summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoehm2014-12-07 00:26:33 +0100
committermoehm2014-12-07 00:26:33 +0100
commit60070877e8e0d862bf342b5c83fd011819ebcdea (patch)
treee3504739a60d76ebb714106a70ad5ec2b58082dd
parent1ffa65c88b570aca2b5d3b9b7202e30beeee2fe7 (diff)
downloadtools.iamfabulous.de-60070877e8e0d862bf342b5c83fd011819ebcdea.tar.gz
Fixed changed json code.
-rw-r--r--down/view/templ-noscript.php16
-rw-r--r--index.php5
2 files changed, 14 insertions, 7 deletions
diff --git a/down/view/templ-noscript.php b/down/view/templ-noscript.php
index d15b665..7b5221f 100644
--- a/down/view/templ-noscript.php
+++ b/down/view/templ-noscript.php
@@ -24,13 +24,17 @@
<hr>
<?php
- if($json["data"] == 1){
+ if($json["resp_code"] == 2){
?>
<div class="alert alert-success" role="alert">
<?php
+ } else if( $json["resp_code"] == 1 ){
+ ?>
+ <div class="alert alert-warning" role="alert">
+ <?php
} else {
?>
- <div class="alert alert-danger" role="alert">
+ <div class="alert alert-danger" role="alert">
<?php
}
?>
@@ -59,12 +63,12 @@
<label class="col-md-4 control-label" for="action">Check Type:</label>
<div class="col-md-4 text-left">
<label class="radio-inline" for="action-0">
- <input name="action" id="action-0" value="ping" checked="checked" type="radio">
- Ping
+ <input name="action" id="action-0" value="http" checked="checked" type="radio">
+ HTTP
</label>
<label class="radio-inline" for="action-1">
- <input name="action" id="action-1" value="http" type="radio">
- HTTP
+ <input name="action" id="action-1" value="ping" type="radio">
+ Ping
</label>
</div>
</div>
diff --git a/index.php b/index.php
index c190d2e..a9a9435 100644
--- a/index.php
+++ b/index.php
@@ -1,3 +1,6 @@
+<?php
+ require './tools/config.php';
+?>
<!doctype html>
<html>
<head>
@@ -10,7 +13,7 @@
<noscript><style>.navbar{margin-bottom:0;}</style></noscript>
<title>Tools | iamfabulous.de</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel='shortcut icon' href='../tools/favicon.ico' type='image/x-icon'>
+ <link rel='shortcut icon' href='<?php echo __domain_; ?>/tools/favicon.ico' type='image/x-icon'>
</head>
<body>
<?php require("./tools/navbar.php"); ?>