glpi / src / plugins / vigilo / ajax / getTemplates.php @ fbdbbd6a
History | View | Annotate | Download (390 Bytes)
1 | 166be9d2 | Francois POIROTTE | <?php
|
---|---|---|---|
2 | |||
3 | include(dirname(dirname(dirname(__DIR__))) . |
||
4 | DIRECTORY_SEPARATOR . "inc" . |
||
5 | DIRECTORY_SEPARATOR . "includes.php"); |
||
6 | |||
7 | header("Content-Type: application/json; charset=UTF-8"); |
||
8 | Html::header_nocache();
|
||
9 | |||
10 | $templates = PluginVigiloTemplate::getAjaxTemplates(); |
||
11 | echo json_encode(
|
||
12 | array(
|
||
13 | 'count' => count($templates), |
||
14 | 'results' => $templates, |
||
15 | ) |
||
16 | ); |