Merge branch 'master' of github.com:benharri/tilde

This commit is contained in:
Ben Harris 2017-12-20 17:11:21 -05:00
commit a889bfd33f
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ if (isset($_GET["count"])) echo count($tags);
elseif (isset($_GET["key"])) echo $tags[$_GET["key"]];
elseif (isset($_GET["fonts"]))
echo json_encode(array_map(function($elem){ return basename($elem, ".flf"); }, glob("$fonts*.flf")));
echo json_encode(array_map(function($f){ return basename($f, ".flf"); }, glob("$fonts*.flf")));
elseif (isset($_GET["text"]))
echo shell_exec("/usr/bin/figlet -d $fonts -w 158 -f " . ($_GET["font"] ?? "standard") . " " . escapeshellarg($_GET["text"]));