1 <?php
3 class servkolab extends plugin
4 {
5 /* CLI vars */
6 var $cli_summary= "Manage server basic objects";
7 var $cli_description= "Some longer text\nfor help";
8 var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
10 /* attribute list for save action */
11 var $attributesi = array();
12 var $objectclasses = array("whatever");
14 function servkolab ($config, $dn= NULL)
15 {
16 plugin::plugin ($config, $dn);
17 }
19 function execute()
20 {
21 /* Fill templating stuff */
22 $smarty = get_smarty();
23 $display = "";
25 /* Do we need to flip is_account state? */
26 if (isset($_POST['modify_state'])){
27 $this->is_account= !$this->is_account;
28 }
30 /* Show tab dialog headers */
31 if ($this->is_account){
32 $display= $this->show_header(_("Remove Kolab extension"),
33 _("This server has kolab features enabled. You can disable them by clicking below."));
34 } else {
35 $display= $this->show_header(_("Add Kolab service"),
36 _("This server has kolab features disabled. You can enable them by clicking below."));
37 return ($display);
38 }
40 $display.= $smarty->fetch(get_template_path('servkolab.tpl', TRUE));
41 return($display);
42 }
44 function remove_from_parent()
45 {
46 }
49 function save_object()
50 {
51 plugin::save_object();
52 }
55 function check()
56 {
57 $message= array();
58 return ($message);
59 }
62 /* Save to LDAP */
63 function save()
64 {
65 plugin::save();
66 }
68 }
70 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
71 ?>