'; echo ''; if ($func != ""){ require_once "lib/parsedown.php"; $file = "langs/$lang/functions/$func.json"; if (file_exists($file)){ $fulljson = json_decode(file_get_contents($file), true); /* Show function */ if (!isset($fulljson['input'])){ $fulljson['input'] = null; } if (!isset($fulljson['output'])){ $fulljson['output'] = null; } seefunc($lang,$func,$fulljson['visual'],$fulljson['description'],$fulljson['parameters'],$fulljson['example'],$fulljson['input'],$fulljson['output']); }else{ echo "

No existe la función

"; } } else { /* Function search */ echo '
'; echo '

Mostrando todas las funciones...

'; $funcs = scandir("langs/$lang/functions/"); foreach ($funcs as $file){ $file = explode('.',$file)[0]; echo "

$file

"; } echo '
'; } require_once 'assets/html/footer.php'; function seefunc($lang,$func,$visual,$description,$parameters,$example,$input,$output) { echo "

$lang - Function $func

"; echo "
$visual
"; ?>

Description:

$descr) { echo "

$param: $descr

"; } ?>

Example

Code

    
Input for example:

'.$input.'

'; } if (isset($output)){ echo '
Output of example:

'.$output.'

'; } } ?>