General info for $lang"; echo '
Some files not found
"); } $file = fopen('guide.md', "r"); $start = 0; $jsonbasic = json_decode(file_get_contents("langs/$lang/basic.json"),true); while (($line = fgets($file)) !== false) { //See if line have '# ' if (substr( $line, 0, 2 ) == '# '){ echo ''. substr($line,2).'
'; } else if ((substr( $line, 0, 2 ) == '. ') && $start == 1){ echo '';
if (is_array($jsonbasic[trim(substr($line,2))])){
foreach($jsonbasic[trim(substr($line,2))] as $c)
{
echo "$c".PHP_EOL;
}
}else{
print $jsonbasic[trim(substr($line,2))];
}
echo '';
}else {
echo 'This can\'t be do in this lang, or it isn\'t added yet to this guide.'; } echo '
Default
'; break; } require_once 'assets/html/footer.php';