Changeset 611

Show
Ignore:
Timestamp:
05/31/07 19:28:04 (2 years ago)
Author:
malte
Message:

fixed several bugs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r610 r611  
    1515                * Fixed #334: Reseller cannot confirm / add ordered domains  
    1616                * Fixed #333: upload of logo not possible (thx Sawoy) 
     17                * Fixed #304: subject of mails was wrong encoded 
     18                * Fixed #331: Theme Color Path missing for Servicemode 
     19         
     20        - SETUP  
    1721                * Fixed #332: Keylength for pma-blowfish secret fixed to be below 256bit  
     22                 
     23        - CONFIGS 
     24                * Fixed #314: missing linefeed for fedora's bind in db_master_e.tpl 
     25                * Fixed #315: missing linefeed for fedora's bind in db_sub_entry.tpl 
     26                * Fixed #316: wrong path in cfg_entry.tpl 
     27                * Fixed #320: wrong aliases for awstats on fedora systems 
     28                * Fixed #321: wrong path in ispcp.conf 
    1829 
    19302007-05-30 Raphael Geissert 
  • trunk/configs/dists/fedora/apache/httpd.conf

    r432 r611  
    2121# 
    2222 
    23 Alias /awstatsclasses "/srv/www/awstats/classes/" 
    24 Alias /awstatscss "/srv/www/awstats/css/" 
    25 Alias /awstatsicons "/srv/www/awstats/icon/" 
    26 Alias /awstatsjs "/srv/www/awstats/js/" 
    27 Alias /stats "/usr/lib/cgi-bin/awstats/" 
     23Alias /awstatsclasses "/usr/share/awstats/wwwroot/classes/" 
     24Alias /awstatscss "/usr/share/awstats/wwwroot/css/" 
     25Alias /awstatsicons "/usr/share/awstats/wwwroot/icon/" 
     26Alias /awstatsjs "/usr/share/awstats/wwwroot/js/" 
     27Alias /stats "/usr/share/awstats/wwwroot/cgi-bin/" 
    2828 
    29 <Directory /usr/lib/cgi-bin/awstats
     29<Directory /usr/share/awstats/cgi-bin
    3030    AllowOverride AuthConfig 
    3131    Options -Includes FollowSymLinks +ExecCGI MultiViews 
  • trunk/configs/dists/fedora/bind/parts/cfg_entry.tpl

    r284 r611  
    11zone "{DMN_NAME}" { 
    22        type    master; 
    3         file    "{DMN_NAME}.db"; 
     3        file    data/"{DMN_NAME}.db"; 
    44        notify  YES; 
    55}; 
  • trunk/configs/dists/fedora/bind/parts/db_master_e.tpl

    r443 r611  
    2323; sub [{SUB_NAME}] entry BEGIN. 
    2424; sub [{SUB_NAME}] entry END. 
     25 
  • trunk/gui/include/admin-functions.php

    r512 r611  
    1717 *  http://opensource.org | osi@opensource.org 
    1818 **/ 
     19 
     20/* 
     21 * encode() - encode string to be valid as mail header 
     22 * 
     23 * source: php.net/manual/en/function.mail.php 
     24 *  
     25 * input: 
     26 *   string $in_str - string to be encoded [should be in the $charset charset] 
     27 *   string $charset - chanrset in that string will be encoded 
     28 * 
     29 * output: 
     30 *   string - encoded string 
     31 * 
     32 * comment: need to check emails with ? and space in subject - some probs can occur 
     33 */ 
     34function encode( $in_str, $charset = 'UTF-8' ) 
     35{ 
     36    $out_str = $in_str; 
     37    if ($out_str && $charset)  
     38    {    
     39        // define start delimimter, end delimiter and spacer 
     40        $end = "?="; 
     41        $start = "=?" . $charset . "?B?"; 
     42        $spacer = $end . "\r\n " . $start; 
     43                                 
     44        // determine length of encoded text within chunks 
     45        // and ensure length is even 
     46        $length = 75 - strlen($start) - strlen($end); 
     47        $length = floor($length/4) * 4; 
     48                                                                         
     49        // encode the string and split it into chunks 
     50        // with spacers after each chunk 
     51        $out_str = base64_encode($out_str); 
     52        $out_str = chunk_split($out_str, $length, $spacer); 
     53                                                                                 
     54        // remove trailing spacer and 
     55        // add start and end delimiters 
     56        $spacer = preg_quote($spacer); 
     57        $out_str = preg_replace("/" . $spacer . "$/", "", $out_str); 
     58        $out_str = $start . $out_str . $end; 
     59    } 
     60    return $out_str; 
     61} 
    1962 
    2063function gen_admin_mainmenu(&$tpl, $menu_file) { 
     
    427470                                        'TR_DELETE' => tr('Delete'), 
    428471                                        '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'],  
    429473                                        ) 
    430474                        ); 
     
    792836                                        'GO_TO_USER_INTERFACE' => tr('Change'), 
    793837                                        'URL_CHANGE_INTERFACE' => "change_user_interface.php?to_id=".$rs -> fields['domain_admin_id'], 
     838                                        'USR_USERNAME' => $rs -> fields['domain_name'], 
    794839                                        ) 
    795840                        ); 
     
    17271772        $from_email = $data['sender_email']; 
    17281773 
    1729         $subject = $data['subject']
     1774        $subject = encode ($data['subject'])
    17301775 
    17311776        $message = $data['message']; 
     
    17351780        if ($from_name) { 
    17361781 
    1737                 $from = $from_name . "<" . $from_email . ">"; 
     1782                $from = encode($from_name) . "<" . $from_email . ">"; 
    17381783 
    17391784        } else { 
     
    17441789        if ($ufname && $ulname) { 
    17451790 
    1746                 $to = "$ufname $ulname <$uemail>"; 
     1791                $to = encode ($ufname.' '.$ulname) ." <$uemail>"; 
    17471792 
    17481793                $name = "$ufname $ulname"; 
     
    17691814        $headers = "From: $from\n"; 
    17701815 
    1771         $headers .= "MIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 7bit\n"; 
     1816        $headers .= "MIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\n"; 
    17721817 
    17731818        $headers .=     "X-Mailer: ISPCP ".$cfg['Version']." Service Mailer"; 
  • trunk/gui/index.php

    r584 r611  
    7070        $tpl -> assign(array( 
    7171                                                'TR_PAGE_TITLE' => tr('ISPCP - Virtual Hosting Control System'), 
     72                                                'THEME_COLOR_PATH' => $cfg['LOGIN_TEMPLATE_PATH'], 
    7273                                                'THEME_CHARSET' => tr('encoding'), 
    7374                                                'TR_TIME' => gettimestr(),