summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 09a5663)
raw | patch | inline | side by side (parent: 09a5663)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 26 Nov 2010 15:15:00 +0000 (15:15 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 26 Nov 2010 15:15:00 +0000 (15:15 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20390 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/html/main.php | patch | blob | history | |
gosa-core/include/class_pluglist.inc | patch | blob | history |
index fc86692544405ee8afba93413f8080533ba8a949..ded3e1156202559325ea189c5fafaf95af1dbbce 100644 (file)
--- a/gosa-core/html/main.php
+++ b/gosa-core/html/main.php
}
$plist= session::global_get('plist');
-print_a($plist);
-
/* Check for register globals */
if (isset($global_check) && $config->boolValueIsTrue("core","forceGlobals")){
msg_dialog::display(
}
} else {
- /* set to welcome page as default plugin */
- session::global_set('plugin_dir',"welcome");
- $plugin_dir= "$BASE_DIR/plugins/generic/welcome";
+ // Display the welcome page for admins (iconmenu) and an info page for those
+ // who are not allowed to adminstrate anything (user)
+ if(count($plist->getRegisteredMenuEntries()) == 0){
+ session::global_set('plugin_dir',"infoPage");
+ $plugin_dir= "$BASE_DIR/plugins/generic/infoPage";
+ }else{
+ session::global_set('plugin_dir',"welcome");
+ $plugin_dir= "$BASE_DIR/plugins/generic/welcome";
+ }
}
/* Handle plugin locks.
index 4a1ecca57c8472162e714eb3bdbd551788c3e777..d4475497a03b659f60da8050f74d7793d6bdf554 100644 (file)
var $registeredIconEntries = array();
var $registeredShortCutEntries = array();
+
+ function getRegisteredMenuEntries ()
+ {
+ return($this->registeredMenuEntries);
+ }
+
+
+ function getRegisteredPathEntries ()
+ {
+ return($this->registeredPathEntries);
+ }
+
+
+ function getRegisteredIconEntries ()
+ {
+ return($this->registeredIconEntries);
+ }
+
+
+ function getRegisteredShortCutEntries ()
+ {
+ return($this->registeredShortCutEntries);
+ }
+
+
function pluglist(&$config, &$ui)
{
$this->ui= &$ui;