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
ISPConfig
ISPConfig 3
Commits
4585cf2c
Commit
4585cf2c
authored
Jan 08, 2008
by
tbrehm
Browse files
Enhanced update script, mail plugin.
Updated ToDo item list.
parent
94a020dd
Changes
4
Hide whitespace changes
Inline
Side-by-side
TODO.txt
View file @
4585cf2c
...
...
@@ -10,6 +10,8 @@ remove done tasks or assign yourself to a task.
Installer
--------------------------------------
- Load and update system config from file into sql database during installation.
Server
--------------------------------------
...
...
@@ -55,7 +57,9 @@ Sites (web) module
this as a new tab named "SSL" to the exiting domain settings form.
- Add a "httpd includes" field to the options tab of the domain settings form
like it is implemented in ISPConfig 2.
like it is implemented in ISPConfig 2.
- Make sure that changes in the domain name do not break the configuration.
BE-Designer module
...
...
@@ -65,6 +69,19 @@ WARNING: Please do not use the BE Designer at the moment, the serializing functi
of the module editor may break some of the existing modules.
Remoting framework
--------------------------------------
Interface
--------------------------------------
- Enhance the list function to allow soorting by column
- Enhance the paging in lists (e.g. like this: [1 2 3 4 ... 10])
General tasks
--------------------------------------
...
...
install/lib/installer_base.lib.php
View file @
4585cf2c
...
...
@@ -623,7 +623,7 @@ class installer_base {
if
(
$dh
=
opendir
(
$dir
))
{
while
((
$file
=
readdir
(
$dh
))
!==
false
)
{
if
(
$file
!=
'.'
&&
$file
!=
'..'
)
{
symlink
(
$install_dir
.
'/server/plugins-available/'
.
$file
,
$install_dir
.
'/server/plugins-enabled/'
.
$file
);
if
(
!
is_link
(
$install_dir
.
'/server/plugins-enabled/'
.
$file
))
symlink
(
$install_dir
.
'/server/plugins-available/'
.
$file
,
$install_dir
.
'/server/plugins-enabled/'
.
$file
);
}
}
closedir
(
$dh
);
...
...
install/update.php
View file @
4585cf2c
...
...
@@ -30,6 +30,18 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//** ISPConfig 3 installer.
//** The banner on the command line
echo
"
\n\n
"
.
str_repeat
(
'-'
,
80
)
.
"
\n
"
;
echo
" _____ ___________ _____ __ _
|_ _/ ___| ___ \ / __ \ / _(_)
| | \ `--.| |_/ / | / \/ ___ _ __ | |_ _ __ _
| | `--. \ __/ | | / _ \| '_ \| _| |/ _` |
_| |_/\__/ / | | \__/\ (_) | | | | | | | (_| |
\___/\____/\_| \____/\___/|_| |_|_| |_|\__, |
__/ |
|___/ "
;
echo
"
\n
"
.
str_repeat
(
'-'
,
80
)
.
"
\n
"
;
echo
"
\n\n
>> Update
\n\n
"
;
//** Include the library with the basic installer functions
...
...
server/plugins-available/mail_plugin.inc.php
View file @
4585cf2c
...
...
@@ -45,10 +45,15 @@ class mail_plugin {
Register for the events
*/
//* Mailboxes
$app
->
plugins
->
registerEvent
(
'mail_user_insert'
,
$this
->
plugin_name
,
'user_insert'
);
$app
->
plugins
->
registerEvent
(
'mail_user_update'
,
$this
->
plugin_name
,
'user_update'
);
$app
->
plugins
->
registerEvent
(
'mail_user_delete'
,
$this
->
plugin_name
,
'user_delete'
);
//* Mail Domains
//$app->plugins->registerEvent('mail_domain_insert',$this->plugin_name,'domain_insert');
//$app->plugins->registerEvent('mail_domain_update',$this->plugin_name,'domain_update');
//$app->plugins->registerEvent('mail_domain_delete',$this->plugin_name,'domain_delete');
}
...
...
@@ -62,7 +67,6 @@ class mail_plugin {
exec
(
'chown '
.
$mail_config
[
'mailuser_name'
]
.
':'
.
$mail_config
[
'mailuser_group'
]
.
' '
.
escapeshellcmd
(
$data
[
'new'
][
'maildir'
]));
$app
->
log
(
'Created Maildir: '
.
$data
[
'new'
][
'maildir'
],
LOGLEVEL_DEBUG
);
}
}
function
user_update
(
$event_name
,
$data
)
{
...
...
@@ -86,7 +90,6 @@ class mail_plugin {
rmdir
(
$data
[
'old'
][
'maildir'
]);
$app
->
log
(
'Moved Maildir from: '
.
$data
[
'old'
][
'maildir'
]
.
' to '
.
$data
[
'new'
][
'maildir'
],
LOGLEVEL_DEBUG
);
}
}
function
user_delete
(
$event_name
,
$data
)
{
...
...
@@ -99,7 +102,6 @@ class mail_plugin {
}
else
{
$app
->
log
(
'Possible security violation when deleting the maildir: '
.
$data
[
'old'
][
'maildir'
],
LOGLEVEL_ERROR
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment