if($argv[1]=='--reconfigure'){reconfigure();die();} if($argv[1]=='--samba-audit'){SambaAudit();die();} if($argv[1]=='--check-dirs'){CheckExistentDirectories();die();} if($argv[1]=='--build'){build();die();} if($argv[1]=='--disable-profiles'){DisableProfiles();die();} if($argv[1]=='--enable-profiles'){EnableProfiles(); die();} if($argv[1]=='--fix-lmhost'){fix_lmhosts();die();} if($argv[1]=='--fix-HideUnwriteableFiles'){fix_hide_unwriteable_files();die();} if($argv[1]=='--usb-mount'){usb_mount($argv[2],$argv[3]);exit;} if($argv[1]=='--usb-umount'){usb_umount($argv[2],$argv[3]);exit;} if($argv[1]=='--smbtree'){smbtree();exit;} $users=new usersMenus(); if(!$users->SAMBA_INSTALLED){echo "Samba is not installed\n";die();} FixsambaDomainName(); function FixsambaDomainName(){ $smb=new samba(); $workgroup=$smb->main_array["global"]["workgroup"]; $smb->CleanAllDomains($workgroup); } function ldap_groups(){
die; } if ($argv[1] == '--fix-HideUnwriteableFiles') { fix_hide_unwriteable_files(); die; } if ($argv[1] == '--usb-mount') { usb_mount($argv[2], $argv[3]); exit; } if ($argv[1] == '--usb-umount') { usb_umount($argv[2], $argv[3]); exit; } if ($argv[1] == '--smbtree') { smbtree(); exit; } $users = new usersMenus(); if (!$users->SAMBA_INSTALLED) { echo "Samba is not installed\n"; die; } FixsambaDomainName(); function FixsambaDomainName() { $smb = new samba(); $workgroup = $smb->main_array["global"]["workgroup"]; $smb->CleanAllDomains($workgroup); } function ldap_groups()