glpi / src / ajax / getVTValue.php @ c482ac76
History | View | Annotate | Download (497 Bytes)
1 | 79397eb3 | Romain CHOLLET | <?php
|
---|---|---|---|
2 | |||
3 | if (strpos(filter_input(INPUT_SERVER, "PHP_SELF"), "getVTValue.php")) { |
||
4 | include ("../../../inc/includes.php"); |
||
5 | header("Content-Type: text/html; charset=UTF-8"); |
||
6 | Html::header_nocache();
|
||
7 | } |
||
8 | 8b28e91d | Romain CHOLLET | |
9 | 79397eb3 | Romain CHOLLET | if (!defined('GLPI_ROOT')) { |
10 | die("Can not acces directly to this file"); |
||
11 | } |
||
12 | |||
13 | $ret = array(); |
||
14 | $tmp = PluginVigiloVigiloTemplate::getAjaxArrayTemplates(); |
||
15 | |||
16 | foreach ($tmp as $template) { |
||
17 | $ret['results'][] = $template; |
||
18 | } |
||
19 | |||
20 | 8b28e91d | Romain CHOLLET | $ret['count'] = count($ret['results']); |
21 | 79397eb3 | Romain CHOLLET | |
22 | echo json_encode($ret); |
||
23 | |||
24 | ?> |