diff --git a/setup/config.php b/setup/config.php index 7a31b094cf..30f2d2a308 100644 --- a/setup/config.php +++ b/setup/config.php @@ -293,6 +293,29 @@ + + + Interface/Template Selection:
(if user choice, and they dont make a selection, then classic will be used) + + + + + + Frame support: diff --git a/setup/inc/phpgw_setup.inc.php b/setup/inc/phpgw_setup.inc.php index f2c05c0856..f668f78314 100644 --- a/setup/inc/phpgw_setup.inc.php +++ b/setup/inc/phpgw_setup.inc.php @@ -275,6 +275,28 @@ return 10; } } + + function get_template_list(){ + global $phpgw_info; + $d = dir($phpgw_info["server"]["server_root"]."/phpgwapi/templates"); + $list["user_choice"]["name"] = "user_choice"; + $list["user_choice"]["title"] = "Users Choice"; + while($entry=$d->read()) { + if ($entry != "CVS" && $entry != "." && $entry != ".."){ + $list[$entry]["name"] = $entry; + $f = $phpgw_info["server"]["server_root"]."/phpgwapi/templates/details.inc.php"; + if (file_exists ($f)){ + include($f); + $list[$entry]["title"] = "Use ".$phpgw_info["template"][$entry]["title"]."interface"; + }else{ + $list[$entry]["title"] = $entry; + } + } + } + $d->close(); + reset ($list); + return $list; + } function app_setups($appname = ""){ global $phpgw_info;