diff options
| author | root | 2014-12-04 17:10:49 +0100 |
|---|---|---|
| committer | root | 2014-12-04 17:10:49 +0100 |
| commit | bf3847219714d71e59bfa04569089ab52f852960 (patch) | |
| tree | 1eaa8255ea1a522c16f7267cf3639bb1681279c9 /down/index.php | |
| parent | bbe481a7fa159db107c7005f8b024bf4657c0bd6 (diff) | |
| download | tools.iamfabulous.de-bf3847219714d71e59bfa04569089ab52f852960.tar.gz | |
Finished tool for checking downtime
Diffstat (limited to 'down/index.php')
| -rw-r--r-- | down/index.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/down/index.php b/down/index.php new file mode 100644 index 0000000..e71e76a --- /dev/null +++ b/down/index.php @@ -0,0 +1,18 @@ +<?php + +if( !isset($_REQUEST["action"]) || $_REQUEST["action"] == "" ){ + require 'view/templ-index.php'; +} else { + if ( isset($_SERVER["HTTP_X_REQUESTED_WITH"]) && strtolower($_SERVER["HTTP_X_REQUESTED_WITH"]) == "xmlhttprequest"){ + require 'ajax.php'; + } else { + ob_start(); + require 'ajax.php'; + $json = json_decode(ob_get_contents(), true); + ob_end_clean(); + header("Content-Type: text/html; charset=UTF-8"); + + require 'view/templ-noscript.php'; + + } +} |
