summaryrefslogtreecommitdiff
path: root/www/admin/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/admin/index.php')
-rw-r--r--www/admin/index.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/www/admin/index.php b/www/admin/index.php
index b1235d4..265a221 100644
--- a/www/admin/index.php
+++ b/www/admin/index.php
@@ -37,6 +37,7 @@ function exists_group( $group ) {
/**** Check for system aliases ****/
$maincontent = 'welcome.tpl';
if( $auth->group() == 'admin' ) {
+ $maincontent = 'welcome-admin.tpl';
$domains = $ldap->domains();
foreach( $domains as $domain ) {
if( (!exists_group( 'hostmaster@'.$domain ) ||
@@ -50,6 +51,13 @@ if( $auth->group() == 'admin' ) {
}
}
}
+if ($auth->group() == 'user') {
+ $maincontent = 'welcome-user.tpl';
+}
+if ($auth->group() == 'maintainer') {
+ $maincontent = 'welcome-maintainer.tpl';
+}
+
/**** Insert into template and output ***/
$smarty = new MySmarty();