Code

Kolab template ready
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 17 May 2005 08:54:09 +0000 (08:54 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 17 May 2005 08:54:09 +0000 (08:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@222 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servKolab.inc [new file with mode: 0644]
plugins/admin/systems/servkolab.tpl [new file with mode: 0644]

diff --git a/plugins/admin/systems/class_servKolab.inc b/plugins/admin/systems/class_servKolab.inc
new file mode 100644 (file)
index 0000000..0e00cc9
--- /dev/null
@@ -0,0 +1,71 @@
+<?php
+
+class servkolab extends plugin
+{
+  /* CLI vars */
+  var $cli_summary=           "Manage server basic objects";
+  var $cli_description=       "Some longer text\nfor help";
+  var $cli_parameters=        array("eins" => "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 (file)
index 0000000..d4c230a
--- /dev/null
@@ -0,0 +1,224 @@
+<table style="width:100%">
+ <tr>
+  <td style="vertical-align:top; border-right:1px solid #A0A0A0; padding-right:5px;" width="50%">
+
+   <table>
+    <tr>
+        <td colspan="2"><b>{t}Services{/t}</b></td>
+       </tr>
+       <tr>
+               <td>
+                       <input name="" value="1" type="checkbox" >
+               </td>
+               <td>
+                       POP3 Service    
+               </td>
+       </tr>
+       <tr>
+        <td>
+            <input name="" value="1" type="checkbox" >
+        </td>
+               <td>
+                       POP3/SSL service (TCP port 995)         
+        </td>
+    </tr>
+    <tr>
+        <td>
+            <input name="" value="1" type="checkbox" >
+        </td>
+        <td>
+                       IMAP Service    
+        </td>
+    </tr>
+    <tr>
+        <td>
+            <input name="" value="1" type="checkbox" >
+        </td>
+        <td>
+                       IMAP/SSL Service (TCP port 993)         
+        </td>
+    </tr>
+    <tr>
+        <td>
+            <input name="" value="1" type="checkbox" >
+        </td>
+        <td>
+                       Sieve service (TCP port 2000)   
+        </td>
+    </tr>
+    <tr>
+        <td>
+            <input name="" value="1" type="checkbox" >
+        </td>
+        <td>
+                       FTP FreeBusy Service (Legacy, not interoperable with Kolab2 FreeBusy)   
+        </td>
+    </tr>
+    <tr>
+        <td>
+            <input name="" value="1" type="checkbox" >
+        </td>
+        <td>
+                       HTTP FreeBusy Service (Legacy)  
+        </td>
+    </tr>
+    <tr>
+        <td>
+            <input name="" value="1" type="checkbox" >
+        </td>
+        <td>
+                       Amavis Email Scanning (Virus/Spam)
+               </td>
+       </tr>
+   </table>
+
+
+
+
+<p class="seperator">&nbsp;</p>
+<br>
+
+       
+   <table>
+       <tr>
+               <td colspan="2" >
+                       <b>{t}Kolab Hosts{/t}</b>
+               </td>
+       </tr>
+    <tr>
+     <td>
+        <select style="width:350px;" id="goExportEntry" name="goExportEntry" {$goNfsServerState} size=6 multiple {$trustmodeACL} {$trusthide}>
+            {html_options values=$goExportEntry output=$goExportEntry}
+        </select>
+    <br>
+        <input type="text"      name="NewNfsExport" {$goNfsServerState} id="NewNfsExportId">
+        <input type="submit"    value="{t}Add{/t}"      name="NewNfsAdd"    {$goNfsServerState} id="NewNfsAddId">
+        <input type="submit"    value="{t}Delete{/t}"   name="DelNfsEnt"    {$goNfsServerState} id="DelNfsEntId">
+    </td>
+       </tr>
+       </table>        
+
+
+  </td>
+  <td style="vertical-align:top" width="50%">
+
+
+   <table>
+    <tr>
+               <td colspan="2"> 
+                       <b>{t}Quota settings{/t}</b>
+               </td>
+       </tr>
+       <tr>
+               <td>
+                       <input name="" value="" type="text" maxlength="2" size="3">%
+               </td>
+               <td>
+                       Percentage to warn users
+               </td>
+       </tr>
+   </table>
+  
+
+<p class="seperator">&nbsp;</p>
+<br>
+
+
+   <table>
+    <tr>
+        <td colspan="2">
+            <b>{t}Free/Busy settings{/t}</b>
+        </td>
+    </tr>
+    <tr>
+        <td>
+            <input name="" value="1" type="checkbox">
+        </td>
+        <td>
+            Allow unauthenticated downloading of Free/Busy information 
+        </td>
+        </tr>
+        <tr>
+        <td>
+               <input name="" value="" type="text" maxlength="2" size="3">
+               </td>
+        <td>
+                       When creating free/busy lists, include data from x days in the past
+               </td>
+     </tr>
+
+   </table>
+
+
+<p class="seperator">&nbsp;</p>
+<br>
+
+
+   <table>
+    <tr>
+        <td colspan="2">
+               <b>{t}Privileged Networks{/t}</b>
+               </td>
+    </tr>
+    <tr>
+        <td>
+            <input name="" value="" type="text">
+        </td>
+        <td>
+                       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)
+               </td>
+     </tr>
+   </table>
+
+
+<p class="seperator">&nbsp;</p>
+<br>
+
+
+   <table>
+    <tr>
+        <td colspan="2">
+               <b>{t}SMTP "smarthost/relayhost"{/t}</b>
+               </td>
+    </tr>
+    <tr>
+        <td>
+            <input name="" value="1" type="checkbox" >
+        </td>
+        <td>
+               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)
+               </td>
+     </tr>
+   </table>
+
+
+<p class="seperator">&nbsp;</p>
+<br>
+
+
+   <table>
+    <tr>
+        <td colspan="2">
+               <b>{t}Accept Internet Mai{/t}</b>
+               </td>
+    </tr>
+    <tr>
+        <td>
+            <input name="" value="1" type="checkbox" >
+        </td>
+        <td>
+               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.
+               </td>
+     </tr>
+   </table>
+
+
+
+
+
+
+
+  </td>
+ </tr>
+</table>