diff options
| author | moehm | 2014-12-07 00:26:33 +0100 |
|---|---|---|
| committer | moehm | 2014-12-07 00:26:33 +0100 |
| commit | 60070877e8e0d862bf342b5c83fd011819ebcdea (patch) | |
| tree | e3504739a60d76ebb714106a70ad5ec2b58082dd | |
| parent | 1ffa65c88b570aca2b5d3b9b7202e30beeee2fe7 (diff) | |
| download | tools.iamfabulous.de-60070877e8e0d862bf342b5c83fd011819ebcdea.tar.gz | |
Fixed changed json code.
| -rw-r--r-- | down/view/templ-noscript.php | 16 | ||||
| -rw-r--r-- | index.php | 5 |
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> @@ -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"); ?> |
