$template->assign("languages_fin", $languages_fin); $title = $langfile["systemadministration"]; $template->assign("title", $title); $template->assign("classes", $classes); $sets = $theset->getSettings(); $templates = $theset->getTemplates(); $themes = $theset->getThemes($settings["template"]); $template->assign("themes", $themes); $template->assign("settings", $sets); $timezones = DateTimeZone::listIdentifiers(); $template->assign("timezones", $timezones); $template->assign("templates", $templates); $template->display("editsettings.tpl"); } elseif ($action == "editsets") { $theme = getArrayVal($_POST, "theme"); if ($theset->editSettings($name, $subtitle, $locale, $timezone, $dateformat, $templ, $theme, $rssuser, $rsspass)) { $handle = opendir($template->compile_dir); while (false !== ($file = readdir($handle))) { if ($file != "." and $file != "..") { unlink(CL_ROOT . "/" . $template->compile_dir . "/" . $file); } } $_SESSION["userlocale"] = $locale; $users = $user->getAllUsers(100000); foreach ($users as $theuser) { // set the new locale for all the users $user->edit($theuser["ID"], $theuser["name"], $theuser["realname"], $theuser["email"], $theuser["tel1"], $theuser["tel2"], $theuser["company"], $theuser["zip"], $theuser["gender"], $theuser["url"], $theuser["adress"], $theuser["adress2"], $theuser["state"], $theuser["country"], $theuser["tags"], $locale, "", $theuser["rate"]); } header("Location: admin.php?action=system&mode=edited"); } } elseif ($action == "editmailsets") {