diff options
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'; + + } +} |
