Przeglądaj źródła

Added primitive ajax.php for testing

Foppe Hemminga 6 lat temu
rodzic
commit
479fb69d61
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      ajax.php

+ 2 - 1
ajax.php

@@ -14,7 +14,8 @@ if (is_ajax()) {
 //Function to check if the request is an AJAX request
 function is_ajax()
 {
-	return isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest';
+	return True;
+	// return isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest';
 }
 
 function test_function()