From 027c0ffe749138c3f5266ab1afd3b333418076da Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 17 May 2005 08:54:09 +0000 Subject: [PATCH] Kolab template ready git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@222 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servKolab.inc | 71 +++++++ plugins/admin/systems/servkolab.tpl | 224 ++++++++++++++++++++++ 2 files changed, 295 insertions(+) create mode 100644 plugins/admin/systems/class_servKolab.inc create mode 100644 plugins/admin/systems/servkolab.tpl diff --git a/plugins/admin/systems/class_servKolab.inc b/plugins/admin/systems/class_servKolab.inc new file mode 100644 index 000000000..0e00cc9e9 --- /dev/null +++ b/plugins/admin/systems/class_servKolab.inc @@ -0,0 +1,71 @@ + "Eins ist toll", "zwei" => "Zwei ist noch besser"); + + /* attribute list for save action */ + var $attributesi = array(); + var $objectclasses = array("whatever"); + + function servkolab ($config, $dn= NULL) + { + plugin::plugin ($config, $dn); + } + + function execute() + { + /* Fill templating stuff */ + $smarty = get_smarty(); + $display = ""; + + /* Do we need to flip is_account state? */ + if (isset($_POST['modify_state'])){ + $this->is_account= !$this->is_account; + } + + /* Show tab dialog headers */ + if ($this->is_account){ + $display= $this->show_header(_("Remove Kolab extension"), + _("This server has kolab features enabled. You can disable them by clicking below.")); + } else { + $display= $this->show_header(_("Add Kolab service"), + _("This server has kolab features disabled. You can enable them by clicking below.")); + return ($display); + } + + $display.= $smarty->fetch(get_template_path('servkolab.tpl', TRUE)); + return($display); + } + + function remove_from_parent() + { + } + + + function save_object() + { + plugin::save_object(); + } + + + function check() + { + $message= array(); + return ($message); + } + + + /* Save to LDAP */ + function save() + { + plugin::save(); + } + +} + +// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: +?> diff --git a/plugins/admin/systems/servkolab.tpl b/plugins/admin/systems/servkolab.tpl new file mode 100644 index 000000000..d4c230abb --- /dev/null +++ b/plugins/admin/systems/servkolab.tpl @@ -0,0 +1,224 @@ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{t}Services{/t}
+ + + POP3 Service +
+ + + POP3/SSL service (TCP port 995) +
+ + + IMAP Service +
+ + + IMAP/SSL Service (TCP port 993) +
+ + + Sieve service (TCP port 2000) +
+ + + FTP FreeBusy Service (Legacy, not interoperable with Kolab2 FreeBusy) +
+ + + HTTP FreeBusy Service (Legacy) +
+ + + Amavis Email Scanning (Virus/Spam) +
+ + + + +

 

+
+ + + + + + + + + +
+ {t}Kolab Hosts{/t} +
+ +
+ + + +
+ + +
+ + + + + + + + + + +
+ {t}Quota settings{/t} +
+ % + + Percentage to warn users +
+ + +

 

+
+ + + + + + + + + + + + + + + +
+ {t}Free/Busy settings{/t} +
+ + + Allow unauthenticated downloading of Free/Busy information +
+ + + When creating free/busy lists, include data from x days in the past +
+ + +

 

+
+ + + + + + + + + + +
+ {t}Privileged Networks{/t} +
+ + + Networks allowed to relay and send mail through unauthenticated SMTP connections to the Kolab server (comma separated networks in x.x.x.x/y format) +
+ + +

 

+
+ + + + + + + + + + +
+ {t}SMTP "smarthost/relayhost"{/t} +
+ + + Smarthost to use to send outgoing mail (host.domain.tld). Leave empty for no relayhost. + Enable MX lookup for relayhost (if in doubt, leave it off) +
+ + +

 

+
+ + + + + + + + + + +
+ {t}Accept Internet Mai{/t} +
+ + + Accept mail from other domains over non-authenticated SMTP. This must be enabled if you want to use the Kolab server to receive mail from other internet domains. +
+ + + + + + + +
-- 2.30.2