ajout scripts_distants : squid

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

No files matched your search

@@ -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);
?>