mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Ajax headers for dashboard/config forms
This commit is contained in:
		| @@ -21,6 +21,7 @@ | ||||
|  * @package LibreNMS | ||||
|  * @subpackage Dashboards | ||||
|  */ | ||||
| header('Content-type: application/json'); | ||||
|  | ||||
| $status    = 'error'; | ||||
| $message   = 'unknown error'; | ||||
|   | ||||
| @@ -11,6 +11,7 @@ | ||||
|  * option) any later version.  Please see LICENSE.txt at the top level of | ||||
|  * the source code distribution for details. | ||||
|  */ | ||||
| header('Content-type: text/plain'); | ||||
|  | ||||
| // FUA | ||||
|  | ||||
|   | ||||
| @@ -11,6 +11,7 @@ | ||||
|  * option) any later version.  Please see LICENSE.txt at the top level of | ||||
|  * the source code distribution for details. | ||||
|  */ | ||||
| header('Content-type: text/plain'); | ||||
|  | ||||
| // FUA | ||||
|  | ||||
|   | ||||
| @@ -11,6 +11,7 @@ | ||||
|  * option) any later version.  Please see LICENSE.txt at the top level of | ||||
|  * the source code distribution for details. | ||||
|  */ | ||||
| header('Content-type: application/json'); | ||||
|  | ||||
| if (is_admin() === false) { | ||||
|     $response = array( | ||||
|   | ||||
| @@ -21,6 +21,7 @@ | ||||
|  * @package LibreNMS | ||||
|  * @subpackage Dashboards | ||||
|  */ | ||||
| header('Content-type: application/json'); | ||||
|  | ||||
| $status    = 'error'; | ||||
| $message   = 'unknown error'; | ||||
|   | ||||
| @@ -21,6 +21,7 @@ | ||||
|  * @package LibreNMS | ||||
|  * @subpackage Dashboards | ||||
|  */ | ||||
| header('Content-type: application/json'); | ||||
|  | ||||
| $status    = 'error'; | ||||
| $message   = 'unknown error'; | ||||
|   | ||||
| @@ -11,6 +11,7 @@ | ||||
|  * option) any later version.  Please see LICENSE.txt at the top level of | ||||
|  * the source code distribution for details. | ||||
| */ | ||||
| header('Content-type: application/json'); | ||||
|  | ||||
| if (is_admin() === false) { | ||||
|     $response = array( | ||||
|   | ||||
| @@ -11,6 +11,7 @@ | ||||
|  * option) any later version.  Please see LICENSE.txt at the top level of | ||||
|  * the source code distribution for details. | ||||
|  */ | ||||
| header('Content-type: application/json'); | ||||
|  | ||||
| if (is_admin() === false) { | ||||
|     die('ERROR: You need to be admin'); | ||||
|   | ||||
| @@ -1,4 +1,5 @@ | ||||
| <?php | ||||
| header('Content-type: application/json'); | ||||
|  | ||||
| $status  = 'error'; | ||||
| $message = 'Error updating user dashboard config'; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user