diff options
author | M.Gergo | 2020-03-28 19:36:38 +0100 |
---|---|---|
committer | M.Gergo | 2020-03-28 19:36:38 +0100 |
commit | d0491862affbfd6c8d08044a0a78f37ce3084feb (patch) | |
tree | a5826b3ad240aa816f4d97ebeebacf2eefc3c7f7 /egyéb/nextcloud/mayor-nextcloud.php | |
parent | 6a10a6eef31f288fe9112d757c62a48538dbeef6 (diff) | |
download | mayor-d0491862affbfd6c8d08044a0a78f37ce3084feb.tar.gz mayor-d0491862affbfd6c8d08044a0a78f37ce3084feb.zip |
Mayor-Nextcloud script: user settings
Diffstat (limited to 'egyéb/nextcloud/mayor-nextcloud.php')
-rw-r--r-- | egyéb/nextcloud/mayor-nextcloud.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/egyéb/nextcloud/mayor-nextcloud.php b/egyéb/nextcloud/mayor-nextcloud.php index 412ab583..13994da5 100644 --- a/egyéb/nextcloud/mayor-nextcloud.php +++ b/egyéb/nextcloud/mayor-nextcloud.php @@ -273,18 +273,21 @@ if (function_exists('mysqli_connect') and PHP_MAJOR_VERSION >= 7) { //MySQLi (Im function user_set($userAccount, array $params){ //beállítja az e-mailt, quota-t, nyelvet a kapott értékekre global $occ_path,$occ_user,$log; - if(isset($params['quota'])) + if(isset($params['quota'])){ $e = "su -s /bin/sh $occ_user -c 'php \"".$occ_path."/occ\" user:setting $userAccount files quota \"".$params['quota']."\"'"; if($log['verbose'] > 5) { echo "bash ->\t".$e."\n"; } shell_exec( $e ); - if(isset($params['email'])) + } + if(isset($params['email'])){ $e = "su -s /bin/sh $occ_user -c 'php \"".$occ_path."/occ\" user:setting $userAccount settings email \"".$params['email']."\"'"; if($log['verbose'] > 5) { echo "bash ->\t".$e."\n"; } shell_exec( $e ); - if(isset($params['lang'])) + } + if(isset($params['lang'])){ $e = "su -s /bin/sh $occ_user -c 'php \"".$occ_path."/occ\" user:setting $userAccount core lang \"".$params['lang']."\"'"; if($log['verbose'] > 5) { echo "bash ->\t".$e."\n"; } shell_exec($e); + } } function group_add($groupName){ //Új csoport létrehozása a Nextcloud-ban |