mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 15:33:23 +01:00
Made themes more dynamic
This commit is contained in:
parent
e4f7581453
commit
19fa6bb4be
@ -105,8 +105,7 @@
|
||||
{
|
||||
global $phpgw, $phpgw_info, $friendly;
|
||||
if (! $friendly)
|
||||
echo "<A HREF=\"".$phpgw->link($phpgw_info["server"]["app_root"]
|
||||
."/view.php","id=$id")."\"><img src=\""
|
||||
echo "<A HREF=\"".$phpgw->link("view.php","id=$id")."\"><img src=\""
|
||||
. $phpgw_info["server"]["app_images"]."/$pic\" "
|
||||
. "border=\"0\" alt=\"".htmlentities($description)."\"></a>";
|
||||
}
|
||||
|
@ -16,7 +16,13 @@
|
||||
|
||||
$phpgw_flags["currentapp"] = "preferences";
|
||||
include("../header.inc.php");
|
||||
$installed_themes = array('default','blue','mojo','heaven','yellows', 'rose');
|
||||
|
||||
$dh = opendir($phpgw_info["server"]["server_root"] . "/themes");
|
||||
while ($file = readdir($dh)) {
|
||||
if ($file != "." && $file != ".." && $file != "CVS") {
|
||||
$installed_themes[] = substr($file,0,strpos($file,"."));
|
||||
}
|
||||
}
|
||||
|
||||
if ($phpgw_info["user"]["permissions"]["anonymous"]) {
|
||||
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/"));
|
||||
|
Loading…
Reference in New Issue
Block a user