die; } if ($argv[1] == "--config") { config(); die; } if ($argv[1] == "--ldap-config") { ldap_config(); die; } if ($argv[1] == "--exoprhs") { export_orphans(); die; } if ($argv[1] == "--yaffas") { yaffas(); exit; } if ($argv[1] == "--users-status") { user_status_table(); exit; } die; sync_users(); function sync_users() { $unix = new unix(); $zarafaadmin = $unix->find_program("zarafa-admin"); echo "Synchronize external datas\n"; shell_exec("{$zarafaadmin} --sync"); shell_exec("{$zarafaadmin} --list-companies");
} if ($argv[1] == "--zarafa") { $GLOBALS["DISABLE_WATCHDOG"] = true; include_once dirname(__FILE__) . "/ressources/class.status.zarafa.inc"; $conf[] = zarafa_web(); $conf[] = zarafa_ical(); $conf[] = zarafa_dagent(); $conf[] = zarafa_monitor(); $conf[] = zarafa_gateway(); $conf[] = zarafa_spooler(); $conf[] = zarafa_server(); $conf[] = zarafa_server2(); $conf[] = zarafa_licensed(); $conf[] = zarafa_db(); $conf[] = zarafa_indexer(); $conf[] = yaffas(); $conf[] = zarafa_multi(); $conf[] = zarafa_search(); $conf[] = php_fpm(); echo @implode("\n", $conf); die; } if ($argv[1] == "--amavis-full") { $conf[] = spamassassin(); $conf[] = clamd(); $conf[] = amavis(); $conf[] = amavis_milter(); $conf[] = amavisdb(); echo @implode("\n", $conf); die; }