language.php:
<?php # LanguageMod for Ilch # Copyright by Steven Cardoso # Visit http://www.explicit-gaming.de defined ('main') or die ( 'no direct access' ); //-----------------------------------------------------------| if ( !empty($_POST['temp_lang']) ) { $_SESSION['language'] = $_POST['temp_lang']; echo $_SESSION['language']; wd ( '' , '' , 0 ); } else { echo '<form action="index.php?'.$menu->get(0).'" method="POST">'; $o = opendir ('include/includes/lang'); while ( $f = readdir($o) ) { if ( $f != '.' AND $f != '..' AND is_file('include/includes/lang/'.$f) ) { $f = basename ($f,".php"); echo '<input type="image" src="include/images/languages/'.$f.'.gif" alt="'.$f.'" onClick="this.form.submit();" name="temp_lang" value="'.$f.'"> ' ; } } echo '</form>'; } ?>
auszug aus loader.php:
# load something else #LanguageMod if (!empty($_SESSION['language'])){ $lang = "include/includes/lang/".$_SESSION['language'].".php"; } else{ $lang = "include/includes/lang/de.php"; } require_once ($lang);
Ich versteh nicht warum, nur bei Firefox was passiert und bei den anderen nicht. Bitte und Hilfe.
verwendete ilchClan Version: 1.1