aboutsummaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2014-06-03 08:01:39 +0200
committerMorris Jobke <morris.jobke@gmail.com>2014-06-03 08:01:39 +0200
commit68a4fd44e62852453e65eca31f319842573be969 (patch)
tree4d062cb264ceef5db1eba8cc7b629df6b294a872 /settings
parenta4dd4cbb8fdf6d459325884290b3f4804a554328 (diff)
downloadnextcloud-server-68a4fd44e62852453e65eca31f319842573be969.tar.gz
nextcloud-server-68a4fd44e62852453e65eca31f319842573be969.zip
add notification on admin page
Diffstat (limited to 'settings')
-rwxr-xr-xsettings/admin.php5
-rw-r--r--settings/templates/admin.php14
2 files changed, 19 insertions, 0 deletions
diff --git a/settings/admin.php b/settings/admin.php
index a0769892ef4..2a33dfb45fb 100755
--- a/settings/admin.php
+++ b/settings/admin.php
@@ -88,6 +88,11 @@ $tmpl->assign('forms', array());
foreach($forms as $form) {
$tmpl->append('forms', $form);
}
+
+// TODO - replace by:
+// > 5 users OR > 1000 files
+$tmpl->assign('databaseOverload', true);
+
$tmpl->printPage();
/**
diff --git a/settings/templates/admin.php b/settings/templates/admin.php
index cb57bc0ce72..ad4b7a77626 100644
--- a/settings/templates/admin.php
+++ b/settings/templates/admin.php
@@ -98,6 +98,20 @@ if (!$_['isAnnotationsWorking']) {
<?php
}
+// SQLite database performance issue
+if ($_['databaseOverload']) {
+ ?>
+<div class="section">
+ <h2><?php p($l->t('Database Performance Warning'));?></h2>
+
+ <span class="securitywarning">
+ <?php p($l->t('SQLite will be used as database. For larger installations we recommend to change this.')); ?>
+ </span>
+
+</div>
+<?php
+}
+
// if module fileinfo available?
if (!$_['has_fileinfo']) {
?>