hallo,
kurze frage befor ich etwas falsch mache:
wie bekomme ich die dutch flagge aus dem block raus? was muß ich da löschen?
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
$mxblockcache = TRUE;
$handle = @opendir('language');
if (!$handle) return;
while ($file = readdir($handle)) {
if (preg_match("/^lang\-(.+)\.php/", $file, $matches)) {
$linklist[$matches[1]] = ucwords(str_replace("_"," ", str_replace("german","deutsch", $matches[1])));
}
}
closedir($handle);
ksort($linklist);
if (getenv("REQUEST_METHOD") == "GET" || isset($_GET['name'])) {
unset($_GET['newlang']);
$to = getenv("REQUEST_URL");
if (count($_GET)) {
$args = "?";
foreach($_GET as $key => $value) {
$args .= $key."=".$value."&";
}
}
else {
$args = "?";
}
$to = $to.$args;
}
else {
$to = "index.php?";
}
$content = "<font class=\"boxcontent\">"._SELECTGUILANG."<br><br>";
if (empty($GLOBALS['useflags'])) {
$content .= "<form action=\"index.php\" method=\"get\">";
$content .= "<select name=\"newlanguage\" onChange=\"top.location.href=this.options[this.selectedIndex].value\">";
foreach($linklist as $langu => $alt) {
$sel = ($langu == $GLOBALS['currentlang']) ? "selected" : "";
$content .= "<option value=\"".$to."newlang=".$langu."\" ".$sel.">".$alt."\n";
}
$content .= "</select></form>";
}
else {
$pre = "border=\"0\" hspace=\"3\" vspace=\"3\"";
foreach($linklist as $langu => $alt) {
$content .= "<a href=\"".$to."newlang=".$langu."\" title=\"".$alt."\">".mxCreateImage("images/language/flag-".$langu.".png",$alt,0,$pre)."</a> ";
}
}
$content .= "</font>";
?>
danke und grüße,
gaia
Hi gaia :)
am Block brauchst Du nichts ändern.
Lösche einfach die Datei language/lang-dutch.php
hey, danke Tora,
die dinge sind manchmal wirklich einfacher als ich denke! :redhead:
grüße,
gaia