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

View File

@@ -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');