mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Made themes more dynamic
This commit is contained in:
parent
e4f7581453
commit
19fa6bb4be
@ -105,8 +105,7 @@
|
|||||||
{
|
{
|
||||||
global $phpgw, $phpgw_info, $friendly;
|
global $phpgw, $phpgw_info, $friendly;
|
||||||
if (! $friendly)
|
if (! $friendly)
|
||||||
echo "<A HREF=\"".$phpgw->link($phpgw_info["server"]["app_root"]
|
echo "<A HREF=\"".$phpgw->link("view.php","id=$id")."\"><img src=\""
|
||||||
."/view.php","id=$id")."\"><img src=\""
|
|
||||||
. $phpgw_info["server"]["app_images"]."/$pic\" "
|
. $phpgw_info["server"]["app_images"]."/$pic\" "
|
||||||
. "border=\"0\" alt=\"".htmlentities($description)."\"></a>";
|
. "border=\"0\" alt=\"".htmlentities($description)."\"></a>";
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,13 @@
|
|||||||
|
|
||||||
$phpgw_flags["currentapp"] = "preferences";
|
$phpgw_flags["currentapp"] = "preferences";
|
||||||
include("../header.inc.php");
|
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"]) {
|
if ($phpgw_info["user"]["permissions"]["anonymous"]) {
|
||||||
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/"));
|
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/"));
|
||||||
|
Loading…
Reference in New Issue
Block a user