blob: 7b5221ff7f72821bb5c26058c4c0d2c22e96e0c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<style>
<?php echo file_get_contents("../tools/style.css"); ?>
</style>
<noscript><style>.navbar{margin-bottom:0;}</style></noscript>
<title>Is it down? | 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'>
</head>
<body>
<?php require("../tools/navbar.php"); ?>
<div class="container">
<div class="text-center">
<div class="row">
<h1>Uptime is the game</h1>
<h4>Is your favourite website down?</h4>
<hr>
<?php
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">
<?php
}
?>
<h1><?php echo htmlentities($json["host"]); ?></h1>
<h4><?php echo htmlentities($json["status"]); ?></h4>
</div>
<form id="theform" class="form-horizontal">
<fieldset>
<!-- Form Name -->
<legend>
<h1>Check another one</h1>
</legend>
<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="url">Check if up: </label>
<div class="col-md-4">
<input id="url" name="url" placeholder="kernel.org" class="form-control input-md" required="" type="text" autofocus>
</div>
</div>
<!-- Multiple Radios (inline) -->
<div class="form-group">
<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="http" checked="checked" type="radio">
HTTP
</label>
<label class="radio-inline" for="action-1">
<input name="action" id="action-1" value="ping" type="radio">
Ping
</label>
</div>
</div>
<!-- Button -->
<div class="form-group">
<label class="col-md-4 control-label" for="submit"></label>
<div class="col-md-4">
<button type="submit" id="submit" name="" value="" class="btn btn-success">Check it</button>
</div>
</div>
</fieldset>
</form>
</div>
</div>
</div>
<?php require("../tools/footer.php"); ?>
|