Changeset 751

Show
Ignore:
Timestamp:
08/19/07 06:18:24 (1 year ago)
Author:
raphael
Message:

Fixed #571: mod_cband's limit is not updated when limit is change in the GUI
Fixed some i18n issues
Fixed #562: Disable Named/Bind
Fixed #575: Update german translation with old submission at mailinglist
Merged French translation with Greg's

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r750 r751  
    88 
    992007-08-18 Raphael Geissert 
     10    - GUI: 
     11        * Fixed #571: mod_cband's limit is not updated when limit is change in the GUI 
     12        * Fixed some i18n issues 
    1013    - SETUP: 
    1114        * Fixed #573: Local name server in /etc/resolv.conf allows hijacking 
     15        * Fixed #562: Disable Named/Bind 
    1216    - CONFIGS: 
    1317        * Fixed #578: ERROR 1170 (42000) at line 18: BLOB/TEXT column 'msgid' used in key specification without a key length 
     18    - ENGINE: 
     19        * Fixed #562: Disable Named/Bind 
     20    - LANGUAGES: 
     21        * Fixed #575: Update german translation with old submission at mailinglist 
     22        * Merged French translation with Greg's 
    1423 
    15242007-08-17 Raphael Geissert 
  • trunk/engine/ispcp-als-mngr

    r745 r751  
    728728    } 
    729729 
     730    return 0 if ($main::cfg{'CMD_NAMED'} eq 'no'); 
     731 
    730732    $rs = als_add_named_cfg_data($als_data); 
    731733 
     
    757759    } 
    758760 
     761    return 0 if ($main::cfg{'CMD_NAMED'} eq 'no'); 
     762 
    759763    $rs = als_add_named_data($als_data); 
    760764 
     
    781785 
    782786    } 
     787 
     788    return 0 if ($main::cfg{'CMD_NAMED'} eq 'no'); 
    783789 
    784790    $rs = als_del_named_cfg_data($als_data); 
  • trunk/engine/ispcp-dmn-mngr

    r749 r751  
    743743    } 
    744744 
     745    return 0 if ($main::cfg{'CMD_NAMED'} eq 'no'); 
     746 
    745747    $rs = dmn_add_named_cfg_data($dmn_data); 
    746748 
     
    806808 
    807809    } 
     810 
     811    return 0 if ($main::cfg{'CMD_NAMED'} eq 'no'); 
    808812 
    809813    $rs = dmn_del_named_cfg_data($dmn_data); 
  • trunk/engine/ispcp-sub-mngr

    r745 r751  
    533533    } 
    534534 
     535    return 0 if ($main::cfg{'CMD_NAMED'} eq 'no'); 
     536 
    535537    $rs = sub_add_named_cfg_data($sub_data); 
    536538 
     
    559561    } 
    560562 
     563    return 0 if ($main::cfg{'CMD_NAMED'} eq 'no'); 
     564 
    561565    $rs = sub_add_named_cfg_data($sub_data); 
    562566 
     
    584588 
    585589    } 
     590 
     591    return 0 if ($main::cfg{'CMD_NAMED'} eq 'no'); 
    586592 
    587593    $rs = sub_del_named_cfg_data($sub_data); 
  • trunk/engine/setup/ispcp-setup

    r750 r751  
    576576        my $vhost = "admin.$addr"; 
    577577 
    578         my $qmsg = "\n    Please enter the domain name ispCP OMEGA will run on [$vhost]: "; 
     578        my $qmsg = "\n    Please enter the domain name where ispCP OMEGA will run on [$vhost]: "; 
    579579 
    580580        print STDOUT $qmsg; 
     
    16771677        my ($cfg_tpl, $cfg, $cmd) = (undef, undef, undef); 
    16781678 
    1679         if ($main::cfg{'CMD_NAMED'} ne 'no') { 
    1680  
    1681                 sys_command_rs("$main::cfg{'CMD_NAMED'} stop &> /tmp/ispcp-setup-services.log"); 
    1682  
    1683         } 
     1679        return 0 if ($main::cfg{'CMD_NAMED'} eq 'no'); 
     1680 
     1681        sys_command_rs("$main::cfg{'CMD_NAMED'} stop &> /tmp/ispcp-setup-services.log"); 
    16841682 
    16851683        ($rs, $cfg_tpl) = get_file("$cfg_dir/named.conf"); 
     
    17151713        return $rs if ($rs != 0); 
    17161714 
    1717         if ($main::cfg{'CMD_NAMED'} ne 'no') { 
    1718  
    1719                 sys_command_rs("$main::cfg{'CMD_NAMED'} start &> /tmp/ispcp-setup-services.log"); 
    1720  
    1721         } 
     1715        sys_command_rs("$main::cfg{'CMD_NAMED'} start &> /tmp/ispcp-setup-services.log"); 
    17221716 
    17231717        push_el(\@main::el, 'setup_named()', 'Ending...'); 
  • trunk/gui/admin/index.php

    r736 r751  
    171171    $tpl -> assign( 
    172172            array( 
    173                     'TR_OF' => tr('of'), 
    174                     'PERCENT' => $pr, 
    175                     'VALUE' => sizeit($mtraff), 
    176                     'MAX_VALUE' => $show_straf_max, 
     173                    'TRAFFIC_WARNING' => tr('%1$d % [%2$d of %3$d]', $pr, sizeit($mtraff), $show_straf_max), 
    177174                    'BAR_VALUE' => $bar_value, 
    178175                    ) 
  • trunk/gui/admin/reseller_statistics.php

    r661 r751  
    299299                            'TRAFF_SHOW_PERCENT' => $traff_show_percent, 
    300300                                                        'TRAFF_PERCENT' => $traff_percent, 
    301                             'TRAFF_USED' => make_hr($utraff_current), 
    302                             'TRAFF_CURRENT' => make_hr($rtraff_current), 
    303                             'TRAFF_MAX' => ($rtraff_max) ? make_hr($rtraff_max) : tr('unlimited'), 
     301 
     302                            'TRAFF_MSG' => ($rtraff_max) ? 
     303                                            tr('%1$d / %2$d <br/>of<br/> <b>%3$d</b>', make_hr($utraff_current), make_hr($rtraff_current), make_hr($rtraff_max)): 
     304                                            tr('%1$d / %2$d <br/>of<br/> <b>unlimited</b>', make_hr($utraff_current), make_hr($rtraff_current)), 
    304305 
    305306                            'DISK_SHOW_PERCENT' => $disk_show_percent, 
    306307                                                        'DISK_PERCENT' => $disk_percent, 
    307                             'DISK_USED' => make_hr($udisk_current), 
    308                             'DISK_CURRENT' => make_hr($rdisk_current), 
    309                             'DISK_MAX' => ($rdisk_max) ? make_hr($rdisk_max) : tr('unlimited'), 
    310  
    311                             'DMN_USED' => $udmn_current, 
    312                             'DMN_CURRENT' => $rdmn_current, 
    313                             'DMN_MAX' => ($rdmn_max) ? $rdmn_max : tr('unlimited'), 
    314  
    315                             'SUB_USED' => $usub_current, 
    316                             'SUB_CURRENT' => $rsub_current, 
    317                             'SUB_MAX' => ($rsub_max) ? $rsub_max : tr('unlimited'), 
    318  
    319                             'ALS_USED' => $uals_current, 
    320                             'ALS_CURRENT' => $rals_current, 
    321                             'ALS_MAX' => ($rals_max) ? $rals_max : tr('unlimited'), 
    322  
    323                             'MAIL_USED' => $umail_current, 
    324                             'MAIL_CURRENT' => $rmail_current, 
    325                             'MAIL_MAX' => ($rmail_max) ? $rmail_max : tr('unlimited'), 
    326  
    327                             'FTP_USED' => $uftp_current, 
    328                             'FTP_CURRENT' => $rftp_current, 
    329                             'FTP_MAX' => ($rftp_max) ? $rftp_max : tr('unlimited'), 
    330  
    331                             'SQL_DB_USED' => $usql_db_current, 
    332                             'SQL_DB_CURRENT' => $rsql_db_current, 
    333                             'SQL_DB_MAX' => ($rsql_db_max) ? $rsql_db_max : tr('unlimited'), 
    334                             'TR_OF' => tr('of'), 
    335  
    336                             'SQL_USER_USED' => $usql_user_current, 
    337                             'SQL_USER_CURRENT' => $rsql_user_current, 
    338                             'SQL_USER_MAX' => ($rsql_user_max) ? $rsql_user_max : tr('unlimited'
     308 
     309                            'DISK_MSG' => ($rdisk_max) ? 
     310                                            tr('%1$d / %2$d <br/>of<br/> <b>%3$d</b>', make_hr($udisk_current), make_hr($rdisk_current), make_hr($rdisk_max)): 
     311                                            tr('%1$d / %2$d <br/>of<br/> <b>unlimited</b>', make_hr($udisk_current), make_hr($rdisk_current)), 
     312 
     313                            'DMN_MSG' => ($rdmn_max) ? 
     314                                            tr('%1$d / %2$d <br/>of<br/> <b>%3$d</b>', $udmn_current, $rdmn_current, $rdmn_max): 
     315                                            tr('%1$d / %2$d <br/>of<br/> <b>unlimited</b>', $udmn_current, $rdmn_current), 
     316 
     317                            'SUB_MSG' => ($rsub_max) ? 
     318                                            tr('%1$d / %2$d <br/>of<br/> <b>%3$d</b>', $usub_current, $rsub_current, $rsub_max): 
     319                                            tr('%1$d / %2$d <br/>of<br/> <b>unlimited</b>', $usub_current, $rsub_current), 
     320 
     321                            'ALS_MSG' => ($rals_max) ? 
     322                                            tr('%1$d / %2$d <br/>of<br/> <b>%3$d</b>', $uals_current, $rals_current, $rals_max): 
     323                                            tr('%1$d / %2$d <br/>of<br/> <b>unlimited</b>', $uals_current, $rals_current), 
     324 
     325                            'MAIL_MSG' => ($rmail_max) ? 
     326                                            tr('%1$d / %2$d <br/>of<br/> <b>%3$d</b>', $umail_current, $rmail_current, $rmail_max): 
     327                                            tr('%1$d / %2$d <br/>of<br/> <b>unlimited</b>', $umail_current, $rmail_current), 
     328 
     329                            'FTP_MSG' => ($rftp_max) ? 
     330                                            tr('%1$d / %2$d <br/>of<br/> <b>%3$d</b>', $uftp_current, $rftp_current, $rftp_max): 
     331                                            tr('%1$d / %2$d <br/>of<br/> <b>unlimited</b>', $uftp_current, $rftp_current), 
     332 
     333                            'SQL_DB_MSG' => ($rsql_db_max) ? 
     334                                            tr('%1$d / %2$d <br/>of<br/> <b>%3$d</b>', $usql_db_current, $rsql_db_current, $rsql_db_max): 
     335                                            tr('%1$d / %2$d <br/>of<br/> <b>unlimited</b>', $usql_db_current, $rsql_db_current), 
     336 
     337                            'SQL_USER_MSG' => ($rsql_user_max) ? 
     338                                            tr('%1$d / %2$d <br/>of<br/> <b>%3$d</b>', $usql_user_current, $rsql_user_current, $rsql_user_max): 
     339                                            tr('%1$d / %2$d <br/>of<br/> <b>unlimited</b>', $usql_user_current, $rsql_user_current
    339340 
    340341                         ) 
  • trunk/gui/admin/reseller_user_statistics.php

    r661 r751  
    343343                    'TRAFF_RED' => $traff_red, 
    344344                    'TRAFF_GREEN' => $traff_green, 
    345                     'TRAFF_USED' => make_hr($utraff_current), 
    346                     'TRAFF_MAX' => ($utraff_max) ? make_hr($utraff_max) : tr('unlimited'), 
     345 
     346                    'TRAFF_MSG' => ($utraff_max)? 
     347                                    tr('%1$d <br/>of</br> <b>%2$d</b>', make_hr($utraff_current), make_hr($utraff_max)): 
     348                                    tr('%d <br/>of</br> <b>unlimited</b>', make_hr($utraff_current)), 
    347349 
    348350                    'DISK_SHOW_PERCENT' => $disk_show_percent, 
     
    350352                    'DISK_RED' => $disk_red, 
    351353                    'DISK_GREEN' => $disk_green, 
    352                     'DISK_USED' => make_hr($udisk_current), 
    353                     'DISK_MAX' => ($udisk_max) ? make_hr($udisk_max) : tr('unlimited'), 
     354 
     355                    'DISK_MSG' => ($udisk_max)? 
     356                                    tr('%1$d <br/>of</br> <b>%2$d</b>', make_hr($udisk_current), make_hr($udisk_max)): 
     357                                    tr('%d <br/>of</br> <b>unlimited</b>', make_hr($udisk_current)), 
    354358 
    355359                    'WEB' => make_hr($web), 
     
    358362                    'POP3' => make_hr($pop3), 
    359363 
    360                     'SUB_USED' => $usub_current, 
    361                     'SUB_MAX' => ($usub_max) ? (($usub_max > 0) ? $usub_max : tr('disabled')) : tr('unlimited'), 
    362  
    363                     'ALS_USED' => $uals_current, 
    364                     'ALS_MAX' => ($uals_max) ? (($uals_max > 0) ? $uals_max : tr('disabled')) : tr('unlimited'), 
    365  
    366                     'MAIL_USED' => $umail_current, 
    367                     'MAIL_MAX' => ($umail_max) ? $umail_max : tr('unlimited'), 
    368  
    369                     'FTP_USED' => $uftp_current, 
    370                     'FTP_MAX' => ($uftp_max) ? $uftp_max : tr('unlimited'), 
    371  
    372                     'SQL_DB_USED' => $usql_db_current, 
    373                     'SQL_DB_MAX' => ($usql_db_max) ? (($usql_db_max > 0) ? $usql_db_max : tr('disabled')) : tr('unlimited'), 
    374  
    375                     'SQL_USER_USED' => $usql_user_current, 
    376                     'SQL_USER_MAX' => ($usql_user_max) ? (($usql_user_max > 0) ? $usql_user_max : tr('disabled')) : tr('unlimited'), 
     364                    'SUB_MSG' => ($usub_max)? ( 
     365                                        ($usub_max > 0) ? 
     366                                            tr('%1$d <br/>of</br> <b>%2$d</b>', make_hr($usub_current), $usub_max): 
     367                                            tr('<b>disabled</b>') 
     368                                    ) : tr('%d <br/>of</br> <b>unlimited</b>', make_hr($usub_current)), 
     369 
     370                    'ALS_MSG' => ($uals_max)? ( 
     371                                        ($uals_max > 0) ? 
     372                                            tr('%1$d <br/>of</br> <b>%2$d</b>', make_hr($uals_current), $uals_max): 
     373                                            tr('<b>disabled</b>') 
     374                                    ) : tr('%d <br/>of</br> <b>unlimited</b>', make_hr($uals_current)), 
     375 
     376                    'MAIL_MSG' => ($umail_max)? 
     377                                    tr('%1$d <br/>of</br> <b>%2$d</b>', $umail_current, $umail_max): 
     378                                    tr('%d <br/>of</br> <b>unlimited</b>', $umail_current), 
     379 
     380                    'FTP_MSG' => ($uftp_max)? 
     381                                    tr('%1$d <br/>of</br> <b>%2$d</b>', $uftp_current, $uftp_max): 
     382                                    tr('%d <br/>of</br> <b>unlimited</b>', $uftp_current), 
     383 
     384                    'SQL_DB_MSG' => ($usql_db_max)? ( 
     385                                        ($usql_db_max > 0) ? 
     386                                            tr('%1$d <br/>of</br> <b>%2$d</b>', $usql_db_current, $usql_db_max): 
     387                                            tr('<b>disabled</b>') 
     388                                    ) : tr('%d <br/>of</br> <b>unlimited</b>', $usql_db_current), 
     389 
     390                    'SQL_USER_MSG' => ($usql_user_max)? ( 
     391                                        ($usql_user_max > 0) ? 
     392                                            tr('%1$d <br/>of</br> <b>%2$d</b>', $usql_user_current, $usql_user_max): 
     393                                            tr('<b>disabled</b>') 
     394                                    ) : tr('%d <br/>of</br> <b>unlimited</b>', $usql_user_current) 
    377395 
    378396                    ) 
     
    410428                            'TR_SQL_DB' => tr('SQL<br>database'), 
    411429                            'TR_SQL_USER' => tr('SQL<br>user'), 
    412                             'TR_OF' => tr('of'), 
    413430 
    414431                            'VALUE_NAME' => $name, 
  • trunk/gui/reseller/edit_domain.php

    r747 r751  
    317317 
    318318 
    319 // Function to update changes into db 
    320 function update_data_in_db($hpid) 
    321 { 
    322         global $domain_name, $domain_ip, $php_sup; 
    323         global $cgi_supp ,$sub, $als; 
    324         global $mail, $ftp, $sql_db; 
    325         global $sql_user, $traff, $disk; 
    326         global $username, $domain_php, $domain_cgi; 
    327  
    328         $user_props  = "$usub_current;$usub_max;"; 
    329         $user_props .= "$uals_current;$uals_max;"; 
    330         $user_props .= "$umail_current;$umail_max;"; 
    331         $user_props .= "$uftp_current;$uftp_max;"; 
    332         $user_props .= "$usql_db_current;$usql_db_max;"; 
    333         $user_props .= "$usql_user_current;$usql_user_max;"; 
    334         $user_props .= "$utraff_max;"; 
    335         $user_props .= "$udisk_max;"; 
    336         //$user_props .= "$domain_ip;"; 
    337         $user_props .= "$domain_php;"; 
    338         $user_props .= "$domain_cgi;"; 
    339  
    340         update_user_props($user_id, $user_props); 
    341  
    342         $reseller_props  = "$rdmn_current;$rdmn_max;"; 
    343         $reseller_props .= "$rsub_current;$rsub_max;"; 
    344         $reseller_props .= "$rals_current;$rals_max;"; 
    345         $reseller_props .= "$rmail_current;$rmail_max;"; 
    346         $reseller_props .= "$rftp_current;$rftp_max;"; 
    347         $reseller_props .= "$rsql_db_current;$rsql_db_max;"; 
    348         $reseller_props .= "$rsql_user_current;$rsql_user_max;"; 
    349         $reseller_props .= "$rtraff_current;$rtraff_max;"; 
    350         $reseller_props .= "$rdisk_current;$rdisk_max;"; 
    351  
    352         update_reseller_props($reseller_id, $reseller_props); 
    353  
    354         //$tpl -> assign('MESSAGE', tr('Domain properties updated successfully!')); 
    355  
    356         unset($_SESSION['edit_id']); 
    357         set_page_message(tr('Domain properties updated successfully!')); 
    358         Header("Location: users.php"); 
    359         die(); 
    360 }// End of update_data_in_db() 
    361  
    362  
    363319//Check input data 
    364320function check_user_data ( &$tpl, &$sql, $reseller_id, $user_id) { 
     
    426382           $usql_user_current, $usql_user_max, 
    427383           $utraff_max, $udisk_max) = generate_user_props($user_id); 
     384 
     385    $previous_utraff_max = $utraff_max; 
    428386 
    429387    list ( 
     
    503461    if ($ed_error == '_off_') { 
    504462 
     463        // 
     464        // Set domain's status to 'change' to update mod_cband's limit 
     465        // 
     466        if ($previous_utraff_max != $utraff_max) { 
     467            $query = "UPDATE domain SET domain_status = 'change' WHERE domain_id = ?"; 
     468            exec_query($sql, $query, array($user_id)); 
     469        } 
     470 
    505471        $user_props  = "$usub_current;$usub_max;"; 
    506472        $user_props .= "$uals_current;$uals_max;"; 
  • trunk/gui/reseller/index.php

    r743 r751  
    5656        list($percent, $bars) = calc_bars($usage, $max_usage, $bars_max); 
    5757                $max_usage = sizeit($max_usage); 
     58                $traffic_usage_data = tr('%1$s%% [%2$s of %3$s]', $percent, sizeit($usage), $max_usage); 
    5859        } 
    5960 
     
    6162                $percent        = 0; 
    6263                $bars           = 0; 
    63                 $max_usage  = tr('unlimited'); 
    64         } 
    65  
    66     $traffic_usage_data = tr('%1$s%% [%2$s of %3$s]', $percent, sizeit($usage), $max_usage); 
     64                $traffic_usage_data = tr('%1$s%% [%2$s of unlimited]', $percent, sizeit($usage)); 
     65        } 
    6766 
    6867    $tpl -> assign( 
     
    147146    gen_disk_usage($tpl, $udisk_current, $rdisk_max, 400); 
    148147 
    149     if ($rtraff_max > 0) 
    150         { 
    151         if ($utraff_current > $rtraff_max) 
    152                 { 
     148    if ($rtraff_max > 0) { 
     149        if ($utraff_current > $rtraff_max) { 
    153150            $tpl -> assign( 
    154                             'TR_TRAFFIC_WARNING', tr('You are exceeding your traffic limit!') 
    155                           ); 
    156  
    157         }else 
    158                 { 
    159             $tpl -> assign('TRAFF_WARN', ''); 
    160         } 
    161  
    162     } else { 
    163         if ($utraff_current > 1024 * 1024 * 1024 * 1024) { 
    164 //            $tpl -> assign('TR_TRAFFIC_WARNING', tr('You are exceeding your UNLIMITED traffic limit!')); 
     151                          'TR_TRAFFIC_WARNING', tr('You are exceeding your traffic limit!') 
     152            ); 
     153 
    165154        } else { 
    166155            $tpl -> assign('TRAFF_WARN', ''); 
    167156        } 
     157 
     158    } else { 
     159        $tpl -> assign('TRAFF_WARN', ''); 
    168160    } 
    169161 
    170162 
    171163        //warning HDD Usage 
    172         if ($rdisk_max > 0) 
    173         { 
    174         if ($udisk_current > $rdisk_max) 
    175                 { 
    176             $tpl -> assign( 
    177                             'TR_DISK_WARNING', tr('You are exceeding your disk limit!') 
    178                           ); 
    179  
    180         }else 
    181                 { 
    182             $tpl -> assign('DISK_WARN', ''); 
    183         } 
    184  
    185     } else { 
    186         if ($udisk_current > 1024 * 1024 * 1024 * 1024) { 
    187 //            $tpl -> assign('TR_DISK_WARNING', tr('You are exceeding your UNLIMITED disk limit!')); 
    188         } else { 
    189             $tpl -> assign('DISK_WARN', ''); 
    190         } 
    191     } 
     164        if ($rdisk_max > 0) { 
     165            if ($udisk_current > $rdisk_max) { 
     166                $tpl -> assign( 
     167                              'TR_DISK_WARNING', tr('You are exceeding your disk limit!') 
     168                ); 
     169 
     170            } else { 
     171                $tpl -> assign('DISK_WARN', ''); 
     172            } 
     173 
     174        } else { 
     175            $tpl -> assign('DISK_WARN', ''); 
     176        } 
    192177 
    193178 
  • trunk/gui/reseller/reseller_user_statistics.php

    r743 r751  
    218218                       'YEAR' => $crnt_year, 
    219219                       'DOMAIN_ID' => $domain_id, 
    220                        'TRAFF_PERCENT' => $traff_percent, 
     220 
    221221                       'TRAFF_SHOW_PERCENT' => $traff_show_percent, 
     222                                           'TRAFF_PERCENT' => $traff_percent, 
    222223                       'TRAFF_RED' => $traff_red, 
    223224                       'TRAFF_GREEN' => $traff_green, 
    224                        'TRAFF_USED' => make_hr($utraff_current), 
    225                        'TRAFF_MAX' => ($utraff_max) ? make_hr($utraff_max) : tr('unlimited'), 
    226                        'DISK_PERCENT' => $disk_percent, 
     225 
     226                       'TRAFF_MSG' => ($utraff_max)? 
     227                                       tr('%1$d <br/>of</br> <b>%2$d</b>', make_hr($utraff_current), make_hr($utraff_max)): 
     228                                       tr('%d <br/>of</br> <b>unlimited</b>', make_hr($utraff_current)), 
     229 
    227230                       'DISK_SHOW_PERCENT' => $disk_show_percent, 
     231                               'DISK_PERCENT' => $disk_percent, 
    228232                       'DISK_RED' => $disk_red, 
    229233                       'DISK_GREEN' => $disk_green, 
    230                        'DISK_USED' => make_hr($udisk_current), 
    231                        'DISK_MAX' => ($udisk_max) ? make_hr($udisk_max) : tr('unlimited'), 
     234 
     235                       'DISK_MSG' => ($udisk_max)? 
     236                                       tr('%1$d <br/>of</br> <b>%2$d</b>', make_hr($udisk_current), make_hr($udisk_max)): 
     237                                       tr('%d <br/>of</br> <b>unlimited</b>', make_hr($udisk_current)), 
     238 
    232239                       'WEB' => make_hr($web), 
    233240                       'FTP' => make_hr($ftp), 
    234241                       'SMTP' => make_hr($smtp), 
    235242                       'POP3' => make_hr($pop3), 
    236                        'SUB_USED' => $usub_current, 
    237                        'SUB_MAX' => ($usub_max) ? (($usub_max > 0) ? $usub_max : tr('disabled')) : tr('unlimited'), 
    238                        'ALS_USED' => $uals_current, 
    239                        'ALS_MAX' => ($uals_max) ? (($uals_max > 0) ? $uals_max : tr('disabled')) : tr('unlimited'), 
    240                        'MAIL_USED' => $umail_current, 
    241                        'MAIL_MAX' => ($umail_max) ? $umail_max : tr('unlimited'), 
    242                        'FTP_USED' => $uftp_current, 
    243                        'FTP_MAX' => ($uftp_max) ? $uftp_max : tr('unlimited'), 
    244                        'SQL_DB_USED' => $usql_db_current, 
    245                        'SQL_DB_MAX' => ($usql_db_max) ? (($usql_db_max > 0) ? $usql_db_max : tr('disabled')) : tr('unlimited'), 
    246                        'SQL_USER_USED' => $usql_user_current, 
    247                        'SQL_USER_MAX' => ($usql_user_max) ? (($usql_user_max > 0) ? $usql_user_max : tr('disabled')) : tr('unlimited'))); 
     243 
     244                       'SUB_MSG' => ($usub_max)? ( 
     245                                           ($usub_max > 0) ? 
     246                                               tr('%1$d <br/>of</br> <b>%2$d</b>', make_hr($usub_current), $usub_max): 
     247                                               tr('<b>disabled</b>') 
     248                                       ) : tr('%d <br/>of</br> <b>unlimited</b>', make_hr($usub_current)), 
     249 
     250                       'ALS_MSG' => ($uals_max)? ( 
     251                                           ($uals_max > 0) ? 
     252                                               tr('%1$d <br/>of</br> <b>%2$d</b>', make_hr($uals_current), $uals_max): 
     253                                               tr('<b>disabled</b>') 
     254                                       ) : tr('%d <br/>of</br> <b>unlimited</b>', make_hr($uals_current)), 
     255 
     256                       'MAIL_MSG' => ($umail_max)? 
     257                                       tr('%1$d <br/>of</br> <b>%2$d</b>', $umail_current, $umail_max): 
     258                                       tr('%d <br/>of</br> <b>unlimited</b>', $umail_current), 
     259 
     260                       'FTP_MSG' => ($uftp_max)? 
     261                                       tr('%1$d <br/>of</br> <b>%2$d</b>', $uftp_current, $uftp_max): 
     262                                       tr('%d <br/>of</br> <b>unlimited</b>', $uftp_current), 
     263 
     264                       'SQL_DB_MSG' => ($usql_db_max)? ( 
     265                                           ($usql_db_max > 0) ? 
     266                                               tr('%1$d <br/>of</br> <b>%2$d</b>', $usql_db_current, $usql_db_max): 
     267                                               tr('<b>disabled</b>') 
     268                                       ) : tr('%d <br/>of</br> <b>unlimited</b>', $usql_db_current), 
     269 
     270                       'SQL_USER_MSG' => ($usql_user_max)? ( 
     271                                           ($usql_user_max > 0) ? 
     272                                               tr('%1$d <br/>of</br> <b>%2$d</b>', $usql_user_current, $usql_user_max): 
     273                                               tr('<b>disabled</b>') 
     274                                       ) : tr('%d <br/>of</br> <b>unlimited</b>', $usql_user_current) 
     275                       )); 
    248276} 
    249277 
     
    280308                            'TR_SQL_DB' => tr('SQL<br>database'), 
    281309                            'TR_SQL_USER' => tr('SQL<br>user'), 
    282                             'TR_OF' => tr('of'), 
    283310 
    284311                            'VALUE_NAME' => $name, 
  • trunk/gui/themes/omega_original/admin/index.tpl

    r736 r751  
    145145      <tr> 
    146146        <td width="25">&nbsp;</td> 
    147         <td class="content">{PERCENT} % [{VALUE} {TR_OF} {MAX_VALUE}]</td> 
     147        <td class="content">{TRAFFIC_WARNING}</td> 
    148148      </tr> 
    149149      <tr> 
  • trunk/gui/themes/omega_original/admin/reseller_statistics.tpl

    r684 r751  
    101101                                </table> 
    102102                                  <b>{TRAFF_SHOW_PERCENT}&nbsp;%</b><br /> 
    103                                 {TRAFF_USED}&nbsp;/&nbsp;{TRAFF_CURRENT}<br /> 
    104                                 {TR_OF}<br /> 
    105                                 <b>{TRAFF_MAX}</b></td> 
     103                                {TRAFF_MSG}</td> 
    106104                              <td class="{ITEM_CLASS}" nowrap="nowrap" align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> 
    107105                                  <tr> 
     
    118116                                </table> 
    119117                                  <b>{DISK_SHOW_PERCENT}&nbsp;%</b><br /> 
    120                                 {DISK_USED}&nbsp;/&nbsp;{DISK_CURRENT}<br /> 
    121                                 {TR_OF}<br /> 
    122                                 <b>{DISK_MAX}</b></td> 
    123                               <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{DMN_USED}&nbsp;/&nbsp;{DMN_CURRENT}<br /> 
    124                                 {TR_OF}<br /> 
    125                                 <b>{DMN_MAX}</b></td> 
    126                               <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{SUB_USED}&nbsp;/&nbsp;{SUB_CURRENT}<br /> 
    127                                 {TR_OF}<br /> 
    128                                 <b>{SUB_MAX}</b></td> 
    129                               <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{ALS_USED}&nbsp;/&nbsp;{ALS_CURRENT}<br /> 
    130                                 {TR_OF}<br /> 
    131                                 <b>{ALS_MAX}</b></td> 
    132                               <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{MAIL_USED}&nbsp;/&nbsp;{MAIL_CURRENT}<br /> 
    133                                 {TR_OF}<br /> 
    134                                 <b>{MAIL_MAX}</b></td> 
    135                               <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{FTP_USED}&nbsp;/&nbsp;{FTP_CURRENT}<br /> 
    136                                 {TR_OF}<br /> 
    137                                 <b>{FTP_MAX}</b></td> 
    138                               <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{SQL_DB_USED}&nbsp;/&nbsp;{SQL_DB_CURRENT}<br /> 
    139                                 {TR_OF}<br /> 
    140                                 <b>{SQL_DB_MAX}</b></td> 
    141                               <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{SQL_USER_USED}&nbsp;/&nbsp;{SQL_USER_CURRENT}<br /> 
    142                                 {TR_OF}<br /> 
    143                                 <b>{SQL_USER_MAX}</b></td> 
     118                                {DISK_MSG}</b></td> 
     119                              <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{DMN_MSG}</td> 
     120                              <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{SUB_MSG}</td> 
     121                              <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{ALS_MSG}</td> 
     122                              <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{MAIL_MSG}</td> 
     123                              <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{FTP_MSG}</td> 
     124                              <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{SQL_DB_MSG}</td> 
     125                              <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{SQL_USER_MSG}</td> 
    144126                            </tr> 
    145127                            <!-- EDP: reseller_entry --> 
  • trunk/gui/themes/omega_original/admin/reseller_user_statistics.tpl

    r684 r751  
    109109                                        </table> 
    110110                                          <b>{TRAFF_SHOW_PERCENT}&nbsp;%</b><br /> 
    111                                         {TRAFF_USED}<br /> 
    112                                         {TR_OF}<br /> 
    113                                         <b>{TRAFF_MAX}</b></td> 
     111                                        {TRAFF_MSG}</td> 
    114112                                      <td class="{ITEM_CLASS}" nowrap="nowrap" align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> 
    115113                                          <tr> 
     
    126124                                        </table> 
    127125                                          <b>{DISK_SHOW_PERCENT}&nbsp;%</b><br /> 
    128                                         {DISK_USED}<br /> 
    129                                         {TR_OF}<br /> 
    130                                         <b>{DISK_MAX}</b></td> 
     126                                        {DISK_MSG}</td> 
    131127                                      <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{WEB}</td> 
    132128                                      <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{FTP}</td> 
    133129                                      <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{SMTP}</td> 
    134130                                      <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{POP3}</td> 
    135                                       <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{SUB_USED}<br /> 
    136                                         {TR_OF}<br /> 
    137                                         <b>{SUB_MAX}</b></td> 
    138                                       <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{ALS_USED}</td> 
    139                                       <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{MAIL_USED}<br /> 
    140                                         {TR_OF}<br /> 
    141                                         <b>{MAIL_MAX}</b></td> 
    142                                       <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{FTP_USED}<br /> 
    143                                         {TR_OF}<br /> 
    144                                         <b>{FTP_MAX}</b></td> 
    145                                       <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{SQL_DB_USED}<br /> 
    146                                         {TR_OF}<br /> 
    147                                         <b>{SQL_DB_MAX}</b></td> 
    148                                       <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{SQL_USER_USED}<br /> 
    149                                         {TR_OF}<br /> 
    150                                         <b>{SQL_USER_MAX}</b></td> 
     131                                      <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{SUB_MSG}</td> 
     132                                      <td class="{ITEM_CLASS}" nowrap="nowrap" align="center">{ALS_MSG}</td> 
     133                                      <td class="{ITEM_CLASS}" nowrap="