aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM.Gergo2020-03-28 03:57:08 +0100
committerM.Gergo2020-03-28 03:57:08 +0100
commitbf44957d40ee071d2195da8749bacdf21eea0871 (patch)
tree2e4fe1730d7820e8b2aaade0f0c210a314a74f2d
parentf5c88cbab227449ae2c1f000d9911499f6065315 (diff)
downloadmayor-bf44957d40ee071d2195da8749bacdf21eea0871.tar.gz
mayor-bf44957d40ee071d2195da8749bacdf21eea0871.zip
Mayor-Nextcloud script: diak-quota
-rw-r--r--egyéb/nextcloud/mayor-nextcloud.cfg.php4
-rw-r--r--egyéb/nextcloud/mayor-nextcloud.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/egyéb/nextcloud/mayor-nextcloud.cfg.php b/egyéb/nextcloud/mayor-nextcloud.cfg.php
index 2441c2aa..a21cd3a9 100644
--- a/egyéb/nextcloud/mayor-nextcloud.cfg.php
+++ b/egyéb/nextcloud/mayor-nextcloud.cfg.php
@@ -41,9 +41,9 @@ $m2n['verbose'] = 3 ;
$occ_path = "/var/www/nextcloud/";
$occ_user = "www-data";
+
-
-
+
/*
Nextcloud(13+) - Mayor script
diff --git a/egyéb/nextcloud/mayor-nextcloud.php b/egyéb/nextcloud/mayor-nextcloud.php
index 7daabd95..e7d26075 100644
--- a/egyéb/nextcloud/mayor-nextcloud.php
+++ b/egyéb/nextcloud/mayor-nextcloud.php
@@ -37,7 +37,7 @@ $m2n['verbose'] = 3 ;
$occ_path = "/var/www/nextcloud/";
$occ_user = "www-data";
-
+$ALWAYS_SET_DIAK_QUOTA = false;
$cfgfile = realpath(pathinfo($argv[0])['dirname'])."/"."mayor-nextcloud.cfg.php"; // A fenti konfig behívható config fájlból is, így a nextcloud-betöltő (ez a php) szerkesztés nélkül frissíthető.
if( file_exists($cfgfile)===TRUE ){ include($cfgfile); }
@@ -51,7 +51,7 @@ $replace = array( 'aa', 'ae', 'ee', 'ii', 'oo', 'oe', 'ooe', 'uu', 'ue', 'uue',
$log['verbose'] = $m2n['verbose'];
for($i = 1; $i<$argc; $i++){
if(@$argv[$i] == "--loglevel" and is_numeric($argv[$i+1])){$log['verbose'] = $argv[$i+1]; $i++;}
- if(@$argv[$i] == "--set-diak-quota" and is_numeric($argv[$i+1])){ $i++;}
+ if(@$argv[$i] == "--set-diak-quota" ){ $ALWAYS_SET_DIAK_QUOTA = true; $i++;}
}
if (function_exists('mysqli_connect') and PHP_MAJOR_VERSION >= 7) { //MySQLi (Improved) és php7 kell!