From 3e8379bca33e25e81dded48afe1d3b6f3ffe44ac Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Thu, 26 Mar 2020 03:09:10 +0100 Subject: Mayor-Nextcloud script: quota --- "egy\303\251b/nextcloud/mayor-nextcloud.cfg.php" | 2 +- "egy\303\251b/nextcloud/mayor-nextcloud.php" | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'egyéb/nextcloud') diff --git "a/egy\303\251b/nextcloud/mayor-nextcloud.cfg.php" "b/egy\303\251b/nextcloud/mayor-nextcloud.cfg.php" index da094e00..5837aa1e 100644 --- "a/egy\303\251b/nextcloud/mayor-nextcloud.cfg.php" +++ "b/egy\303\251b/nextcloud/mayor-nextcloud.cfg.php" @@ -25,7 +25,7 @@ $m2n['csoport_prefix'] = "(tk) "; $m2n['default_email'] = "indulo@iskola.hu"; $m2n['default_passw'] = "EHYmGktzrdfS7wxJR6DFqxjJ"; $m2n['default_quota'] = "10GB"; -$m2n['diak_quota'] = "2GB"; +$m2n['diak_quota'] = "2GB"; $m2n['min_osztalyok'] = array(); //pl: array('9.a','11.a'); $m2n['csoportnev_hossz'] = 40; $m2n['felhasznalo_hossz'] = 45; diff --git "a/egy\303\251b/nextcloud/mayor-nextcloud.php" "b/egy\303\251b/nextcloud/mayor-nextcloud.php" index 6be31e55..7daabd95 100644 --- "a/egy\303\251b/nextcloud/mayor-nextcloud.php" +++ "b/egy\303\251b/nextcloud/mayor-nextcloud.php" @@ -375,12 +375,12 @@ if (function_exists('mysqli_connect') and PHP_MAJOR_VERSION >= 7) { //MySQLi (Im function add_param_to_user($list, $user, $paramname, $param){ //Naplón kívüli csoportokat adhatunk a felhasználókhoz foreach($list as $key => $val){ // Csak rendezett tömbökön! if($user === null or ($user !== null && $val['userAccount'] == $user )){ //Vagy mindenki vagy adott user + rendezett lista - + $list[$key][$paramname] = $param; // A paraméter } } return $list; - } + } function mayor_userlistcmp($a, $b){ return strcmp($a['userAccount'], $b['userAccount']); -- cgit v1.2.3