$name = substr($lookfor, $posi + 1, strlen($lookfor) - $posi - 5); if (!$posi) { $name = substr($lookfor, 0, strrpos($lookfor, ".")); } if (strstr($lookfor, "modules")) { $name = "module-" . $name; } $alternate = $name; //secure, if no standard given, take the name of the main file } //$transintext = lib files etc $ausgabe = wizard_scanfile($lookfor, false, $alternate); //main file //now merge the libs with the alternate scheme to the main while (list($key, $val) = each($transintext)) { $ausgabe = array_merge($ausgabe, wizard_scanfile($val, false, $alternate)); } } rawoutput("<form action='runmodule.php?module=translationwizard&op=scanmodules&mode=insert' name='editfeld' method='post' >"); addnav("", "runmodule.php?module=translationwizard&op=scanmodules&mode=insert"); output("%s rows have been found.", sizeof($ausgabe)); output_notl("`n`n"); rawoutput("<table border='0' cellpadding='2' cellspacing='0'>"); rawoutput("<tr class='trhead'><td></td><td>" . translate_inline("Namespace") . "</td><td>" . translate_inline("Intext") . "</td><td>" . translate_inline("Translated") . "</td></tr>"); //prepare sql $sql = "SELECT tid,outtext FROM " . db_prefix("translations") . " WHERE "; $wasthereanuntranslated = 0; //end while (list($key, $row) = each($ausgabe)) { $result = db_query($sql . "intext='" . addslashes($row['text']) . "' AND language='" . $languageschema . "' AND uri='" . $row['schema'] . "';"); if (db_num_rows($result) == 0) {
break; } require_once "./modules/translationwizard/scanmodules_func.php"; $module = httppost("module"); if (is_array($module)) { $modules = $module; } else { if ($module) { $modules = array($module); } else { $modules = array(); } } reset($modules); while (list($key, $module) = each($modules)) { $content = wizard_scanfile("modules/{$module}.php"); wizard_insertfile($content, $languageschema); } } } if (get_module_setting("translationdelete")) { if (httpget('op') == "uninstall") { $get = rawurlencode(serialize(httpallget())); require_once "./modules/translationwizard/deleteuninstalled.php"; } elseif (httpget('op') == "mass" && httppost("uninstall")) { $get = rawurlencode(serialize(httpallget())); $post = rawurlencode(serialize(httpallpost())); require_once "./modules/translationwizard/deleteuninstalled.php"; } } break;