From bf44957d40ee071d2195da8749bacdf21eea0871 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Sat, 28 Mar 2020 03:57:08 +0100 Subject: Mayor-Nextcloud script: diak-quota --- "egy\303\251b/nextcloud/mayor-nextcloud.cfg.php" | 4 ++-- "egy\303\251b/nextcloud/mayor-nextcloud.php" | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git "a/egy\303\251b/nextcloud/mayor-nextcloud.cfg.php" "b/egy\303\251b/nextcloud/mayor-nextcloud.cfg.php" index 2441c2aa..a21cd3a9 100644 --- "a/egy\303\251b/nextcloud/mayor-nextcloud.cfg.php" +++ "b/egy\303\251b/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\303\251b/nextcloud/mayor-nextcloud.php" "b/egy\303\251b/nextcloud/mayor-nextcloud.php" index 7daabd95..e7d26075 100644 --- "a/egy\303\251b/nextcloud/mayor-nextcloud.php" +++ "b/egy\303\251b/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! -- cgit v1.2.3