From d0491862affbfd6c8d08044a0a78f37ce3084feb Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Sat, 28 Mar 2020 19:36:38 +0100 Subject: Mayor-Nextcloud script: user settings --- "egy\303\251b/nextcloud/mayor-nextcloud.php" | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'egyéb/nextcloud') diff --git "a/egy\303\251b/nextcloud/mayor-nextcloud.php" "b/egy\303\251b/nextcloud/mayor-nextcloud.php" index 412ab583..13994da5 100644 --- "a/egy\303\251b/nextcloud/mayor-nextcloud.php" +++ "b/egy\303\251b/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 -- cgit v1.2.3