Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

glpi / src / ajax / getVTValue.php @ 077e4de7

History | View | Annotate | Download (588 Bytes)

1
<?php
2

    
3
if (strpos(filter_input(INPUT_SERVER, "PHP_SELF"), "getVTValue.php")) {
4
    include(dirname(dirname(__DIR__)) .
5
            DIRECTORY_SEPARATOR . "inc" .
6
            DIRECTORY_SEPARATOR . "includes.php");
7

    
8
    header("Content-Type: text/html; charset=UTF-8");
9
    Html::header_nocache();
10
}
11

    
12
if (!defined('GLPI_ROOT')) {
13
    die("Can not acces directly to this file");
14
}
15

    
16
$ret = array();
17
$tmp = PluginVigiloVigiloTemplate::getAjaxArrayTemplates();
18

    
19
foreach ($tmp as $template) {
20
    $ret['results'][] = $template;
21
}
22

    
23
$ret['count'] = count($ret['results']);
24

    
25
echo json_encode($ret);