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();} if($argv[1]=='--help'){help_output();die();} function help_output(){ echo "--users...........: Save users number in cache\n"; echo "--fix-etc-hosts...: Fix hostname in /etc/hosts\n"; echo "--ads-destroy.....: Destroy Active directory connection\n"; echo "--ads.............: Create Active directory connection\n"; echo "--ping-ads........: refresh Active Directory connection\n"; echo "--logon-scripts...: Perform logon scripts installation\n"; echo "--administrator...: update administrator informations\n";
exit; } if (isset($_GET["quotastats"])) { quotastats(); exit; } if (isset($_GET["repquota"])) { repquota(); exit; } if (isset($_GET["setquota"])) { setquota(); exit; } if (isset($_GET["quotas-recheck"])) { quotasrecheck(); exit; } if (isset($_GET["umount-disk"])) { umount_disk(); exit; } if (isset($_GET["lvremove"])) { LVM_REMOVE(); exit; } if (isset($_GET["fdiskl"])) { fdisk_list(); exit; } if (isset($_GET["lvmdiskscan"])) {
// cmd.php?fstab-acl=yes&acl=$acl&dev=$dev if(isset($_GET["fstab-acl"])){fstab_acl();exit;} if(isset($_GET["fstab-quota"])){fstab_quota();exit;} if(isset($_GET["fstab-remove"])){fstab_del();exit;} if(isset($_GET["DiskInfos"])){DiskInfos();exit;} if(isset($_GET["fstab-get-mount-point"])){fstab_get_mount_point();exit;} if(isset($_GET["get-mounted-path"])){disk_get_mounted_point();exit;} if(isset($_GET["fdisk-build-big-partitions"])){disk_format_big_partition();} if(isset($_GET["chown"])){directory_chown();exit;} if(isset($_GET["quotastats"])){quotastats();exit;} if(isset($_GET["repquota"])){repquota();exit;} if(isset($_GET["setquota"])){setquota();exit;} if(isset($_GET["quotas-recheck"])){quotasrecheck();exit;} if(isset($_GET["umount-disk"])){umount_disk();exit;} if(isset($_GET["lvremove"])){LVM_REMOVE();exit;} if(isset($_GET["fdiskl"])){fdisk_list();exit;} if(isset($_GET["lvmdiskscan"])){lvmdiskscan();exit;} if(isset($_GET["pvscan"])){pvscan();exit;} if(isset($_GET["vgs-info"])){LVM_VGS_INFO();exit;} if(isset($_GET["vg-disks"])){LVM_VG_DISKS();exit;} if(isset($_GET["lvdisplay"])){LVM_LV_DISPLAY();exit;}