index 9d0d752c11fb40cc5e355181ab1f0e05eb6909a4..a2d36d1a96dcb27210a3a1dcfa32acb3ef21a339 100644 (file)
<?php
class servkolab extends plugin {
<?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");
var $postfix_mydomain = "";
var $postfix_mydestination = "";
var $postfix_mydomain = "";
var $postfix_mydestination = "";
+ var $cyrus_admins = "";
var $postfix_mynetworks = "127.0.0.1/8";
var $postfix_enable_virus_scan = "TRUE";
var $postfix_relayhost = "";
var $postfix_mynetworks = "127.0.0.1/8";
var $postfix_enable_virus_scan = "TRUE";
var $postfix_relayhost = "";
var $cyrus_quotawarn = "80";
var $kolabFreeBusyFuture = "1";
var $k = "kolab";
var $cyrus_quotawarn = "80";
var $kolabFreeBusyFuture = "1";
var $k = "kolab";
- var $cyrus_admins = "TRUE";
var $cyrus_imap = "TRUE";
var $cyrus_pop3 = "TRUE";
var $cyrus_imaps = "TRUE";
var $cyrus_imap = "TRUE";
var $cyrus_pop3 = "TRUE";
var $cyrus_imaps = "TRUE";
"cyrus_quotawarn");
var $objectclasses = array("top", "kolab");
"cyrus_quotawarn");
var $objectclasses = array("top", "kolab");
- function servkolab($config, $dn = NULL)
+ function servkolab($config, $dn = NULL, $parent= NULL)
{
/* Setting the hostname and tell this Plugin that we are the kolab extension*/
$this->hostname = preg_replace('/^cn=([^,]+),.*$/', '\1', $dn);
{
/* Setting the hostname and tell this Plugin that we are the kolab extension*/
$this->hostname = preg_replace('/^cn=([^,]+),.*$/', '\1', $dn);
/* Save checkboxes */
foreach (array( "postfix_enable_virus_scan", "postfix_allow_unauthenticated",
/* Save checkboxes */
foreach (array( "postfix_enable_virus_scan", "postfix_allow_unauthenticated",
- "cyrus_admins", "cyrus_imap", "cyrus_pop3", "cyrus_imaps",
+ "cyrus_imap", "cyrus_pop3", "cyrus_imaps",
"cyrus_pop3s", "cyrus_sieve", "apache_allow_unauthenticated_fb",
"proftpd_ftp", "apache_http") as $cb){
if (isset($_POST[$cb])){
"cyrus_pop3s", "cyrus_sieve", "apache_allow_unauthenticated_fb",
"proftpd_ftp", "apache_http") as $cb){
if (isset($_POST[$cb])){