Changeset 765

Show
Ignore:
Timestamp:
08/23/07 20:49:54 (16 months ago)
Author:
raphael
Message:

Fixed #586: deleting domain-alias does not work when domain has ftp accounts
Fixed #589: wrong image names
Added comments support to the tr() function
Replaced all ISPCP with ispCP
Fixed #417: Add gender field
Fixed a missing double percent sign
Fixed #594: Blank page on Add Admin
Fixed #588: $rs not always defined
Added missing user_gui_props entry for primary administrator
Added postgrey, AMaViS and spamassassin to the server_ports list
Updated es_ES.po (thanks to Albert Garcia)

Location:
trunk
Files:
19 modified

Legend:

Unmodified
Added
Removed
  • trunk/CHANGELOG

    r764 r765  
    66|               * gui: disable stats-alias in client menu         | 
    77\_________________________________________________________________/ 
     8 
     92007-08-22 Raphael Geissert 
     10    - GUI: 
     11        * Fixed #586: deleting domain-alias does not work when domain has ftp accounts 
     12        * Fixed #589: wrong image names 
     13        * Added comments support to the tr() function 
     14        * Replaced all ISPCP with ispCP 
     15        * Fixed #417: Add gender field 
     16        * Fixed a missing double percent sign 
     17        * Fixed #594: Blank page on Add Admin 
     18    - SETUP: 
     19        * Fixed #588: $rs not always defined 
     20        * Added missing user_gui_props entry for primary administrator 
     21    - CONFIGS: 
     22        * Added postgrey, AMaViS and spamassassin to the server_ports list 
     23    - LANGUAGES: 
     24        * Updated es_ES.po (thanks to Albert Garcia) 
    825 
    9262007-08-21 Raphael Geissert 
  • trunk/configs/database/database.sql

    r747 r765  
    9191),( 
    9292'PORT_IMAP-SSL', '993;tcp;IMAP-SSL;1;0' 
     93),( 
     94'PORT_POSTGREY', '60000;tcp;POSTGREYL;1;1' 
     95),( 
     96'PORT_AMAVIS', '10024;tcp;AMaVis;1;1' 
     97),( 
     98'PORT_SPAMASSASSIN', '783;tcp;SPAMASSASSIN;1;1' 
    9399); 
    94100 
  • trunk/engine/backup/ispcp-backup-all

    r762 r765  
    11#!/usr/bin/perl 
    22 
    3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     3# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
    44# Copyright (c) 2001-2006 by moleSoftware GmbH 
    55# http://www.molesoftware.com 
     
    2626# 
    2727# 
    28 # The ispCP ω Home Page is at: 
     28# The ispCP ω Home Page is at: 
    2929# 
    3030#    http://isp-control.net 
  • trunk/engine/ispcp-als-mngr

    r762 r765  
    11#!/usr/bin/perl 
    22 
    3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     3# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
    44# Copyright (c) 2001-2006 by moleSoftware GmbH 
    55# http://www.molesoftware.com 
     
    2626# 
    2727# 
    28 # The ISPCP ω Home Page is at: 
     28# The ISPCP ω Home Page is at: 
    2929# 
    3030#    http://isp-control.net 
  • trunk/engine/ispcp-htuser-mngr

    r762 r765  
    11#!/usr/bin/perl 
    22 
    3 # ISPCP ω (OMEGA) - Virtual Hosting Control System | Omega Version 
     3# ISPCP ω (OMEGA) - Virtual Hosting Control System | Omega Version 
    44# Copyright (c) 2001-2006 by moleSoftware GmbH 
    55# http://www.molesoftware.com 
     
    2626# 
    2727# 
    28 # The ISPCP ω Home Page is at: 
     28# The ISPCP ω Home Page is at: 
    2929# 
    3030#    http://isp-control.net 
  • trunk/engine/ispcp-mbox-mngr

    r762 r765  
    11#!/usr/bin/perl 
    22 
    3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     3# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
    44# Copyright (c) 2001-2006 by moleSoftware GmbH 
    55# http://www.molesoftware.com 
     
    2626# 
    2727# 
    28 # The ISPCP ω Home Page is at: 
     28# The ISPCP ω Home Page is at: 
    2929# 
    3030#    http://isp-control.net 
  • trunk/engine/ispcp-serv-mngr

    r762 r765  
    11#!/usr/bin/perl 
    22 
    3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     3# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
    44# Copyright (c) 2001-2006 by moleSoftware GmbH 
    55# http://www.molesoftware.com 
     
    2626# 
    2727# 
    28 # The ISPCP ω Home Page is at: 
     28# The ISPCP ω Home Page is at: 
    2929# 
    3030#    http://isp-control.net 
  • trunk/engine/ispcp-sub-mngr

    r762 r765  
    11#!/usr/bin/perl 
    22 
    3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     3# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
    44# Copyright (c) 2001-2006 by moleSoftware GmbH 
    55# http://www.molesoftware.com 
     
    2626# 
    2727# 
    28 # The ISPCP ω Home Page is at: 
     28# The ISPCP ω Home Page is at: 
    2929# 
    3030#    http://isp-control.net 
  • trunk/engine/messager/ispcp-arpl-msgr

    r762 r765  
    11#!/usr/bin/perl 
    22 
    3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     3# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
    44# Copyright (c) 2001-2006 by moleSoftware GmbH 
    55# http://www.molesoftware.com 
     
    2626# 
    2727# 
    28 # The ispCP ω Home Page is at: 
     28# The ispCP ω Home Page is at: 
    2929# 
    3030#    http://isp-control.net 
  • trunk/engine/setup/ispcp-setup

    r751 r765  
    13341334        return $rs if ($rs != 0); 
    13351335 
     1336        $sql = "INSERT INTO user_gui_props (user_id) values (1)"; 
     1337 
     1338        ($rs, $rdata) = doSQL($sql); 
     1339 
     1340        return $rs if ($rs != 0); 
     1341 
    13361342        $sql = "INSERT INTO server_ips VALUES (1, '$main::ua{'eth_ip'}', '$main::ua{'hostname'}', '$main::ua{'hostname'}');"; 
    13371343 
  • trunk/engine/setup/vhcs2ispcp.pl

    r764 r765  
    114114    sys_command("$main::cfg{'CMD_MTA'} restart"); 
    115115    sleep(2); 
    116     sys_command("$main::cfg{'CMD_NAMED'} restart"); 
    117     sleep(2); 
     116    if (-e "$main::cfg{'CMD_NAMED'}") { 
     117        sys_command("$main::cfg{'CMD_NAMED'} restart"); 
     118        sleep(2); 
     119    } 
    118120    sys_command("$main::cfg{'CMD_POP'} restart"); 
    119121    sleep(2); 
     
    208210} 
    209211 
     212my $rs = 0; 
     213 
    210214my $welcome_message = <<MSG; 
    211215 
     
    220224 
    221225print STDOUT $welcome_message; 
     226 
     227# Make sure we are in the right dir 
     228if ( ! -e "./ispcp-setup") { 
     229    print STDOUT "Please first change to the directory where this script is"; 
     230    exit 1; 
     231} 
    222232 
    223233print STDOUT "\tVHCS2 must first be partially removed from the system\n"; 
     
    234244if ( $cont eq 'yes' ) { 
    235245    # Remove unecessary VHCS2 stuff 
    236     my $rs = sys_command_rs("./vhcs2-remover.pl"); 
     246    $rs = sys_command_rs("./vhcs2-remover.pl"); 
    237247    exit_werror(undef, $rs) if ($rs != 0); 
    238248} 
     
    291301install_language(); 
    292302 
    293 if($main::cfg{'DATABASE_NAME'} ne 'ispcp') { 
     303if ($main::cfg{'DATABASE_NAME'} ne 'ispcp') { 
    294304 
    295305    print STDOUT "\nIMPORTANT: you have installed ispCP in a non-default database"; 
    296306    print STDOUT "\n\tThe migration script has converted your old VHCS database"; 
    297307    print STDOUT "\n\tin the new database called 'ispcp'; please rename this database"; 
    298     print STDOUT "\n\twith the one you choose at ispCP install time: $main::cfg{'DATABASE_NAME'}\n"; 
     308    print STDOUT "\n\twith the one you chosen at ispCP install time: $main::cfg{'DATABASE_NAME'}\n"; 
     309    print STDOUT "\nAfter that you should run the requests manager: $main::cfg{'ROOT_DIR'}/engine/ispcp-rqst-mngr\n"; 
    299310 
    300311} else { 
     
    302313    print STDOUT "\nRunning ispCP's requests manager..."; 
    303314 
    304     sys_command("$main::db{'ROOT_DIR'}/engine/ispcp-rqst-mngr"); 
     315    sys_command("$main::cfg{'ROOT_DIR'}/engine/ispcp-rqst-mngr"); 
    305316 
    306317    print STDOUT "done\n"; 
  • trunk/engine/setup/vhcs2ispcp.sql

    r764 r765  
    3838),( 
    3939    'PORT_IMAP-SSL', '993;tcp;IMAP-SSL;1;0' 
     40),( 
     41    'PORT_POSTGREY', '60000;tcp;POSTGREYL;1;1' 
     42),( 
     43    'PORT_AMAVIS', '10024;tcp;AMaVis;1;1' 
     44),( 
     45    'PORT_SPAMASSASSIN', '783;tcp;SPAMASSASSIN;1;1' 
    4046); 
    4147 
     
    8692DROP TABLE IF EXISTS `lang_French`; 
    8793DROP TABLE IF EXISTS `lang_Russian`; 
     94DROP TABLE IF EXISTS `lang_Danish`; 
    8895 
    8996-- Drop useless tables 
  • trunk/engine/traffic/ispcp-srv-traff

    r762 r765  
    11#!/usr/bin/perl 
    22 
    3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     3# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
    44# Copyright (c) 2001-2006 by moleSoftware GmbH 
    55# http://www.molesoftware.com 
     
    2626# 
    2727# 
    28 # The ispCP ω Home Page is at: 
     28# The ispCP ω Home Page is at: 
    2929# 
    3030#    http://isp-control.net 
  • trunk/engine/traffic/ispcp-vrl-traff

    r762 r765  
    11#!/usr/bin/perl 
    22 
    3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     3# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
    44# Copyright (c) 2001-2006 by moleSoftware GmbH 
    55# http://www.molesoftware.com 
     
    2626# 
    2727# 
    28 # The ispCP ω Home Page is at: 
     28# The ispCP ω Home Page is at: 
    2929# 
    3030#    http://isp-control.net 
  • trunk/engine/traffic/ispcp-vrl-traff-SUSE

    r762 r765  
    11#!/usr/bin/perl 
    22 
    3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     3# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
    44# Copyright (c) 2001-2006 by moleSoftware GmbH 
    55# http://www.molesoftware.com 
     
    2626# 
    2727# 
    28 # The ispCP ω Home Page is at: 
     28# The ispCP ω Home Page is at: 
    2929# 
    3030#    http://isp-control.net 
  • trunk/engine/traffic/ispcp-vrl-traff-correction

    r762 r765  
    11#!/usr/bin/perl 
    22 
    3 # ispCP ω (OMEGA) a Virtual Hosting Control Panel 
     3# ispCP ω (OMEGA) a Virtual Hosting Control Panel 
    44# Copyright (c) 2001-2006 by moleSoftware GmbH 
    55# http://www.molesoftware.com 
     
    2626# 
    2727# 
    28 # The ispCP ω Home Page is at: 
     28# The ispCP ω Home Page is at: 
    2929# 
    3030#    http://isp-control.net 
  • trunk/gui/include/i18n.php

    r744 r765  
    4747 *      @access                 public 
    4848 *      @version                2.2 
    49  *  @author                     ISPCP Team, Benedikt Heintel (2007), 2007 Raphael Geissert 
     49 *  @author                     ispCP Team, Benedikt Heintel (2007), 2007 Raphael Geissert 
    5050 * 
    5151 *      @param          $msgid          string to translate 
     
    8181    } 
    8282 
    83     if ($msgid == 'encoding' && $msgstr == $msgid) { 
     83    if ($msgid == 'encoding' && $msgstr == 'encoding') { 
    8484        $msgstr = $encoding; 
     85    } 
     86 
     87    // Detect comments and strip them if $msgid == $msgstr 
     88    // e.g. 
     89    // tr('_: This is just a comment\nReal message to translate here') 
     90    if ($msgid == $msgstr && substr($msgid, 0, 3) == '_: ' && count($l = explode("\n", $msgid)) > 1) { 
     91        unset($l[0]); 
     92        $msgstr = implode("\n", $l); 
    8593    } 
    8694 
     
    111119 *      @access                 public 
    112120 *      @version                1.0 
    113  *  @author                     ISPCP Team, Benedikt Heintel (2007) 
     121 *  @author                     ispCP Team, Benedikt Heintel (2007) 
    114122 * 
    115123 *      @param          $string         string to replace chars 
     
    117125 **/ 
    118126function replace_html($string) { 
    119  
    120127    $pattern = array ( 
    121                         '=&lt;b&gt;=is', 
    122                         '=&lt;/b&gt;=is', 
    123                         '=&lt;i&gt;=is', 
    124                         '=&lt;/i&gt;=is', 
    125                         '=&lt;br&gt;=is' 
     128                        '#&lt;[ ]*b[ ]*&gt;#i', 
     129                        '#&lt;[ ]*/[ ]*b[ ]*&gt;#i', 
     130                        '#&lt;[ ]*i[ ]*&gt;#i', 
     131                        '#&lt;[ ]*/[ ]*i[ ]*&gt;#i', 
     132                        '#&lt;[ ]*br[ ]*(/|)[ ]*&gt;#i' 
    126133                     ); 
    127134 
  • trunk/gui/index.php

    r749 r765  
    6666                                                'THEME_COLOR_PATH' => $cfg['LOGIN_TEMPLATE_PATH'], 
    6767                                                'THEME_CHARSET' => tr('encoding'), 
    68                                                 'TR_TIME' => gettimestr(), 
    69                                                 'TR_DATE' => getdatestr(), 
    7068                                                'TR_MESSAGE' => nl2br($cfg['SERVICEMODE_MESSAGE']), 
    7169                                                'TR_ADMINLOGIN' => tr('Administrator login') 
     
    8179                                                'THEME_COLOR_PATH' => $cfg['LOGIN_TEMPLATE_PATH'], 
    8280                                                'THEME_CHARSET' => tr('encoding'), 
    83                                                 'TR_TIME' => gettimestr(), 
    84                                                 'TR_DATE' => getdatestr(), 
    8581                                                'TR_LOGIN' => tr('Login'), 
    8682                                                'TR_USERNAME' => tr('Username'), 
  • trunk/gui/lostpassword.php

    r743 r765  
    5050                $tpl->define('page', $cfg['LOGIN_TEMPLATE_PATH'].'/lostpassword_message.tpl'); 
    5151                $tpl->assign(array( 
    52                                                         'TR_MAIN_INDEX_PAGE_TITLE' => tr('ISPCP - Virtual Hosting Control System'), 
     52                                                        'TR_MAIN_INDEX_PAGE_TITLE' => tr('ispCP - Virtual Hosting Control System'), 
    5353                                                        'THEME_COLOR_PATH' => "themes/$theme_color", 
    54                                                         'THEME_CHARSET' => tr('encoding'), 
    55                                                         'TR_TIME' => gettimestr(), 
    56                                                         'TR_DATE' => getdatestr() 
     54                                                        'THEME_CHARSET' => tr('encoding') 
    5755                                                        ) 
    5856                                                ); 
     
    9391                $tpl -> define('page', $cfg['LOGIN_TEMPLATE_PATH'].'/lostpassword_message.tpl'); 
    9492                $tpl -> assign(array( 
    95                                                         'TR_MAIN_INDEX_PAGE_TITLE' => tr('ISPCP - Virtual Hosting Control System'), 
     93                                                        'TR_MAIN_INDEX_PAGE_TITLE' => tr('ispCP - Virtual Hosting Control System'), 
    9694                                                        'THEME_COLOR_PATH' => "themes/$theme_color", 
    97                                                         'THEME_CHARSET' => tr('encoding'), 
    98                                                         'TR_TIME' => gettimestr(), 
    99                                                         'TR_DATE' => getdatestr() 
     95                                                        'THEME_CHARSET' => tr('encoding') 
    10096                                                        ) 
    10197                                                ); 
     
    138134$tpl->assign( 
    139135                array( 
    140                                         'TR_MAIN_INDEX_PAGE_TITLE' => tr('ISPCP - Virtual Hosting Control System'), 
     136                                        'TR_MAIN_INDEX_PAGE_TITLE' => tr('ispCP - Virtual Hosting Control System'), 
    141137                                        'THEME_COLOR_PATH' => $cfg['LOGIN_TEMPLATE_PATH'], 
    142138                                        'THEME_CHARSET' => tr('encoding'), 
     
    146142                                        'TR_USERNAME' => tr('Username'), 
    147143                                        'TR_SEND' => tr('Request password'), 
    148                                         'TR_BACK' => tr('Back'), 
    149                                         'TR_TIME' => gettimestr(), 
    150                                         'TR_DATE' => getdatestr() 
     144                                        'TR_BACK' => tr('Back') 
    151145                                        ) 
    152146                                );