Changeset 1025

Show
Ignore:
Timestamp:
02/26/08 23:16:05 (6 months ago)
Author:
rats
Message:

* Fixed #480: creating a folder as subfolder "[none]" doesn't work
* Fixed #939: Installation Error on Ubuntu Dapper 6.06.1 LTS
* Fixed #1069: Permission script engine/setup/set-engine-permissions.sh

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r1024 r1025  
    22~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    33 
     42008-02-26 Benedikt Heintel 
     5        - SETUP: 
     6                * Fixed #939: Installation Error on Ubuntu Dapper 6.06.1 LTS 
     7                * Fixed #1069: Permission script engine/setup/set-engine-permissions.sh dont work if vu2000 has changed 
     8        - TOOLS: 
     9                * Fixed #480: creating a folder as subfolder "[none]" doesn't work 
    410 
    5112008-02-26 Jochen Manz 
    6         - Setup
    7                 * Corrected the DATABASE_REVISION entry which is inserted when installing ispcp 
     12       - SETUP
     13               * Corrected the DATABASE_REVISION entry which is inserted when installing ispcp 
    814 
    9152008-02-26 Christian Hernmarck 
     
    2026                * Fixed #1052: postmaster email not created 
    2127 
     282008-02-25 Benedikt Heintel 
     29        - CONFIGS: 
     30                * Fixed #994: open_basedir settings: mod-php != php-fastcgi 
     31        - SETUP: 
     32                * Fixed #792: (ubuntu) errors in make 
     33 
    22342008-02-25 Christian Hernmarck 
    2335        - GUI: 
     36                * Fixed #747: use of unused field mail_addr in table mail_users 
     37                * Fixed #1047: alias emails not deleted 
    2438                * Fixed #1068: Patch to fix icon position in WebFTP 
    25                 * Fixed #1047: alias emails not deleted 
    26                 * Fixed  #747: use of unused field mail_addr in table mail_users 
    2739                * Some smaller fixes (FTP_SHELL->CMD_SHELL, TR_MENU... missing string) 
    2840 
    29412008-02-25 Jochen Manz 
    3042        - GUI: 
    31                 * Corrected some small issues and increased the speed of the db update 
     43               * Corrected some small issues and increased the speed of the db update 
    3244 
    33452008-02-24 Christian Hernmarck 
    3446        - GUI: 
    3547                * Some small fixes: domain_statistics & some "remove this" messages 
     48        - TOOLS: 
     49                * Fixed #871: Small CSS error in Webmail 
    3650 
    37512008-02-24 Benedikt Heintel 
     
    4862 
    49632008-02-24 Jochen Manz 
    50         - TOOLS
    51                 * Fixed #871: Small CSS error in Webmail 
     64        - GUI
     65                * Added: Database update function 
    5266 
    53672008-02-23 Benedikt Heintel 
     
    6579        - TOOLS: 
    6680                * Updated ADOdb to version 4.98 
    67  
    6881 
    69822008-02-21 Benedikt Heintel 
     
    27572770                  ( and including template tags) 
    27582771 
    2759 2006-10-20 Malte 
     27722006-10-20 Malte Geierhos 
    27602773        - Recycled old VHCS-Code to be a base for our new hosting panel! 
  • trunk/configs/apache/00_master.conf

    r850 r1025  
    5353    <IfModule mod_php4.c> 
    5454        <Directory {ROOT_DIR}/gui> 
    55             php_admin_value open_basedir "{ROOT_DIR}/gui/:/etc/ispcp/:/proc/:{APACHE_WWW_DIR}/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
     55            php_admin_value open_basedir "{WWW_DIR}/{DMN_NAME}/:{CONF_DIR}/:{MR_LOCK_FILE}:/proc/:/bin/df:/bin/mount:{RKHUNTER_LOG}:{CHKROOTKIT_LOG}:{PEAR_DIR}/{OTHER_ROOTKIT_LOG}
    5656            php_admin_value session.save_path "{ROOT_DIR}/gui/phptmp/" 
    5757        </Directory> 
     
    5959    <IfModule mod_php5.c> 
    6060        <Directory {ROOT_DIR}/gui> 
    61             php_admin_value open_basedir "{ROOT_DIR}/gui/:/etc/ispcp/:/proc/:{APACHE_WWW_DIR}/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
     61            php_admin_value open_basedir "{WWW_DIR}/{DMN_NAME}/:{CONF_DIR}/:{MR_LOCK_FILE}:/proc/:/bin/df:/bin/mount:{RKHUNTER_LOG}:{CHKROOTKIT_LOG}:{PEAR_DIR}/{OTHER_ROOTKIT_LOG}
    6262            php_admin_value session.save_path "{ROOT_DIR}/gui/phptmp/" 
    6363        </Directory> 
  • trunk/configs/dists/ubuntu/postfix/mta-cfg-setup.sh

    r1016 r1025  
    11#!/bin/sh 
     2 
     3# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     4# Copyright (c) 2001-2006 by moleSoftware GmbH 
     5# http://www.molesoftware.com 
     6# Copyright (c) 2006-2007 by isp Control Panel 
     7# http://isp-control.net 
     8# 
     9# 
     10# License: 
     11#    This program is free software; you can redistribute it and/or 
     12#    modify it under the terms of the MPL Mozilla Public License 
     13#    as published by the Free Software Foundation; either version 1.1 
     14#    of the License, or (at your option) any later version. 
     15# 
     16#    This program is distributed in the hope that it will be useful, 
     17#    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     18#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     19#    MPL Mozilla Public License for more details. 
     20# 
     21#    You may have received a copy of the MPL Mozilla Public License 
     22#    along with this program. 
     23# 
     24#    An on-line copy of the MPL Mozilla Public License can be found 
     25#    http://www.mozilla.org/MPL/MPL-1.1.html 
     26# 
     27# 
     28# The ispCP ω Home Page is at: 
     29# 
     30#    http://isp-control.net 
     31# 
    232 
    333MTA_CONF_DIR=/etc/postfix 
     
    2353${CMD_MKDIR} -p ${MTA_SYSTEM_CONF_DIR} 
    2454 
    25 ${CMD_CP} ./working/{aliases,domains,mailboxes,transport} ${MTA_SYSTEM_CONF_DIR} 
     55${CMD_CP} ./working/aliases ${MTA_SYSTEM_CONF_DIR} 
     56${CMD_CP} ./working/domains ${MTA_SYSTEM_CONF_DIR} 
     57${CMD_CP} ./working/mailboxes ${MTA_SYSTEM_CONF_DIR} 
     58${CMD_CP} ./working/sender-access ${MTA_SYSTEM_CONF_DIR} 
     59${CMD_CP} ./working/transport ${MTA_SYSTEM_CONF_DIR} 
    2660 
    27 ${CMD_POSTMAP} ${MTA_SYSTEM_CONF_DIR}/{aliases,domains,mailboxes,transport} 
     61${CMD_POSTMAP} ${MTA_SYSTEM_CONF_DIR}/aliases 
     62${CMD_POSTMAP} ${MTA_SYSTEM_CONF_DIR}/domains 
     63${CMD_POSTMAP} ${MTA_SYSTEM_CONF_DIR}/mailboxes 
     64${CMD_POSTMAP} ${MTA_SYSTEM_CONF_DIR}/sender-access 
     65${CMD_POSTMAP} ${MTA_SYSTEM_CONF_DIR}/transport 
    2866 
    2967${CMD_NEWALIASES} 
  • trunk/configs/postfix/mta-cfg-setup.sh

    r473 r1025  
    11#!/bin/bash 
     2 
     3# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     4# Copyright (c) 2001-2006 by moleSoftware GmbH 
     5# http://www.molesoftware.com 
     6# Copyright (c) 2006-2007 by isp Control Panel 
     7# http://isp-control.net 
     8# 
     9# 
     10# License: 
     11#    This program is free software; you can redistribute it and/or 
     12#    modify it under the terms of the MPL Mozilla Public License 
     13#    as published by the Free Software Foundation; either version 1.1 
     14#    of the License, or (at your option) any later version. 
     15# 
     16#    This program is distributed in the hope that it will be useful, 
     17#    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     18#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     19#    MPL Mozilla Public License for more details. 
     20# 
     21#    You may have received a copy of the MPL Mozilla Public License 
     22#    along with this program. 
     23# 
     24#    An on-line copy of the MPL Mozilla Public License can be found 
     25#    http://www.mozilla.org/MPL/MPL-1.1.html 
     26# 
     27# 
     28# The ispCP ω Home Page is at: 
     29# 
     30#    http://isp-control.net 
     31# 
    232 
    333MTA_CONF_DIR=/etc/postfix 
    434 
    535MTA_SYSTEM_CONF_DIR=/etc/postfix/ispcp 
    6  
    736 
    837 
     
    1645 
    1746 
    18  
    1947${CMD_CP} ./main.cf ${MTA_CONF_DIR} 
    2048 
     
    2351${CMD_MKDIR} -p ${MTA_SYSTEM_CONF_DIR} 
    2452 
    25 ${CMD_CP} ./working/{aliases,domains,mailboxes,transport} ${MTA_SYSTEM_CONF_DIR} 
     53${CMD_CP} ./working/aliases ${MTA_SYSTEM_CONF_DIR} 
     54${CMD_CP} ./working/domains ${MTA_SYSTEM_CONF_DIR} 
     55${CMD_CP} ./working/mailboxes ${MTA_SYSTEM_CONF_DIR} 
     56${CMD_CP} ./working/sender-access ${MTA_SYSTEM_CONF_DIR} 
     57${CMD_CP} ./working/transport ${MTA_SYSTEM_CONF_DIR} 
    2658 
    27 ${CMD_POSTMAP} ${MTA_SYSTEM_CONF_DIR}/{aliases,domains,mailboxes,transport} 
     59${CMD_POSTMAP} ${MTA_SYSTEM_CONF_DIR}/aliases 
     60${CMD_POSTMAP} ${MTA_SYSTEM_CONF_DIR}/domains 
     61${CMD_POSTMAP} ${MTA_SYSTEM_CONF_DIR}/mailboxes 
     62${CMD_POSTMAP} ${MTA_SYSTEM_CONF_DIR}/sender-access 
     63${CMD_POSTMAP} ${MTA_SYSTEM_CONF_DIR}/transport 
    2864 
    2965${CMD_NEWALIASES} 
    30  
  • trunk/engine/BSDmakefile

    r1009 r1025  
     1# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     2# Copyright (c) 2001-2006 by moleSoftware GmbH 
     3# http://www.molesoftware.com 
     4# Copyright (c) 2006-2008 by isp Control Panel 
     5# http://isp-control.net 
     6# 
     7# 
     8# License: 
     9#    This program is free software; you can redistribute it and/or 
     10#    modify it under the terms of the MPL Mozilla Public License 
     11#    as published by the Free Software Foundation; either version 1.1 
     12#    of the License, or (at your option) any later version. 
     13# 
     14#    This program is distributed in the hope that it will be useful, 
     15#    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17#    MPL Mozilla Public License for more details. 
     18# 
     19#    You may have received a copy of the MPL Mozilla Public License 
     20#    along with this program. 
     21# 
     22#    An on-line copy of the MPL Mozilla Public License can be found 
     23#    http://www.mozilla.org/MPL/MPL-1.1.html 
     24# 
     25# 
     26# The ISPCP ω Home Page is at: 
     27# 
     28#    http://isp-control.net 
     29# 
     30 
    131.ifdef $(OSTYPE)==FreeBSD 
    232.include <../Makefile.fbsd> 
  • trunk/engine/messager/ispcp-arpl-msgr

    r1013 r1025  
    261261    } else { 
    262262 
    263         push_el(\@main::el, 'doSQL()', 'ERROR: Incrrect SQL Query -> '.$main::db -> errstr); 
     263        push_el(\@main::el, 'doSQL()', 'ERROR: Incorrect SQL Query -> '.$main::db -> errstr); 
    264264 
    265265        return (-1, ''); 
     
    768768                        if ($pt == 1) { 
    769769 
    770                                                $sql = "select mail_auto_respond from mail_users LEFT JOIN domain ON mail_users.domain_id=domain.domain_id where mail_acc = '$user' and domain_name = '$edmn' and sub_id=0;"; 
    771  
    772                        
     770                        $sql = "select mail_auto_respond from mail_users LEFT JOIN domain ON mail_users.domain_id=domain.domain_id where mail_acc = '$user' and domain_name = '$edmn' and sub_id=0;"; 
     771 
     772                   
    773773                        elsif ($pt == 2) { 
    774774 
    775                                                $sql = "select mail_auto_respond from mail_users LEFT JOIN domain_aliasses ON mail_users.sub_id=domain_aliasses.alias_id where mail_acc = '$user' and alias_name = '$edmn';"; 
     775                                $sql = "select mail_auto_respond from mail_users LEFT JOIN domain_aliasses ON mail_users.sub_id=domain_aliasses.alias_id where mail_acc = '$user' and alias_name = '$edmn';"; 
    776776 
    777777                } 
     
    779779                       elsif ($pt == 3) { 
    780780 
    781                                                $sql = "select mail_auto_respond from mail_users LEFT JOIN subdomain ON mail_users.sub_id=subdomain.subdomain_id LEFT JOIN domain ON subdomain.domain_id=domain.domain_id where mail_acc = '$user' and (CONCAT(subdomain_name,'.',domain_name) = '$edmn');"; 
     781                                        $sql = "select mail_auto_respond from mail_users LEFT JOIN subdomain ON mail_users.sub_id=subdomain.subdomain_id LEFT JOIN domain ON subdomain.domain_id=domain.domain_id where mail_acc = '$user' and (CONCAT(subdomain_name,'.',domain_name) = '$edmn');"; 
    782782 
    783783                       } 
  • trunk/engine/setup/ispcp-setup-methods.pl

    r1012 r1025  
    16481648        # 
    16491649 
    1650         $rs = store_file("$main::cfg{'TRAFF_LOG_DIR'}/$main::cfg{'FTP_TRAFF_LOG'}", "\n", 'root', 'root', 0644); 
     1650        $rs = store_file("$main::cfg{'TRAFF_LOG_DIR'}$main::cfg{'FTP_TRAFF_LOG'}", "\n", 'root', 'root', 0644); 
    16511651        return $rs if ($rs != 0); 
    16521652 
  • trunk/engine/setup/set-engine-permissions.sh

    r1016 r1025  
    44# Copyright (c) 2001-2006 by moleSoftware GmbH 
    55# http://www.molesoftware.com 
    6 # Copyright (c) 2006-2007 by isp Control Panel 
     6# Copyright (c) 2006-2008 by isp Control Panel 
    77# http://isp-control.net 
    88# 
     
    3535 
    3636# read needed entries from ispcp.conf 
    37 for a in `cat /etc/ispcp/ispcp.conf | grep -E '(ROOT_DIR|MTA_MAILBOX_|^LOG_DIR)' | sed -e 's/ //g'`; do 
     37for a in `cat /etc/ispcp/ispcp.conf | grep -E '(APACHE_|ROOT_DIR|MTA_MAILBOX_|^LOG_DIR)' | sed -e 's/ //g'`; do 
    3838    export $a 
    3939done 
     
    4343# 
    4444 
    45 echo -n "    Setting Engine Permissions: "; 
     45echo -n "\tSetting Engine Permissions: "; 
    4646 
    4747if [ $DEBUG -eq 1 ]; then 
     
    5151# Fix ispcp.conf perms 
    5252if [ $DEBUG -eq 1 ]; then 
    53     echo -e "\tug+r,u+w,o-r root:vu2000 /etc/ispcp/ispcp.conf"; 
     53    echo -e "\tug+r,u+w,o-r root:$APACHE_SUEXEC_USER_PREF$APACHE_SUEXEC_MIN_UID /etc/ispcp/ispcp.conf"; 
    5454else 
    5555    echo -n "."; 
     
    5757 
    5858#chmod ug+r,u+w,o-r /etc/ispcp/ispcp.conf 
    59 chown root:vu2000 /etc/ispcp/ispcp.conf 
     59chown root:$APACHE_SUEXEC_USER_PREF$APACHE_SUEXEC_MIN_UID /etc/ispcp/ispcp.conf 
    6060 
    6161for i in `find $ROOT_DIR/engine/`; do 
  • trunk/engine/setup/set-gui-permissions.sh

    r845 r1025  
    44# Copyright (c) 2001-2006 by moleSoftware GmbH 
    55# http://www.molesoftware.com 
    6 # Copyright (c) 2006-2007 by isp Control Panel 
     6# Copyright (c) 2006-2008 by isp Control Panel 
    77# http://isp-control.net 
    88# 
     
    4242echo ""; 
    4343echo ""; 
    44 echo -n "   Setting GUI Permissions: "; 
     44echo -n "\tSetting GUI Permissions: "; 
    4545 
    4646if [ $DEBUG -eq 1 ]; then 
  • trunk/gui/tools/webmail/config/config_local.php

    r821 r1025  
    1515 */ 
    1616 
     17/** 
     18 * Possible IMAP servers are: 
     19 * bincimap 
     20 * courier 
     21 * cyrus 
     22 * dovecot 
     23 * exchange 
     24 * hmailserver 
     25 * macosx 
     26 * mercury32 
     27 * uw 
     28 * 
     29 * others (for default) 
     30 */ 
     31 
     32$imap_server_type = "courier"; 
     33 
     34 
     35/** 
     36 * 'cyrus' settings 
     37 */ 
     38if ($imap_server_type == "cyrus") { 
     39        $default_folder_prefix                  = ""; 
     40        $trash_folder                                   = "INBOX.Trash"; 
     41        $sent_folder                                    = "INBOX.Sent"; 
     42        $draft_folder                                   = "INBOX.Drafts"; 
     43        $show_prefix_option                     = false; 
     44        $default_sub_of_inbox                   = true; 
     45        $show_contain_subfolders_option = false; 
     46        $optional_delimiter                     = "."; 
     47        $delete_folder                                  = true; 
     48        $force_username_lowercase               = false; 
     49} 
     50/** 
     51 * 'courier' settings 
     52 */ 
     53else if ($imap_server_type == "courier") { 
     54        $default_folder_prefix                  = "INBOX."; 
     55        $trash_folder                                   = "Trash"; 
     56        $sent_folder                                    = "Sent"; 
     57        $draft_folder                                   = "Drafts"; 
     58        $show_prefix_option                     = false; 
     59        $default_sub_of_inbox                   = false; 
     60        $show_contain_subfolders_option = false; 
     61        $optional_delimiter                     = "."; 
     62        $delete_folder                                  = true; 
     63        $force_username_lowercase               = false; 
     64} 
     65/** 
     66 * 'dovecot' settings 
     67 */ 
     68else if ($imap_server_type == "dovecot") { 
     69        $default_folder_prefix                  = ""; 
     70        $trash_folder                                   = "Trash"; 
     71        $sent_folder                                    = "Sent"; 
     72        $draft_folder                                   = "Drafts"; 
     73        $show_prefix_option                     = false; 
     74        $default_sub_of_inbox                   = false; 
     75        $show_contain_subfolders_option = false; 
     76        $optional_delimiter                     = "detect"; 
     77        $delete_folder                                  = false; 
     78        $force_username_lowercase               = true; 
     79} 
  • trunk/tools/daemon/BSDmakefile

    r1015 r1025  
    3333#else 
    3434CFLAGS += -O3 
    35 endif 
    3635#endif 
    3736