Merge branch 'master' of github.com:benharri/tilde
This commit is contained in:
commit
a889bfd33f
|
@ -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"]));
|
||||
|
|
Loading…
Reference in New Issue