include_once(dirname(__FILE__).'/ressources/class.samba.inc'); include_once(dirname(__FILE__).'/ressources/class.ldap.inc'); include_once(dirname(__FILE__).'/ressources/class.ini.inc'); include_once(dirname(__FILE__).'/ressources/class.samba.inc'); include_once(dirname(__FILE__).'/ressources/class.lvm.org.inc'); include_once(dirname(__FILE__).'/ressources/class.user.inc'); include_once(dirname(__FILE__).'/ressources/class.mysql.inc'); include_once(dirname(__FILE__).'/ressources/class.groups.inc'); include_once(dirname(__FILE__).'/ressources/class.mount.inc'); include_once(dirname(__FILE__).'/framework/class.unix.inc'); include_once(dirname(__FILE__)."/framework/frame.class.inc"); if(preg_match("#--verbose#",implode(" ",$argv))){$GLOBALS["VERBOSE"]=true;} if(preg_match("#--force#",implode(" ",$argv))){$GLOBALS["FORCE"]=true;} if($argv[1]=='--users'){CountDeUsers();die();} if($argv[1]=='--fix-etc-hosts'){fixEtcHosts();die();} if($argv[1]=='--sslbridge'){sslbridgre();die();} if($argv[1]=='--ads-destroy'){ads_destroy();die();} if($argv[1]=='--ads'){activedirectory();kinit();die();} if($argv[1]=='--ping-ads'){activedirectory_ping();die();} if($argv[1]=='--logon-scripts'){LogonScripts();die();} if($argv[1]=='--administrator'){administrator_update();die();} if($argv[1]=='--loglevel'){set_log_level($argv[2]);die();} if($argv[1]=='--quotas-recheck'){quotasrecheck();die();} if($argv[1]=='--quotas-recheck'){quotasrecheck();die();} if($argv[1]=='--ldap-groups'){ldap_groups();die();}
include_once dirname(__FILE__) . '/ressources/class.groups.inc'; include_once dirname(__FILE__) . '/ressources/class.mount.inc'; include_once dirname(__FILE__) . '/framework/class.unix.inc'; include_once dirname(__FILE__) . "/framework/frame.class.inc"; if (preg_match("#--verbose#", implode(" ", $argv))) { $GLOBALS["VERBOSE"] = true; ini_set('display_errors', 1); ini_set('error_reporting', E_ALL); ini_set('error_prepend_string', null); ini_set('error_append_string', null); } if (preg_match("#--force#", implode(" ", $argv))) { $GLOBALS["FORCE"] = true; } if ($argv[1] == '--users') { CountDeUsers(); die; } if ($argv[1] == '--fix-etc-hosts') { fixEtcHosts(); die; } if ($argv[1] == '--sslbridge') { sslbridgre(); die; } if ($argv[1] == '--ads-destroy') { ads_destroy(); die; } if ($argv[1] == '--ads') {