glpi / src / ajax / getVTValue.php @ c482ac76
History | View | Annotate | Download (497 Bytes)
1 |
<?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 |
|
9 |
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 |
$ret['count'] = count($ret['results']); |
21 |
|
22 |
echo json_encode($ret); |
23 |
|
24 |
?>
|