Skip to content

Commit 7ee55f6

Browse files
author
latham
committed
Various Fixes. Add missing function for email quota
1 parent 50c6d10 commit 7ee55f6

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed

install/sql/ispconfig3.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,10 +1073,11 @@ CREATE TABLE `sys_user` (
10731073
`typ` varchar(16) NOT NULL default 'user',
10741074
`active` tinyint(1) NOT NULL default '1',
10751075
`language` varchar(2) NOT NULL default 'de',
1076-
`groups` varchar(255) NOT NULL default '',
1076+
`groups` TEXT NOT NULL default '',
10771077
`default_group` int(11) unsigned NOT NULL default '0',
10781078
`client_id` int(11) unsigned NOT NULL default '0',
1079-
1079+
`id_rsa` VARCHAR( 2000 ) NOT NULL default '',
1080+
`ssh_rsa` VARCHAR( 600 ) NOT NULL default '',
10801081
PRIMARY KEY (`userid`)
10811082
) ENGINE=MyISAM AUTO_INCREMENT=1;
10821083

install/tpl/system.ini.master

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[mail]
1010
enable_custom_login=n
1111
mailboxlist_webmail_link=y
12-
webmail_url=
12+
webmail_url=/webmail
1313

1414
[monitor]
1515

@@ -20,7 +20,7 @@ ftpuser_prefix=[CLIENTNAME]
2020
shelluser_prefix=[CLIENTNAME]
2121
webdavuser_prefix=[CLIENTNAME]
2222
dblist_phpmyadmin_link=y
23-
phpmyadmin_url=
23+
phpmyadmin_url=/phpmyadmin
2424
webftp_url=
2525

2626
[tools]

server/mods-available/monitor_core_module.inc.php

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private function _doMonitor() {
8686
/*
8787
* Calls the single Monitoring steps
8888
*/
89-
//* $this->_monitorEmailQuota(); in process
89+
// $this->_monitorEmailQuota();
9090
$this->_monitorHDQuota();
9191
$this->_monitorServer();
9292
$this->_monitorOsVer();
@@ -115,6 +115,31 @@ private function _doMonitor() {
115115
$this->_monitorSysLog();
116116
}
117117

118+
private function _monitorEmailQuota() {
119+
global $app;
120+
121+
/*
122+
* First we get the Monitoring-data from the tools
123+
*/
124+
$res = $this->_tools->monitorEmailQuota();
125+
126+
/*
127+
* Insert the data into the database
128+
*/
129+
$sql = 'INSERT INTO monitor_data (server_id, type, created, data, state) ' .
130+
'VALUES (' .
131+
$res['server_id'] . ', ' .
132+
"'" . $app->dbmaster->quote($res['type']) . "', " .
133+
'UNIX_TIMESTAMP(), ' .
134+
"'" . $app->dbmaster->quote(serialize($res['data'])) . "', " .
135+
"'" . $res['state'] . "'" .
136+
')';
137+
$app->dbmaster->query($sql);
138+
139+
/* The new data is written, now we can delete the old one */
140+
$this->_delOldRecords($res['type'], $res['server_id']);
141+
}
142+
118143
private function _monitorHDQuota() {
119144
global $app;
120145

0 commit comments

Comments
 (0)