aboutsummaryrefslogtreecommitdiffstats
path: root/egyéb/nextcloud/mayor-nextcloud.php
diff options
context:
space:
mode:
authorM.Gergo2021-02-23 04:53:03 +0100
committerM.Gergo2021-02-23 04:53:03 +0100
commitb3e0418b9f4efbb0811a7a75d84d6ced5199c848 (patch)
tree46fc72b1621c226df9f403f37bef4de8fc33e5b9 /egyéb/nextcloud/mayor-nextcloud.php
parent5a088b9cecda8c8ae7bc28fc39c7483331be397d (diff)
downloadmayor-b3e0418b9f4efbb0811a7a75d84d6ced5199c848.tar.gz
mayor-b3e0418b9f4efbb0811a7a75d84d6ced5199c848.zip
M2LDAP: ldap-user-add
Diffstat (limited to 'egyéb/nextcloud/mayor-nextcloud.php')
-rw-r--r--egyéb/nextcloud/mayor-nextcloud.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/egyéb/nextcloud/mayor-nextcloud.php b/egyéb/nextcloud/mayor-nextcloud.php
index 7f0b970b..dbf7ee1d 100644
--- a/egyéb/nextcloud/mayor-nextcloud.php
+++ b/egyéb/nextcloud/mayor-nextcloud.php
@@ -59,8 +59,9 @@ $pwchars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_?";
for($i = 1; $i<$argc; $i++){ //Ha van külön config megadva, akkor először azt töltjük be.
if($argv[$i] == "--config-file" ){$cfgfile = strval($argv[$i+1]); $i++;}
}
-if(file_exists($cfgfile) === TRUE){ include($cfgfile); } //Config betöltés
-if(!empty($m2n)){ $cfg_o = $cfg; $cfg = $m2n; $cfg = array_merge($cfg, $cfg_o); } //Ha valahol még a régi config lenne
+if(file_exists($cfgfile) === TRUE){ $cfg_o = $cfg; include($cfgfile); $cfg_n = $cfg; $cfg = array_merge($cfg, $cfg_o, $cfg_n); } //Config betöltés
+if(!empty($m2n)){ $cfg_o = $cfg; $cfg = array_merge($cfg, $m2n, $cfg_o); } //Ha valahol még a régi config lenne
+
for($i = 1; $i<$argc; $i++){ // Kézzel felülbírált config opciók
if($argv[$i] == "--help" ){$printhelp = true;}