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
|
* @package LibreNMS
|
||||||
* @subpackage Dashboards
|
* @subpackage Dashboards
|
||||||
*/
|
*/
|
||||||
|
header('Content-type: application/json');
|
||||||
|
|
||||||
$status = 'error';
|
$status = 'error';
|
||||||
$message = 'unknown error';
|
$message = 'unknown error';
|
||||||
|
@@ -11,6 +11,7 @@
|
|||||||
* option) any later version. Please see LICENSE.txt at the top level of
|
* option) any later version. Please see LICENSE.txt at the top level of
|
||||||
* the source code distribution for details.
|
* the source code distribution for details.
|
||||||
*/
|
*/
|
||||||
|
header('Content-type: text/plain');
|
||||||
|
|
||||||
// FUA
|
// FUA
|
||||||
|
|
||||||
|
@@ -11,6 +11,7 @@
|
|||||||
* option) any later version. Please see LICENSE.txt at the top level of
|
* option) any later version. Please see LICENSE.txt at the top level of
|
||||||
* the source code distribution for details.
|
* the source code distribution for details.
|
||||||
*/
|
*/
|
||||||
|
header('Content-type: text/plain');
|
||||||
|
|
||||||
// FUA
|
// FUA
|
||||||
|
|
||||||
|
@@ -11,6 +11,7 @@
|
|||||||
* option) any later version. Please see LICENSE.txt at the top level of
|
* option) any later version. Please see LICENSE.txt at the top level of
|
||||||
* the source code distribution for details.
|
* the source code distribution for details.
|
||||||
*/
|
*/
|
||||||
|
header('Content-type: application/json');
|
||||||
|
|
||||||
if (is_admin() === false) {
|
if (is_admin() === false) {
|
||||||
$response = array(
|
$response = array(
|
||||||
|
@@ -21,6 +21,7 @@
|
|||||||
* @package LibreNMS
|
* @package LibreNMS
|
||||||
* @subpackage Dashboards
|
* @subpackage Dashboards
|
||||||
*/
|
*/
|
||||||
|
header('Content-type: application/json');
|
||||||
|
|
||||||
$status = 'error';
|
$status = 'error';
|
||||||
$message = 'unknown error';
|
$message = 'unknown error';
|
||||||
|
@@ -21,6 +21,7 @@
|
|||||||
* @package LibreNMS
|
* @package LibreNMS
|
||||||
* @subpackage Dashboards
|
* @subpackage Dashboards
|
||||||
*/
|
*/
|
||||||
|
header('Content-type: application/json');
|
||||||
|
|
||||||
$status = 'error';
|
$status = 'error';
|
||||||
$message = 'unknown error';
|
$message = 'unknown error';
|
||||||
|
@@ -11,6 +11,7 @@
|
|||||||
* option) any later version. Please see LICENSE.txt at the top level of
|
* option) any later version. Please see LICENSE.txt at the top level of
|
||||||
* the source code distribution for details.
|
* the source code distribution for details.
|
||||||
*/
|
*/
|
||||||
|
header('Content-type: application/json');
|
||||||
|
|
||||||
if (is_admin() === false) {
|
if (is_admin() === false) {
|
||||||
$response = array(
|
$response = array(
|
||||||
|
@@ -11,6 +11,7 @@
|
|||||||
* option) any later version. Please see LICENSE.txt at the top level of
|
* option) any later version. Please see LICENSE.txt at the top level of
|
||||||
* the source code distribution for details.
|
* the source code distribution for details.
|
||||||
*/
|
*/
|
||||||
|
header('Content-type: application/json');
|
||||||
|
|
||||||
if (is_admin() === false) {
|
if (is_admin() === false) {
|
||||||
die('ERROR: You need to be admin');
|
die('ERROR: You need to be admin');
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
header('Content-type: application/json');
|
||||||
|
|
||||||
$status = 'error';
|
$status = 'error';
|
||||||
$message = 'Error updating user dashboard config';
|
$message = 'Error updating user dashboard config';
|
||||||
|
Reference in New Issue
Block a user