* * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * \**************************************************************************/ /* $Id$ */ $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "preferences"); include("../header.inc.php"); if ($theme) { $phpgw->preferences->change("common","theme"); $phpgw->preferences->commit(); if ($phpgw_info["server"]["useframes"] != "never") { Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/index.php","forward=/preferences/changetheme.php&cd=yes")); Header("Window-Target: _top"); } else { Header("Location: " . $phpgw->link("changetheme.php")); } $phpgw->common->phpgw_exit(); } $dh = opendir($phpgw_info["server"]["server_root"] . "/phpgwapi/themes"); while ($file = readdir($dh)) { if (eregi("\.theme$", $file)) { $installed_themes[] = substr($file,0,strpos($file,".")); } } $phpgw->common->phpgw_header(); echo parse_navbar(); echo "
" . lang("your current theme is: x",$phpgw_info["user"]["preferences"]["theme"]); echo "
" . lang("please, select a new theme") . ":"; echo "
"; for ($i=0; $i' . $installed_themes[$i] . ''; if ($phpgw_info["server"]["useframes"] != "never") { // echo '
' . $installed_themes[$i] . ''; } } $phpgw->common->phpgw_footer(); ?>