ajout scripts_distants : squid

This commit is contained in:
Jérôme Bousquié
2016-11-30 11:38:16 +01:00
parent af1d51138d
commit cc9284f2fa
4 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<?php
header('Content-type: application/json; charset=utf-8');
$dirname = '/var/www/salles/rep_salles';
$dir = opendir($dirname);
$salles = array();
while($file = readdir($dir)) {
if($file != '.' && $file != '..' && !is_dir($dirname.$file))
{
$salles[] = $file;
}
}
echo json_encode($salles);
?>