Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
J. Daniel Schmidt
ISPConfig 3
Commits
2332b227
Commit
2332b227
authored
Aug 02, 2013
by
tbrehm
Browse files
Added support for mongodb. Many thanks to MaddinXx for the patch.
http://www.howtoforge.com/forums/showthread.php?t=62691
parent
615a0a96
Changes
31
Expand all
Hide whitespace changes
Inline
Side-by-side
install/sql/incremental/upd_0055.sql
0 → 100644
View file @
2332b227
ALTER
TABLE
`web_backup`
CHANGE
`backup_type`
`backup_type`
enum
(
'web'
,
'mongodb'
,
'mysql'
)
NOT
NULL
DEFAULT
'web'
;
ALTER
TABLE
`web_database_user`
ADD
`database_password_mongo`
varchar
(
32
)
DEFAULT
NULL
AFTER
`database_password`
;
install/sql/ispconfig3.sql
View file @
2332b227
...
...
@@ -26,24 +26,24 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-- Includes
--
-- Includes
--
-- iso_country_list.sql
--
--
-- This will create and then populate a MySQL table with a list of the names and
-- ISO 3166 codes for countries in existence as of the date below.
--
--
-- For updates to this file, see http://27.org/isocountrylist/
-- For more about ISO 3166, see http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html
--
--
-- Created by getisocountrylist.pl on Sun Nov 2 14:59:20 2003.
-- Wm. Rhodes <iso_country_list@27.org>
--
--
--
--
-- ISPConfig 3
-- DB-Version: 3.0.0.9
--
--
SET
FOREIGN_KEY_CHECKS
=
0
;
...
...
@@ -252,9 +252,9 @@ CREATE TABLE `client_circle` (
-- --------------------------------------------------------
--
--
-- Table structure for table `client_template`
--
--
CREATE
TABLE
`client_template`
(
`template_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -262,7 +262,7 @@ CREATE TABLE `client_template` (
`sys_groupid`
int
(
11
)
unsigned
NOT
NULL
default
'0'
,
`sys_perm_user`
varchar
(
5
)
default
NULL
,
`sys_perm_group`
varchar
(
5
)
default
NULL
,
`sys_perm_other`
varchar
(
5
)
default
NULL
,
`sys_perm_other`
varchar
(
5
)
default
NULL
,
`template_name`
varchar
(
64
)
NOT
NULL
,
`template_type`
varchar
(
1
)
NOT
NULL
default
'm'
,
`limit_maildomain`
int
(
11
)
NOT
NULL
default
'-1'
,
...
...
@@ -330,9 +330,9 @@ CREATE TABLE `country` (
-- --------------------------------------------------------
--
--
-- Table structure for table `cron`
--
--
CREATE
TABLE
`cron`
(
`id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
`sys_userid`
int
(
11
)
unsigned
NOT
NULL
default
'0'
,
...
...
@@ -355,9 +355,9 @@ CREATE TABLE `cron` (
-- --------------------------------------------------------
--
--
-- Table structure for table `directive_snippets`
--
--
CREATE
TABLE
IF
NOT
EXISTS
`directive_snippets`
(
`directive_snippets_id`
int
(
11
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
...
...
@@ -375,9 +375,9 @@ CREATE TABLE IF NOT EXISTS `directive_snippets` (
-- --------------------------------------------------------
--
--
-- Table structure for table `dns_rr`
--
--
CREATE
TABLE
`dns_rr`
(
`id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -425,9 +425,9 @@ CREATE TABLE `dns_slave` (
-- --------------------------------------------------------
--
--
-- Table structure for table `dns_soa`
--
--
CREATE
TABLE
`dns_soa`
(
`id`
int
(
10
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -457,9 +457,9 @@ CREATE TABLE `dns_soa` (
-- --------------------------------------------------------
--
--
-- Table structure for table `dns_template`
--
--
CREATE
TABLE
`dns_template`
(
`template_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -493,9 +493,9 @@ CREATE TABLE `domain` (
-- --------------------------------------------------------
--
--
-- Table structure for table `firewall`
--
--
CREATE
TABLE
`firewall`
(
`firewall_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -513,9 +513,9 @@ CREATE TABLE `firewall` (
-- --------------------------------------------------------
--
--
-- Table structure for table `ftp_user`
--
--
CREATE
TABLE
`ftp_user`
(
`ftp_user_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -607,9 +607,9 @@ CREATE TABLE `iptables` (
-- --------------------------------------------------------
--
--
-- Table structure for table `mail_access`
--
--
CREATE
TABLE
`mail_access`
(
`access_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -629,9 +629,9 @@ CREATE TABLE `mail_access` (
-- --------------------------------------------------------
--
--
-- Table structure for table `mail_content_filter`
--
--
CREATE
TABLE
`mail_content_filter`
(
`content_filter_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -651,9 +651,9 @@ CREATE TABLE `mail_content_filter` (
-- --------------------------------------------------------
--
--
-- Table structure for table `mail_domain`
--
--
CREATE
TABLE
`mail_domain`
(
`domain_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -675,9 +675,9 @@ CREATE TABLE `mail_domain` (
-- --------------------------------------------------------
--
--
-- Table structure for table `mail_forwarding`
--
--
CREATE
TABLE
`mail_forwarding`
(
`forwarding_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -698,9 +698,9 @@ CREATE TABLE `mail_forwarding` (
-- --------------------------------------------------------
--
--
-- Table structure for table `mail_get`
--
--
CREATE
TABLE
`mail_get`
(
`mailget_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -764,9 +764,9 @@ CREATE TABLE IF NOT EXISTS `mail_relay_recipient` (
-- --------------------------------------------------------
--
--
-- Table structure for table `mail_traffic`
--
--
CREATE
TABLE
`mail_traffic`
(
`traffic_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -779,9 +779,9 @@ CREATE TABLE `mail_traffic` (
-- --------------------------------------------------------
--
--
-- Table structure for table `mail_transport`
--
--
CREATE
TABLE
`mail_transport`
(
`transport_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -802,9 +802,9 @@ CREATE TABLE `mail_transport` (
-- --------------------------------------------------------
--
--
-- Table structure for table `mail_user`
--
--
CREATE
TABLE
`mail_user`
(
`mailuser_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -848,9 +848,9 @@ CREATE TABLE `mail_user` (
-- --------------------------------------------------------
--
--
-- Table structure for table `mail_user_filter`
--
--
CREATE
TABLE
`mail_user_filter`
(
`filter_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1061,9 +1061,9 @@ CREATE TABLE IF NOT EXISTS `openvz_vm` (
-- --------------------------------------------------------
--
--
-- Table structure for table `remote_session`
--
--
CREATE
TABLE
`remote_session`
(
`remote_session`
varchar
(
64
)
NOT
NULL
,
...
...
@@ -1075,9 +1075,9 @@ CREATE TABLE `remote_session` (
-- --------------------------------------------------------
--
--
-- Table structure for table `remote_user`
--
--
CREATE
TABLE
`remote_user`
(
`remote_userid`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1094,9 +1094,9 @@ CREATE TABLE `remote_user` (
-- --------------------------------------------------------
--
--
-- Table structure for table `server`
--
--
CREATE
TABLE
`server`
(
`server_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1124,9 +1124,9 @@ CREATE TABLE `server` (
-- --------------------------------------------------------
--
--
-- Table structure for table `server_ip`
--
--
CREATE
TABLE
`server_ip`
(
`server_ip_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1200,9 +1200,9 @@ CREATE TABLE `shell_user` (
-- --------------------------------------------------------
--
--
-- Table structure for table `software_package`
--
--
CREATE
TABLE
`software_package`
(
`package_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1223,9 +1223,9 @@ CREATE TABLE `software_package` (
-- --------------------------------------------------------
--
--
-- Table structure for table `software_repo`
--
--
CREATE
TABLE
`software_repo`
(
`software_repo_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1244,9 +1244,9 @@ CREATE TABLE `software_repo` (
-- --------------------------------------------------------
--
--
-- Table structure for table `software_update`
--
--
CREATE
TABLE
`software_update`
(
`software_update_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1266,9 +1266,9 @@ CREATE TABLE `software_update` (
-- --------------------------------------------------------
--
--
-- Table structure for table `software_update_inst`
--
--
CREATE
TABLE
`software_update_inst`
(
`software_update_inst_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1282,9 +1282,9 @@ CREATE TABLE `software_update_inst` (
-- --------------------------------------------------------
--
--
-- Table structure for table `spamfilter_policy`
--
--
CREATE
TABLE
`spamfilter_policy`
(
`id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1335,9 +1335,9 @@ CREATE TABLE `spamfilter_policy` (
-- --------------------------------------------------------
--
--
-- Table structure for table `spamfilter_users`
--
--
CREATE
TABLE
`spamfilter_users`
(
`id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1358,9 +1358,9 @@ CREATE TABLE `spamfilter_users` (
-- --------------------------------------------------------
--
--
-- Table structure for table `spamfilter_wblist`
--
--
CREATE
TABLE
`spamfilter_wblist`
(
`wblist_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1380,9 +1380,9 @@ CREATE TABLE `spamfilter_wblist` (
-- --------------------------------------------------------
--
--
-- Table structure for table `support_message`
--
--
CREATE
TABLE
`support_message`
(
`support_message_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1414,9 +1414,9 @@ CREATE TABLE `sys_config` (
-- --------------------------------------------------------
--
--
-- Table structure for table `sys_datalog`
--
--
CREATE
TABLE
`sys_datalog`
(
`datalog_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1434,9 +1434,9 @@ CREATE TABLE `sys_datalog` (
-- --------------------------------------------------------
--
--
-- Table structure for table `sys_dbsync`
--
--
CREATE
TABLE
`sys_dbsync`
(
`id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1458,9 +1458,9 @@ CREATE TABLE `sys_dbsync` (
-- --------------------------------------------------------
--
--
-- Table structure for table `sys_filesync`
--
--
CREATE
TABLE
`sys_filesync`
(
`id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1478,9 +1478,9 @@ CREATE TABLE `sys_filesync` (
-- --------------------------------------------------------
--
--
-- Table structure for table `sys_group`
--
--
CREATE
TABLE
`sys_group`
(
`groupid`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1492,9 +1492,9 @@ CREATE TABLE `sys_group` (
-- --------------------------------------------------------
--
--
-- Table structure for table `sys_ini`
--
--
CREATE
TABLE
`sys_ini`
(
`sysini_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1504,9 +1504,9 @@ CREATE TABLE `sys_ini` (
-- --------------------------------------------------------
--
--
-- Table structure for table `sys_log`
--
--
CREATE
TABLE
`sys_log`
(
`syslog_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1572,9 +1572,9 @@ CREATE TABLE IF NOT EXISTS `sys_theme` (
-- --------------------------------------------------------
--
--
-- Table structure for table `sys_user`
--
--
CREATE
TABLE
`sys_user`
(
`userid`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -1595,7 +1595,7 @@ CREATE TABLE `sys_user` (
`default_group`
int
(
11
)
unsigned
NOT
NULL
default
'0'
,
`client_id`
int
(
11
)
unsigned
NOT
NULL
default
'0'
,
`id_rsa`
VARCHAR
(
2000
)
NOT
NULL
default
''
,
`ssh_rsa`
VARCHAR
(
600
)
NOT
NULL
default
''
,
`ssh_rsa`
VARCHAR
(
600
)
NOT
NULL
default
''
,
PRIMARY
KEY
(
`userid`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
AUTO_INCREMENT
=
1
;
...
...
@@ -1632,14 +1632,14 @@ CREATE TABLE `web_backup` (
`backup_id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`server_id`
int
(
10
)
unsigned
NOT
NULL
,
`parent_domain_id`
int
(
10
)
unsigned
NOT
NULL
,
`backup_type`
enum
(
'web'
,
'mysql'
)
NOT
NULL
DEFAULT
'web'
,
`backup_type`
enum
(
'web'
,
'
mongodb'
,
'
mysql'
)
NOT
NULL
DEFAULT
'web'
,
`backup_mode`
varchar
(
64
)
NOT
NULL
DEFAULT
''
,
`tstamp`
int
(
10
)
unsigned
NOT
NULL
,
`filename`
varchar
(
255
)
NOT
NULL
,
`filesize`
VARCHAR
(
10
)
NOT
NULL
,
PRIMARY
KEY
(
`backup_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
AUTO_INCREMENT
=
1
;
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
AUTO_INCREMENT
=
1
;
-- --------------------------------------------------------
--
...
...
@@ -1688,14 +1688,15 @@ CREATE TABLE IF NOT EXISTS `web_database_user` (
`database_user`
varchar
(
64
)
DEFAULT
NULL
,
`database_user_prefix`
varchar
(
50
)
NOT
NULL
default
''
,
`database_password`
varchar
(
64
)
DEFAULT
NULL
,
`database_password_mongo`
varchar
(
32
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`database_user_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
AUTO_INCREMENT
=
1
;
-- --------------------------------------------------------
--
--
-- Table structure for table `web_domain`
--
--
CREATE
TABLE
`web_domain`
(
`domain_id`
int
(
11
)
unsigned
NOT
NULL
auto_increment
,
...
...
@@ -2095,41 +2096,41 @@ INSERT INTO `country` (`iso`, `name`, `printable_name`, `iso3`, `numcode`) VALUE
-- --------------------------------------------------------
--
--
-- Dumping data for table `dns_template`
--
--
INSERT
INTO
`dns_template`
(
`template_id`
,
`sys_userid`
,
`sys_groupid`
,
`sys_perm_user`
,
`sys_perm_group`
,
`sys_perm_other`
,
`name`
,
`fields`
,
`template`
,
`visible`
)
VALUES
(
1
,
1
,
1
,
'riud'
,
'riud'
,
''
,
'Default'
,
'DOMAIN,IP,NS1,NS2,EMAIL'
,
'[ZONE]
\n
origin={DOMAIN}.
\n
ns={NS1}.
\n
mbox={EMAIL}.
\n
refresh=7200
\n
retry=540
\n
expire=604800
\n
minimum=86400
\n
ttl=3600
\n\n
[DNS_RECORDS]
\n
A|{DOMAIN}.|{IP}|0|3600
\n
A|www|{IP}|0|3600
\n
A|mail|{IP}|0|3600
\n
NS|{DOMAIN}.|{NS1}.|0|3600
\n
NS|{DOMAIN}.|{NS2}.|0|3600
\n
MX|{DOMAIN}.|mail.{DOMAIN}.|10|3600'
,
'y'
);
-- --------------------------------------------------------
--
--
-- Dumping data for table `help_faq`
--
--
INSERT
INTO
`help_faq`
VALUES
(
1
,
1
,
0
,
'I would like to know ...'
,
'Yes, of course.'
,
1
,
1
,
'riud'
,
'riud'
,
'r'
);
-- --------------------------------------------------------
--
--
-- Dumping data for table `help_faq_sections`
--
--
INSERT
INTO
`help_faq_sections`
VALUES
(
1
,
'General'
,
0
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
-- --------------------------------------------------------
--
--
-- Dumping data for table `software_repo`
--
--
INSERT
INTO
`software_repo`
(
`software_repo_id`
,
`sys_userid`
,
`sys_groupid`
,
`sys_perm_user`
,
`sys_perm_group`
,
`sys_perm_other`
,
`repo_name`
,
`repo_url`
,
`repo_username`
,
`repo_password`
,
`active`
)
VALUES
(
1
,
1
,
1
,
'riud'
,
'riud'
,
''
,
'ISPConfig Addons'
,
'http://repo.ispconfig.org/addons/'
,
''
,
''
,
'n'
);
-- --------------------------------------------------------
--
--
-- Dumping data for table `spamfilter_policy`
--
--
INSERT
INTO
`spamfilter_policy`
(
`id`
,
`sys_userid`
,
`sys_groupid`
,
`sys_perm_user`
,
`sys_perm_group`
,
`sys_perm_other`
,
`policy_name`
,
`virus_lover`
,
`spam_lover`
,
`banned_files_lover`
,
`bad_header_lover`
,
`bypass_virus_checks`
,
`bypass_spam_checks`
,
`bypass_banned_checks`
,
`bypass_header_checks`
,
`spam_modifies_subj`
,
`virus_quarantine_to`
,
`spam_quarantine_to`
,
`banned_quarantine_to`
,
`bad_header_quarantine_to`
,
`clean_quarantine_to`
,
`other_quarantine_to`
,
`spam_tag_level`
,
`spam_tag2_level`
,
`spam_kill_level`
,
`spam_dsn_cutoff_level`
,
`spam_quarantine_cutoff_level`
,
`addr_extension_virus`
,
`addr_extension_spam`
,
`addr_extension_banned`
,
`addr_extension_bad_header`
,
`warnvirusrecip`
,
`warnbannedrecip`
,
`warnbadhrecip`
,
`newvirus_admin`
,
`virus_admin`
,
`banned_admin`
,
`bad_header_admin`
,
`spam_admin`
,
`spam_subject_tag`
,
`spam_subject_tag2`
,
`message_size_limit`
,
`banned_rulenames`
)
VALUES
(
1
,
1
,
0
,
'riud'
,
'riud'
,
'r'
,
'Non-paying'
,
'N'
,
'N'
,
'N'
,
'N'
,
'Y'
,
'Y'
,
'Y'
,
'N'
,
'Y'
,
''
,
''
,
''
,
''
,
''
,
''
,
3
,
7
,
10
,
0
,
0
,
''
,
''
,
''
,
''
,
'N'
,
'N'
,
'N'
,
''
,
''
,
''
,
''
,
''
,
''
,
''
,
0
,
''
);
INSERT
INTO
`spamfilter_policy`
(
`id`
,
`sys_userid`
,
`sys_groupid`
,
`sys_perm_user`
,
`sys_perm_group`
,
`sys_perm_other`
,
`policy_name`
,
`virus_lover`
,
`spam_lover`
,
`banned_files_lover`
,
`bad_header_lover`
,
`bypass_virus_checks`
,
`bypass_spam_checks`
,
`bypass_banned_checks`
,
`bypass_header_checks`
,
`spam_modifies_subj`
,
`virus_quarantine_to`
,
`spam_quarantine_to`
,
`banned_quarantine_to`
,
`bad_header_quarantine_to`
,
`clean_quarantine_to`
,
`other_quarantine_to`
,
`spam_tag_level`
,
`spam_tag2_level`
,
`spam_kill_level`
,
`spam_dsn_cutoff_level`
,
`spam_quarantine_cutoff_level`
,
`addr_extension_virus`
,
`addr_extension_spam`
,
`addr_extension_banned`
,
`addr_extension_bad_header`
,
`warnvirusrecip`
,
`warnbannedrecip`
,
`warnbadhrecip`
,
`newvirus_admin`
,
`virus_admin`
,
`banned_admin`
,
`bad_header_admin`
,
`spam_admin`
,
`spam_subject_tag`
,
`spam_subject_tag2`
,
`message_size_limit`
,
`banned_rulenames`
)
VALUES
(
2
,
1
,
0
,
'riud'
,
'riud'
,
'r'
,
'Uncensored'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'N'
,
'N'
,
'N'
,
'N'
,
'N'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
3
,
999
,
999
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
...
...
@@ -2141,34 +2142,34 @@ INSERT INTO `spamfilter_policy` (`id`, `sys_userid`, `sys_groupid`, `sys_perm_us
-- --------------------------------------------------------
--
--
-- Dumping data for table `sys_group`
--
--
INSERT
INTO
`sys_group`
(
`groupid`
,
`name`
,
`description`
,
`client_id`
)
VALUES
(
1
,
'admin'
,
'Administrators group'
,
0
);
-- --------------------------------------------------------
--
--
-- Dumping data for table `sys_ini`
--
--
INSERT
INTO
`sys_ini`
(
`sysini_id`
,
`config`
)
VALUES
(
1
,
''
);
-- --------------------------------------------------------
--
--
-- Dumping data for table `sys_user`
--
--
INSERT
INTO
`sys_theme`
(
`var_id`
,
`tpl_name`
,
`username`
,
`logo_url`
)
VALUES
(
NULL
,
'default'
,
'global'
,
'themes/default/images/header_logo.png'
);
INSERT
INTO
`sys_theme`
(
`var_id`
,
`tpl_name`
,
`username`
,
`logo_url`
)
VALUES
(
NULL
,
'default-v2'
,
'global'
,
'themes/default-v2/images/header_logo.png'
);
-- --------------------------------------------------------
--
--
-- Dumping data for table `sys_user`
--
--
INSERT
INTO
`sys_user`
(
`userid`
,
`sys_userid`
,
`sys_groupid`
,
`sys_perm_user`
,
`sys_perm_group`
,
`sys_perm_other`
,
`username`
,
`passwort`
,
`modules`
,
`startmodule`
,
`app_theme`
,
`typ`
,
`active`
,
`language`
,
`groups`
,
`default_group`
,
`client_id`
)
VALUES
(
1
,
1
,
0
,
'riud'
,
'riud'
,
''
,
'admin'
,
'21232f297a57a5a743894a0e4a801fc3'
,
'dashboard,admin,client,mail,monitor,sites,dns,vm,tools,help'
,
'dashboard'
,
'default'
,
'admin'
,
1
,
'en'
,
'1,2'
,
1
,
0
);
...
...
@@ -2179,5 +2180,5 @@ INSERT INTO `sys_user` (`userid`, `sys_userid`, `sys_groupid`, `sys_perm_user`,
--
INSERT
INTO
sys_config
VALUES
(
'1'
,
'db'
,
'db_version'
,
'3.0.5.2'
);
SET
FOREIGN_KEY_CHECKS
=
1
;
interface/lib/classes/tform.inc.php
View file @
2332b227
This diff is collapsed.
Click to expand it.
interface/lib/classes/tools_monitor.inc.php
View file @
2332b227
...
...
@@ -453,6 +453,40 @@ class tools_monitor {
return
$html
;
}
function
showMongoDB
()
{
global
$app
;
/* fetch the Data from the DB */
$record
=
$app
->
db
->
queryOneRecord
(
"SELECT data, state FROM monitor_data WHERE type = 'log_mongodb' and server_id = "
.
$_SESSION
[
'monitor'
][
'server_id'
]
.
" order by created desc"
);
if
(
isset
(
$record
[
'data'
]))
{
$html
=
'<div class="systemmonitor-state state-'
.
$record
[
'state'
]
.
'">
<div class="systemmonitor-content icons32 ico-'
.
$record
[
'state'
]
.
'">'
;
/*
* First, we have to detect, if there is any monitoring-data.
* If not (because mongodb is not installed) show this.
*/
$data
=
unserialize
(
$record
[
'data'
]);
if
(
$data
==
''
)
{
$html
.
=
'<p>'
.
'MongoDB is not installed at this server.<br />'
.
'See more (for debian) <a href="http://www.howtoforge.com/fail2ban_debian_etch" target="htf">here...</a>'
.
'</p>'
;
}
else
{
$html
.
=
nl2br
(