summaryrefslogtreecommitdiffstats
path: root/inc/templates/adminform.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/templates/adminform.php')
-rw-r--r--inc/templates/adminform.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/inc/templates/adminform.php b/inc/templates/adminform.php
index 882c0dd3778..394df38da70 100644
--- a/inc/templates/adminform.php
+++ b/inc/templates/adminform.php
@@ -1,4 +1,5 @@
<?php
+global $WEBROOT;
global $FIRSTRUN;
global $CONFIG_ENABLEBACKUP;
global $CONFIG_DATADIRECTORY_ROOT;
@@ -50,7 +51,14 @@ function dbtypechange(){
}
}
</script>
-<form method="post" enctype="multipart/form-data" action="#">
+<?php
+if(!$FIRSTRUN){
+ $action=$WEBROOT.'/settings';
+}else{
+ $action='#';
+}
+echo('<form method="post" enctype="multipart/form-data" action="'.$action.'">')
+?>
<table cellpadding="5" cellspacing="5" border="0" class="loginform">
<?php
if(!empty($CONFIG_ERROR) and !$FIRSTRUN){