diff options
author | Robin <robin@Amaya.(none)> | 2010-05-08 21:32:20 +0200 |
---|---|---|
committer | Robin <robin@Amaya.(none)> | 2010-05-08 21:32:20 +0200 |
commit | 51b253447d4aa6d10a3870e94b9a2288278e1916 (patch) | |
tree | bb6737a66c2883a59e85f7fac796cc844641a4fe /inc/templates | |
parent | 565410d8e266b4d0391b10d15339f700dcb1f789 (diff) | |
download | nextcloud-server-51b253447d4aa6d10a3870e94b9a2288278e1916.tar.gz nextcloud-server-51b253447d4aa6d10a3870e94b9a2288278e1916.zip |
provide option for automatic backup
Diffstat (limited to 'inc/templates')
-rwxr-xr-x | inc/templates/adminform.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/inc/templates/adminform.php b/inc/templates/adminform.php index 7dfdcc65bf4..32b4f9ec411 100755 --- a/inc/templates/adminform.php +++ b/inc/templates/adminform.php @@ -1,5 +1,7 @@ <?php global $FIRSTRUN; +global $CONFIG_ENABLEBACKUP; +global $CONFIG_BACKUPDIRECTORY; global $CONFIG_ERROR; if(!isset($fillDB)) $fillDB=true; if(!isset($CONFIG_DBHOST)) $CONFIG_DBHOST='localhost'; @@ -13,6 +15,11 @@ function showDBAdmin(){ document.getElementById('dbAdminPwd').style.display=(show)?'table-row':'none'; } +function showBackupPath(){ + var show=document.getElementById('enablebackup').checked; + document.getElementById('backupdir').style.display=(show)?'table-row':'none'; +} + function dbtypechange(){ var dropdown=action=document.getElementById('dbtype'); var type=dropdown.options[dropdown.selectedIndex].value; @@ -57,6 +64,8 @@ if($FIRSTRUN){?> ?> <tr><td>data directory:</td><td><input type="text" name="datadirectory" size="30" class="formstyle" value="<?php echo($CONFIG_DATADIRECTORY);?>"></input></td></tr> <tr><td>force ssl:</td><td><input type="checkbox" name="forcessl" size="30" class="formstyle" value='1' <?php if($CONFIG_HTTPFORCESSL) echo 'checked'?>></input></td></tr> +<tr><td>enable automatic backup:</td><td><input type="checkbox" name="enablebackup" id="enablebackup" onchange='showBackupPath()' size="30" class="formstyle" value='1' <?php if($CONFIG_ENABLEBACKUP) echo 'checked'?>></input></td></tr> +<tr id='backupdir'><td>backup directory:</td><td><input type="text" name="backupdirectory" size="30" class="formstyle" value="<?php echo($CONFIG_BACKUPDIRECTORY);?>"></input></td></tr> <tr><td>date format:</td><td><input type="text" name="dateformat" size="30" class="formstyle" value='<?php echo($CONFIG_DATEFORMAT);?>'></input></td></tr> <tr><td>database type:</td><td> <select id='dbtype' name="dbtype" onchange='dbtypechange()'> @@ -103,4 +112,5 @@ if(!$FIRSTRUN){?> ?> <script type="text/javascript"> dbtypechange() + showBackupPath() </script>
\ No newline at end of file |