* @author Marcin Łojewski * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ use OCP\IL10N; script("user_sql", "settings"); style("user_sql", "settings"); function print_text_input(IL10N $l, $id, $label, $value = "", $type = "text") { echo "
"; } function print_checkbox_input(IL10N $l, $id, $label, $value = "", $div = true) { if ($div) { echo "
"; } echo ""; echo ""; if ($div) { echo "
"; } } function print_select_options( IL10N $l, $id, $label, $options = [], $select = false ) { echo "
"; } ?>

t("This is the place for ")); ?> t("User and Group SQL Backends")); ?> t(" app settings. Please see the documentation for more information.")); ?>

t("Database connection")); ?>

t("Define your database connection parameters.")); ?>

"MySQL", "pgsql" => "PostgreSQL"]; print_select_options($l, "db-driver", "SQL driver", $drivers, $_["db.driver"]); print_text_input($l, "db-hostname", "Hostname", $_["db.hostname"]); print_text_input($l, "db-database", "Database", $_["db.database"]); print_text_input($l, "db-username", "Username", $_["db.username"]); print_text_input($l, "db-password", "Password", $_["db.password"], "password"); ?>
">

t("Options")); ?>

t("Here are all currently supported options.")); ?>

">
getVisibleName(); } } catch (Throwable $e) { } } print_select_options($l, "opt-crypto_class", "Hash algorithm", $hashes, $_["opt.crypto_class"]); ?> "None", "initial" => "Synchronise only once", "force_nc"=>"Nextcloud always wins", "force_sql"=>"SQL always wins"], $_["opt.email_sync"]); print_select_options($l, "opt-quota_sync", "Quota sync", ["" => "None", "initial" => "Synchronise only once", "force_nc"=>"Nextcloud always wins", "force_sql"=>"SQL always wins"], $_["opt.quota_sync"]); print_select_options($l, "opt-home_mode", "Home mode", ["" => "Default", "query" => "Query", "static" => "Static"], $_["opt.home_mode"]); print_text_input($l, "opt-home_location", "Home Location", $_["opt.home_location"]); ?>

t("User table")); ?>

t("Table containing user accounts.")); ?>

t("Columns")); ?>

t("Group table")); ?>

t("Group definitions table.")); ?>

t("Columns")); ?>

t("User group table")); ?>

t("Associative table which maps users to groups.")); ?>

t("Columns")); ?>

" id="requesttoken"/> "/>