]> source.dussan.org Git - nextcloud-server.git/commitdiff
add notification on admin page
authorMorris Jobke <morris.jobke@gmail.com>
Tue, 3 Jun 2014 06:01:39 +0000 (08:01 +0200)
committerMorris Jobke <morris.jobke@gmail.com>
Tue, 3 Jun 2014 06:01:39 +0000 (08:01 +0200)
settings/admin.php
settings/templates/admin.php

index a0769892ef44d553b9368ab65dc520c9f913918b..2a33dfb45fbb195bdb3d52888bd8ef07e4e335e5 100755 (executable)
@@ -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();
 
 /**
index cb57bc0ce7252f8fb128b5a4e15d07eb015f9c9f..ad4b7a77626212d73f0624d8df88b036032c26d8 100644 (file)
@@ -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']) {
        ?>