aboutsummaryrefslogtreecommitdiffstats
path: root/egyéb
diff options
context:
space:
mode:
authorM.Gergo2020-03-28 19:36:38 +0100
committerM.Gergo2020-03-28 19:36:38 +0100
commitd0491862affbfd6c8d08044a0a78f37ce3084feb (patch)
treea5826b3ad240aa816f4d97ebeebacf2eefc3c7f7 /egyéb
parent6a10a6eef31f288fe9112d757c62a48538dbeef6 (diff)
downloadmayor-d0491862affbfd6c8d08044a0a78f37ce3084feb.tar.gz
mayor-d0491862affbfd6c8d08044a0a78f37ce3084feb.zip
Mayor-Nextcloud script: user settings
Diffstat (limited to 'egyéb')
-rw-r--r--egyéb/nextcloud/mayor-nextcloud.php9
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