Commit 568b4b12 authored by Florian Schaal's avatar Florian Schaal
Browse files

display the documnet_root for a website

parent fe8aa64b
......@@ -135,4 +135,5 @@ $wb['backup_excludes_error_regex'] = 'The excluded directories contain invalid c
$wb['invalid_custom_php_ini_settings_txt'] = 'Ogiltiga php.ini-inställningar';
$wb['invalid_system_user_or_group_txt'] = 'Invalid system user or group';
$wb['apache_directive_blocked_error'] = 'Apache directive blocked by security settings:';
$wb["document_root_txt"] = "Document Root";
?>
......@@ -135,4 +135,5 @@ $wb['backup_excludes_error_regex'] = 'The excluded directories contain invalid c
$wb['invalid_custom_php_ini_settings_txt'] = 'Invalid php.ini settings';
$wb['invalid_system_user_or_group_txt'] = 'Invalid system user or group';
$wb['apache_directive_blocked_error'] = 'Apache directive blocked by security settings:';
$wb["document_root_txt"] = "Document Root";
?>
......@@ -135,4 +135,5 @@ $wb['backup_excludes_error_regex'] = 'The excluded directories contain invalid c
$wb['invalid_custom_php_ini_settings_txt'] = 'Invalid php.ini settings';
$wb['invalid_system_user_or_group_txt'] = 'Invalid system user or group';
$wb['apache_directive_blocked_error'] = 'Apache directive blocked by security settings:';
$wb["document_root_txt"] = "Document Root";
?>
......@@ -89,6 +89,12 @@
<tmpl_else>
<div class="col-sm-9"><input type="text" name="domain" id="domain" value="{tmpl_var name='domain'}" class="form-control" /></div></tmpl_if>
</div>
<tmpl_if name="edit_disabled">
<div class="form-group">
<label for="document_root" class="col-sm-3 control-label" readonly >{tmpl_var name='ip_address_txt'}</label>
<div class="col-sm-9">{tmpl_var name='document_root'}</div>
</div>
</tmpl_if>
<div class="form-group">
<label for="hd_quota" class="col-sm-3 control-label">{tmpl_var name='hd_quota_txt'}</label>
<div class="col-sm-6"><input type="text" name="hd_quota" id="hd_quota" value="{tmpl_var name='hd_quota'}" class="form-control" /></div><div class="col-sm-3 input-sm">&nbsp;MB
......@@ -420,4 +426,4 @@
});
</tmpl_if>
</script>
\ No newline at end of file
</script>
......@@ -647,7 +647,10 @@ class page_action extends tform_actions {
//* we are editing a existing record
$app->tpl->setVar("edit_disabled", 1);
$app->tpl->setVar('fixed_folder', 'y');
if($this->_vhostdomain_type == 'domain') $app->tpl->setVar("server_id_value", $this->dataRecord["server_id"]);
if($this->_vhostdomain_type == 'domain') {
$app->tpl->setVar("server_id_value", $this->dataRecord["server_id"]);
$app->tpl->setVar("document_root", $this->dataRecord["document_root"]);
}
else $app->tpl->setVar('server_id_value', $parent_domain['server_id']);
} else {
$app->tpl->setVar("edit_disabled", 0);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment