aboutsummaryrefslogtreecommitdiffstats
path: root/egyéb/nextcloud/mayor-nextcloud.php
diff options
context:
space:
mode:
authorM.Gergo2020-04-04 16:36:11 +0200
committerM.Gergo2020-04-04 16:36:11 +0200
commitbfc6da893526efa4654d1b5db96fea2720c3d158 (patch)
tree092eb2bb32846dd635837b3e5f6e64e744d03f21 /egyéb/nextcloud/mayor-nextcloud.php
parent2a6faf03062724433e681c8359317f184955d25b (diff)
downloadmayor-bfc6da893526efa4654d1b5db96fea2720c3d158.tar.gz
mayor-bfc6da893526efa4654d1b5db96fea2720c3d158.zip
Mayor-Nextcloud script: Tankörmappák
Diffstat (limited to 'egyéb/nextcloud/mayor-nextcloud.php')
-rw-r--r--egyéb/nextcloud/mayor-nextcloud.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/egyéb/nextcloud/mayor-nextcloud.php b/egyéb/nextcloud/mayor-nextcloud.php
index b1f4181c..1a6da6c0 100644
--- a/egyéb/nextcloud/mayor-nextcloud.php
+++ b/egyéb/nextcloud/mayor-nextcloud.php
@@ -396,7 +396,7 @@ if (function_exists('mysqli_connect') and PHP_MAJOR_VERSION >= 7) { //MySQLi (Im
function files_scan($user, $path ){ // Nextcloud files:scan --path=xxx
global $occ_user, $occ_path,$log;
- $e = "su -s /bin/sh $occ_user -c 'php \"".$occ_path."/occ\" files:scan --path=\"".$user."/files/".$path."\" '"; // -v
+ $e = "su -s /bin/sh $occ_user -c 'php \"".$occ_path."/occ\" files:scan --path=\"".$user."/files/".$path."\"/ '"; // -v
if($log['verbose'] > 5) { echo "bash ->\t".$e."\n"; }
shell_exec($e);
}
@@ -466,6 +466,7 @@ if (function_exists('mysqli_connect') and PHP_MAJOR_VERSION >= 7) { //MySQLi (Im
rename($occ_path."/data/".$user."/files/".$path, $occ_path."/data/".$user."/files/".$path.".".time().".please-remove"); //Átnevezi, hogy azért mégse vasszen oda
echo "php ->\tFILE: \"".$occ_path."/data/".$user."/files/".$path."\" \t \t moved away!!!\n";
user_notify($user,"Fájl: >>".$path.".please-remove<< Illegális helyen volt. Server által eltávolítva.", "Fájl: >>".$path."<< eltávolítva!");
+ files_scan($user, "" ); //Ekkor az egész $user/files mappát szkenneli
}
$ret[0] = create_dir($user, $path); // Tankörmappa gyökér létrehozása
$ret[1] = write_tofile($user, $path."/"."INFO.txt", $m2n['infotxt_szöveg']); // Információs fájlt is