Initial commit
This commit is contained in:
commit
78a4e70036
24 changed files with 1067 additions and 0 deletions
21
res/php/gettemplates.php
Normal file
21
res/php/gettemplates.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
/**
|
||||
* FileSpread
|
||||
* php for json string of templates
|
||||
*
|
||||
* Copyright (c) 2016 Marcel Kapfer (mmk2410)
|
||||
* MIT License
|
||||
*/
|
||||
|
||||
$dir = '../../templates/';
|
||||
$files = scandir($dir);
|
||||
|
||||
$i = 0;
|
||||
foreach ($files as $file) {
|
||||
if ( in_array($file, array(".", "..")) ) {
|
||||
unset($files[$i]);
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
echo json_encode(array("templates" => $files));
|
Reference in a new issue