Ajax headers for devices and components

This commit is contained in:
pblasquez
2016-04-26 15:06:29 -07:00
parent add7aeba6b
commit b5b3929d70
13 changed files with 13 additions and 0 deletions
+1
View File
@@ -1,4 +1,5 @@
<?php
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: text/plain');
if (is_admin() === false) {
die('ERROR: You need to be admin');
@@ -1,4 +1,5 @@
<?php
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) {
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');
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');
@@ -1,4 +1,5 @@
<?php
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) {
$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');
$status = 'error';
@@ -9,6 +9,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');
$status = 'error';
$message = 'unknown error';
+1
View File
@@ -1,4 +1,5 @@
<?php
header('Content-type: application/json');
if (is_admin() === false) {
$response = array(