Browse Source

Added primitive ajax.php for testing

Foppe Hemminga 6 năm trước cách đây
mục cha
commit
479fb69d61
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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()