content = new View("admin_themes.html"); $themes = scandir(THEMEPATH); $view->content->themes = array_diff($themes, array(".", "..", ".svn")); $view->content->active = module::get_var("core", "active_theme"); print $view; } public function save() { access::verify_csrf(); $theme = $this->input->post("theme"); if ($theme != module::get_var("core", "active_theme")) { module::set_var("core", "active_theme", $theme); message::success(_("Updated Theme")); log::success("graphics", sprintf(_("Changed theme to %s"), $theme)); } url::redirect("admin/themes"); } }