Procházet zdrojové kódy

Added primitive ajax.php for testing

Foppe Hemminga před 6 roky
rodič
revize
479fb69d61
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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()