From ecce1160e1a9fbb6e001813e6e12250bd8458d36 Mon Sep 17 00:00:00 2001 From: Luis Calvo Date: Thu, 9 May 2019 19:23:18 +0200 Subject: [PATCH 01/13] Added button to select ehorus conf type and box into user conf --- .../godmode/setup/setup_ehorus.php | 17 ++- pandora_console/include/functions_config.php | 6 +- pandora_console/operation/users/user_edit.php | 140 +++++++++++++++++- 3 files changed, 154 insertions(+), 9 deletions(-) diff --git a/pandora_console/godmode/setup/setup_ehorus.php b/pandora_console/godmode/setup/setup_ehorus.php index fc2ebd3d3a..1300e1dccd 100644 --- a/pandora_console/godmode/setup/setup_ehorus.php +++ b/pandora_console/godmode/setup/setup_ehorus.php @@ -52,8 +52,9 @@ $table_enable->style['name'] = 'font-weight: bold'; // Enable eHorus. $row = []; -$row['name'] = __('Enable eHorus'); +$row['name'] = ('Enable eHorus'); $row['control'] = html_print_checkbox_switch('ehorus_enabled', 1, $config['ehorus_enabled'], true); +$row['button'] = html_print_submit_button(__('Update'), 'update_button', false, 'class="sub upd"', true); $table_enable->data['ehorus_enabled'] = $row; // Remote config table. @@ -66,6 +67,12 @@ $table_remote->class = 'databox filters'; $table_remote->size['name'] = '30%'; $table_remote->style['name'] = 'font-weight: bold'; + +// Enable eHorus user configuration. +$row = []; +$row['name'] = ('Enable eHorus user configuration'); +$row['control'] = html_print_checkbox_switch('ehorus-user-login', 1, $config['ehorus-user-login'], true); +$table_remote->data['ehorus-user-login'] = $row; // User. $row = []; $row['name'] = __('User'); @@ -108,7 +115,6 @@ $row['control'] .= '