Update index.php

This commit is contained in:
Jesse James Isler 2022-03-28 15:41:50 +02:00
parent 7e75f63ffa
commit 7cb90482e7

View File

@ -46,17 +46,14 @@
} }
#Check if Language folder exists #Check if Language folder exists
if(file_exists('roles/'.$language.'/')) { if(file_exists("roles/".$language."/")) {
$files = glob("roles/'".$language."'/*.php"); $files = glob("roles/".$language."/*.php");
echo `Sprache gefunden!!!`;
} else { } else {
$language = $defaultlanguage; $language = $defaultlanguage;
$files = glob("roles/'".$language."'/*.php"); $files = glob("roles/".$language."/*.php");
echo `Sprache wurde nicht im Dateisystem gefunden...`;
} }
#Get all files from the language folder #Get all files from the language folder
sort($files); sort($files);
$count = 1; $count = 1;
@ -117,8 +114,8 @@ if ($count%2 != 1) echo "</div>";
<div class="card-content white-text"> <div class="card-content white-text">
<span class="card-title">DEBUG INFO</span> <span class="card-title">DEBUG INFO</span>
<?php <?php
echo 'Language: '.$language; echo 'Language: '.$language;
echo '<br>Filesystem: '.var_dump($files);
?> ?>
</div> </div>
</div> </div>