mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Ajax Headers for Alert Forms
This commit is contained in:
		@@ -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');
 | 
			
		||||
 | 
			
		||||
$alert_id = mres($_POST['alert_id']);
 | 
			
		||||
$state    = mres($_POST['state']);
 | 
			
		||||
 
 | 
			
		||||
@@ -21,6 +21,7 @@
 | 
			
		||||
 * @package LibreNMS
 | 
			
		||||
 * @subpackage Alerts
 | 
			
		||||
 */
 | 
			
		||||
header('Content-type: text/plain');
 | 
			
		||||
 | 
			
		||||
if(is_admin() === false) {
 | 
			
		||||
    die('ERROR: You need to be admin');
 | 
			
		||||
 
 | 
			
		||||
@@ -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');
 | 
			
		||||
 | 
			
		||||
if (is_admin() === false) {
 | 
			
		||||
    die('ERROR: You need to be admin');
 | 
			
		||||
 
 | 
			
		||||
@@ -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');
 | 
			
		||||
 | 
			
		||||
if (is_admin() === false) {
 | 
			
		||||
    die('ERROR: You need to be admin');
 | 
			
		||||
 
 | 
			
		||||
@@ -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');
 | 
			
		||||
 | 
			
		||||
if (is_admin() === false) {
 | 
			
		||||
    die('ERROR: You need to be admin');
 | 
			
		||||
 
 | 
			
		||||
@@ -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');
 | 
			
		||||
 
 | 
			
		||||
@@ -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');
 | 
			
		||||
 
 | 
			
		||||
@@ -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');
 | 
			
		||||
 
 | 
			
		||||
@@ -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: text/plain');
 | 
			
		||||
 | 
			
		||||
if (is_admin() === false) {
 | 
			
		||||
    die('ERROR: You need to be admin');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user