diff options
author | Matthias Held <ilovemilk@wusa.io> | 2018-06-18 15:14:17 +0300 |
---|---|---|
committer | Matthias Held <ilovemilk@wusa.io> | 2018-06-18 15:14:17 +0300 |
commit | 0d4208bd4934d83654fc3893867b2557546b404a (patch) | |
tree | b6db2416bb0da30e119fdf8ff2120dea7d086481 /templates | |
parent | 7a756a94ab887209f7ad7ffc6a01e2d16d01bfd4 (diff) |
Add Nextcloud application
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin.php | 55 | ||||
-rw-r--r-- | templates/index.php | 31 | ||||
-rw-r--r-- | templates/personal.php | 40 |
3 files changed, 126 insertions, 0 deletions
diff --git a/templates/admin.php b/templates/admin.php new file mode 100644 index 0000000..2f37eec --- /dev/null +++ b/templates/admin.php @@ -0,0 +1,55 @@ +<?php +/** + * @copyright Copyright (c) 2017 Matthias Held <matthias.held@uni-konstanz.de> + * @author Matthias Held <matthias.held@uni-konstanz.de> + * @license GNU AGPL version 3 or any later version + * + * 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 <https://www.gnu.org/licenses/>. + */ +style('ransomware_detection', 'style'); +script('ransomware_detection', 'admin'); +?> +<div id="ransomware_detection_recovery" class="section"> + <h2 class="inlineblock"><?php p($l->t('Recovery')); ?></h2> + <div class="ransomware_detection_cronjob"> + <h3> + <?php p($l->t('Number of days until a sequence will be deleted')); ?> + </h3> + <input id="expire_days" type="text" name="expire_days" value="<?php p($_['expireDays']); ?>"/> + </div> + <div class="ransomware_detection_sequence"> + <h3> + <?php p($l->t('Minimum number of file operations contained by a sequence, that it will be shown in recovery')); ?> + </h3> + <input id="minimum_sequence_length" type="text" name="minimum_sequence_length" value="<?php p($_['minimumSequenceLength']); ?>"/> + </div> +</div> +<div id="ransomware_detection_notification" class="section"> + <h2 class="inlineblock"><?php p($l->t('Notification')); ?></h2> + <div class="ransomware_detection_notification"> + <h3> + <?php p($l->t('Suspicion threshold for notifications')); ?> + </h3> + <select id="sequence-suspicion-level" name="sequence-suspicion-level" class="suspicion-level-<?php p($_['activeSuspicionLevel']['code']); ?>" data-placeholder="<?php p($l->t('Sequence suspicion level'));?>"> + <option class="suspicion-level-<?php p($_['activeSuspicionLevel']['code']); ?>" value="<?php p($_['activeSuspicionLevel']['code']); ?>"> + <?php p($_['activeSuspicionLevel']['name']); ?> + </option> + <?php foreach ($_['suspicionLevels'] as $suspicionLevel): ?> + <option class="suspicion-level-<?php p($suspicionLevel['code']); ?>" value="<?php p($suspicionLevel['code']); ?>"> + <?php p($suspicionLevel['name']);?> + </option> + <?php endforeach; ?> + </select> + </div> +</div> diff --git a/templates/index.php b/templates/index.php new file mode 100644 index 0000000..d5800e0 --- /dev/null +++ b/templates/index.php @@ -0,0 +1,31 @@ +<?php +/** + * @copyright Copyright (c) 2017 Matthias Held <matthias.held@uni-konstanz.de> + * @author Matthias Held <matthias.held@uni-konstanz.de> + * @license GNU AGPL version 3 or any later version + * + * 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 <https://www.gnu.org/licenses/>. + */ +script('ransomware_detection', 'app'); +script('ransomware_detection', 'filelist'); +script('ransomware_detection', 'vendor/font-awesome/fontawesome-all'); +style('ransomware_detection', 'style'); +?> +<div id="app"> + <div id="app-content"> + <div id="app-content-ransomware-detection"> + <!-- Tables --> + </div> + </div> +</div> diff --git a/templates/personal.php b/templates/personal.php new file mode 100644 index 0000000..4070ae3 --- /dev/null +++ b/templates/personal.php @@ -0,0 +1,40 @@ +<?php +/** + * @copyright Copyright (c) 2017 Matthias Held <matthias.held@uni-konstanz.de> + * @author Matthias Held <matthias.held@uni-konstanz.de> + * @license GNU AGPL version 3 or any later version + * + * 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 <https://www.gnu.org/licenses/>. + */ +style('ransomware_detection', 'style'); +script('ransomware_detection', 'personal'); +?> +<div id="ransomware_detection_color_mode" class="section"> + <h2><?php p($l->t('Color Mode')); ?></h2> + <p class="settings-hint hidden-when-empty">Current color mode for coding sequences.</p> + + <div class="ransomware_detection_color_scheme"> + <h3> + <?php p($l->t('Current color mode')); ?> + </h3> + <select id="color-scheme" name="color-scheme" data-placeholder="<?php p($l->t('Color mode'));?>"> + <option value="<?php p($_['colorActive']['code']); ?>"> + <?php p($_['colorActive']['name']); ?> + </option> + <option value="<?php p($_['color']['code']); ?>"> + <?php p($_['color']['name']); ?> + </option> + </select> + </div> +</div> |