summaryrefslogtreecommitdiff
path: root/down/index.php
blob: e71e76acc118f8a00d6c676391d08a5be1c7cd6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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';

	}
}