Changeset 633

Show
Ignore:
Timestamp:
06/01/07 19:01:59 (2 years ago)
Author:
rats
Message:

Fixed #279: '-' and '_' not allowed in e-mail passwords

Fixed #337: uninitialized value in concatenation during setup warning
Fixed #338: welcome e-mail subject not parsed
Fixed #341: Serverports not deleteable - deleted delete text

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r632 r633  
    2020                * fixed serveral install bugs 
    2121        - GUI 
     22                * Fixed #279: '-' and '_' not allowed in e-mail passwords 
    2223                * Fixed #333: Variables "{1}" in the Admin Log 
     24                * Fixed #337: uninitialized value in concatenation during setup warning 
     25                * Fixed #338: welcome e-mail subject not parsed 
    2326                * Fixed #340: Logo upload not possible 
     27                * Fixed #341: Serverports not deleteable - deleted delete text 
    2428 
    25292007-05-31 Benedikt Heintel 
  • trunk/engine/setup/ispcp-setup

    r624 r633  
    27462746        push_el(\@main::el, 'setup_ispcpd()', 'Starting...'); 
    27472747 
    2748         sys_command_rs("$main::cfg{'CMD_CHOWN'} root:root $main::cfg{'CMD_ispCPD'} $main::cfg{'CMD_ispCPN'} &> /tmp/ispcp-setup-services.log"); 
    2749  
    2750         sys_command_rs("/bin/chmod 0755 $main::cfg{'CMD_ispCPD'} $main::cfg{'CMD_ispCPN'} &> /tmp/ispcp-setup-services.log"); 
     2748        sys_command_rs("$main::cfg{'CMD_CHOWN'} root:root $main::cfg{'CMD_ISPCPD'} $main::cfg{'CMD_ISPCPD'} &> /tmp/ispcp-setup-services.log"); 
     2749 
     2750        sys_command_rs("/bin/chmod 0755 $main::cfg{'CMD_ISPCPD'} $main::cfg{'CMD_ISPCPD'} &> /tmp/ispcp-setup-services.log"); 
    27512751 
    27522752        if ( -e "/usr/sbin/update-rc.d" ) { 
     
    27562756        } 
    27572757 
    2758         sys_command_rs("$main::cfg{'CMD_ispCPD'} stop &> /tmp/ispcp-setup-services.log"); 
     2758        sys_command_rs("$main::cfg{'CMD_ISPCPD'} stop &> /tmp/ispcp-setup-services.log"); 
    27592759 
    27602760        sleep(3); 
    27612761 
    2762         sys_command_rs("$main::cfg{'CMD_ispCPD'} start &> /tmp/ispcp-setup-services.log"); 
     2762        sys_command_rs("$main::cfg{'CMD_ISPCPD'} start &> /tmp/ispcp-setup-services.log"); 
    27632763 
    27642764        $rs = del_file("/tmp/ispcp-setup-services.log"); 
  • trunk/gui/admin/server_status.php

    r474 r633  
    11<?php 
    22/** 
    3  *  ispCP (OMEGA) - Virtual Hosting Control System | Omega Version 
     3 *  ispCP (OMEGA) a Virtual Hosting Control System 
    44 * 
    55 *  @copyright  2001-2006 by moleSoftware GmbH 
     
    1717 *  http://opensource.org | osi@opensource.org 
    1818 **/ 
    19   
     19 
    2020include '../include/ispcp-lib.php'; 
    2121 
     
    154154        } //while 
    155155 
    156         /* 
    157         $ispcp_status->AddService('localhost', 21, 'FTP', 'tcp'); 
    158         $ispcp_status->AddService('localhost', 22, 'SSH', 'tcp'); 
    159         $ispcp_status->AddService('localhost', 23, 'Telnet', 'tcp'); 
    160         $ispcp_status->AddService('localhost', 25, 'SMTP', 'tcp'); 
    161         $ispcp_status->AddService('localhost', 53, 'DNS', 'tcp'); 
    162         $ispcp_status->AddService('localhost', 80, 'HTTP', 'tcp'); 
    163         $ispcp_status->AddService('localhost', 443, 'HTTP-SSL', 'tcp'); 
    164         $ispcp_status->AddService('localhost', 110, 'POP3', 'tcp'); 
    165         $ispcp_status->AddService('localhost', 995, 'POP3-SSL', 'tcp'); 
    166         $ispcp_status->AddService('localhost', 143, 'IMAP', 'tcp'); 
    167         $ispcp_status->AddService('localhost', 993, 'IMAP-SSL', 'tcp'); 
    168         */ 
    169156        $ispcp_status->CheckStatus(5); 
    170157        $data = $ispcp_status->GetStatus(); 
  • trunk/gui/admin/settings_ports.php

    r596 r633  
    11<?php 
    22/** 
    3  *  ispCP (OMEGA) - Virtual Hosting Control System | Omega Version 
     3 *  ispCP (OMEGA) a Virtual Hosting Control System 
    44 * 
    55 *  @copyright  2001-2006 by moleSoftware GmbH 
     
    214214                                                                'PORT_READONLY' => 'readonly', 
    215215                                                                'PROTOCOL_READONLY' => 'disabled', 
    216                                                                 'TR_DELETE' => tr('Delete')
     216                                                                'TR_DELETE' => '-'
    217217                                                                'PORT_DELETE_LINK' => '' 
    218218                                                        ) 
  • trunk/gui/client/add_mail_acc.php

    r474 r633  
    432432        } 
    433433        // Not permitted chars 
    434         if (!preg_match("/^([a-zA-Z0-9@*#!;.+%§=]{6,15})$/", $pass)) { 
     434        if (!preg_match("/^([a-zA-Z0-9@*#!;.+%§=-_]{6,50})$/", $pass)) { 
    435435            set_page_message(tr('Password data includes not permitted signs!')); 
    436436            return; 
  • trunk/gui/include/admin-functions.php

    r616 r633  
    2222 * 
    2323 * source: php.net/manual/en/function.mail.php 
    24  *  
     24 * 
    2525 * input: 
    2626 *   string $in_str - string to be encoded [should be in the $charset charset] 
     
    3535{ 
    3636    $out_str = $in_str; 
    37     if ($out_str && $charset)  
    38     {   
     37    if ($out_str && $charset) 
     38    { 
    3939        // define start delimimter, end delimiter and spacer 
    4040        $end = "?="; 
    4141        $start = "=?" . $charset . "?B?"; 
    4242        $spacer = $end . "\r\n " . $start; 
    43                                  
     43 
    4444        // determine length of encoded text within chunks 
    4545        // and ensure length is even 
    4646        $length = 75 - strlen($start) - strlen($end); 
    4747        $length = floor($length/4) * 4; 
    48                                                                          
     48 
    4949        // encode the string and split it into chunks 
    5050        // with spacers after each chunk 
    5151        $out_str = base64_encode($out_str); 
    5252        $out_str = chunk_split($out_str, $length, $spacer); 
    53                                                                                  
     53 
    5454        // remove trailing spacer and 
    5555        // add start and end delimiters 
     
    470470                                        'TR_DELETE' => tr('Delete'), 
    471471                                        'URL_DELETE_ADMIN' => "delete_user.php?delete_id=".$rs -> fields['admin_id']."&delete_username=".$rs -> fields['admin_name'], 
    472                                         'ADMIN_USERNAME' => $rs -> fields['admin_name'],  
     472                                        'ADMIN_USERNAME' => $rs -> fields['admin_name'], 
    473473                                        ) 
    474474                        ); 
     
    17721772        $from_email = $data['sender_email']; 
    17731773 
    1774         $subject = encode ($data['subject']); 
    1775  
    17761774        $message = $data['message']; 
    17771775 
     
    18111809        $message = preg_replace("/\{PASSWORD\}/", $password, $message); 
    18121810        $message = preg_replace("/\{BASE_SERVER_VHOST\}/", $base_vhost, $message); 
     1811 
     1812        $subject = encode($data['subject']); 
    18131813 
    18141814        $headers = "From: $from\n";