From 81b5e2604a30c1d4ae722add769e0b4cb5c5b82f Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sun, 29 Jun 2008 07:49:50 -0400
Subject: [PATCH] Show real hostname of the server as server name in interface.
---
install/install.php | 1 +
install/lib/installer_base.lib.php | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/install/install.php b/install/install.php
index ef6a8fb..d953964 100644
--- a/install/install.php
+++ b/install/install.php
@@ -217,6 +217,7 @@
//* Insert the Server record into the database
swriteln('Adding ISPConfig server record to database.');
+ swriteln('');
$inst->add_database_server_record();
diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php
index d94b94c..3fc9787 100644
--- a/install/lib/installer_base.lib.php
+++ b/install/lib/installer_base.lib.php
@@ -172,7 +172,7 @@
$server_ini_content = rf("tpl/server.ini.master");
$server_ini_content = addslashes($server_ini_content);
- $sql = "INSERT INTO `server` (`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_name`, `mail_server`, `web_server`, `dns_server`, `file_server`, `db_server`, `vserver_server`, `config`, `updated`, `active`) VALUES (1, 1, 'riud', 'riud', 'r', 'Server', 1, 1, 1, 1, 1, 1, '$server_ini_content', 0, 1);";
+ $sql = "INSERT INTO `server` (`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_name`, `mail_server`, `web_server`, `dns_server`, `file_server`, `db_server`, `vserver_server`, `config`, `updated`, `active`) VALUES (1, 1, 'riud', 'riud', 'r', '".$this->conf['hostname']."', 1, 1, 1, 1, 1, 1, '$server_ini_content', 0, 1);";
$this->db->query($sql);
$conf['server_id'] = $this->db->insertID();
$this->conf['server_id'] = $conf['server_id'];
--
Gitblit v1.9.1