Changeset 1173

Show
Ignore:
Timestamp:
05/27/08 11:06:53 (6 months ago)
Author:
rats
Message:

* Fixed #1291: reseller/ahp.php complains about already sent header
* Fixed #1293: in client/protect_it.php template variable {USER_SELECTED} is not set
* Fixed #1294: id has to be unique in the whole html file, but in the list in admin/settings_ports.php|.tpl are several unique id's
* Fixed #1299: there is a typo in the whole ispcp, cannot is wrongly written separated, but it is used to write it together

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r1171 r1173  
    22~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    33 
     42008-05-27 Benedikt Heintel 
     5        - GUI: 
     6                * Fixed #1291: reseller/ahp.php complains about already sent header 
     7                * Fixed #1293: in client/protect_it.php template variable {USER_SELECTED} is not set 
     8                * Fixed #1294: id has to be unique in the whole html file, but in the list in admin/settings_ports.php|.tpl are several unique id's 
     9                * Fixed #1299: there is a typo in the whole ispcp, cannot is wrongly written separated, but it is used to write it together 
     10                * Fixed #1300: some html fixes; replaced <font> with external CSS class or span; webmail/pma theme css fixes - Part 7 
     11 
    4122008-05-26 Jochen Manz 
    513        - GUI: 
     
    1523                * Fixed #1284: Some HTML, JS fixes, removed ugly/useless whitespace removed useles height="*" - Part 4 
    1624                * Fixed #1275: TR_PHP_YES, TR_PHP_NO, TR_CGI_YES, TR_CGI_NO and TR_STATUS_YES aren't replaced correctly 
    17                  
     25 
    18262008-05-23 Jochen Manz 
    1927        - GUI: 
     
    26342008-05-22 Benedikt Heintel 
    2735        - GUI: 
    28                 * Fixed #1275: Some HTML and CSS fixes in the HTML templates and some PHP files - Part 2  
     36                * Fixed #1275: Some HTML and CSS fixes in the HTML templates and some PHP files - Part 2 
    2937                * Fixed #1273: some HTML fixes in the HTML templates - Part 1 
    3038                * Fixed #1274: remove Disallow /ispcp/ from robots.txt 
  • trunk/engine/ispcp_common_methods.pl

    r1035 r1173  
    439439 
    440440    if ($res != 1) { 
    441         push_el(\@main::el, 'setfmode()', "ERROR: Can not change permissions of file '$fname' !"); 
     441        push_el(\@main::el, 'setfmode()', "ERROR: cannot change permissions of file '$fname' !"); 
    442442        return -1; 
    443443    } 
     
    446446 
    447447    if ($res != 1) { 
    448         push_el(\@main::el, 'setfmode()', "ERROR: Can not change user/group of file '$fname' !"); 
     448        push_el(\@main::el, 'setfmode()', "ERROR: cannot change user/group of file '$fname' !"); 
    449449        return -1; 
    450450 
  • trunk/gui/admin/edit_domain.php

    r1160 r1173  
    486486                if ($data == -1) { 
    487487                        if ($u > 0) { 
    488                                 $err .= tr('The <em>%s</em> service can not be disabled! ', $obj) . tr('There are <em>%s</em> records on system!', $obj); 
     488                                $err .= tr('The <em>%s</em> service cannot be disabled! ', $obj) . tr('There are <em>%s</em> records on system!', $obj); 
    489489                        } else { 
    490490                                $umax = $data; 
     
    496496                } else if ($data > 0) { 
    497497                        if ($u > $data) { 
    498                                 $err .= tr('The <em>%s</em> service can not be limited! ', $obj) . tr('Specified number is smaller than <em>%s</em> records, present on the system!', $obj); 
     498                                $err .= tr('The <em>%s</em> service cannot be limited! ', $obj) . tr('Specified number is smaller than <em>%s</em> records, present on the system!', $obj); 
    499499                        } else { 
    500500                                $umax = $data; 
     
    506506                if ($data == -1) { 
    507507                        if ($u > 0) { 
    508                                 $err .= tr('The <em>%s</em> service can not be disabled! ', $obj) . tr('There are <em>%s</em> records on the system!', $obj); 
     508                                $err .= tr('The <em>%s</em> service cannot be disabled! ', $obj) . tr('There are <em>%s</em> records on the system!', $obj); 
    509509                        } else { 
    510510                                $r -= $umax; 
     
    518518                } else if ($data > 0) { 
    519519                        if ($u > $data) { 
    520                                 $err .= tr('The <em>%s</em> service can not be limited! ', $obj) . tr('Specified number is smaller than <em>%s</em> records, present on the system!', $obj); 
     520                                $err .= tr('The <em>%s</em> service cannot be limited! ', $obj) . tr('Specified number is smaller than <em>%s</em> records, present on the system!', $obj); 
    521521                        } else { 
    522522                                if ($umax > $data) { 
     
    535535                        return; 
    536536                } else if ($data == 0) { 
    537                         $err .= tr('The <em>%s</em> service can not be unlimited! ', $obj) . tr('There are reseller limits for the <em>%s</em> service!', $obj); 
     537                        $err .= tr('The <em>%s</em> service cannot be unlimited! ', $obj) . tr('There are reseller limits for the <em>%s</em> service!', $obj); 
    538538                        return; 
    539539                } else if ($data > 0) { 
    540540                        if ($r + $data > $rmax) { 
    541                                 $err .= tr('The <em>%s</em> service can not be limited! ', $obj) . tr('You are exceeding reseller limits for the <em>%s</em> service!', $obj); 
     541                                $err .= tr('The <em>%s</em> service cannot be limited! ', $obj) . tr('You are exceeding reseller limits for the <em>%s</em> service!', $obj); 
    542542                        } else { 
    543543                                $r += $data; 
     
    560560                if ($data == -1) { 
    561561                        if ($u > 0) { 
    562                                 $err .= tr('The <em>%s</em> service can not be disabled! ', $obj) . tr('There are <em>%s</em> records on the system!', $obj); 
     562                                $err .= tr('The <em>%s</em> service cannot be disabled! ', $obj) . tr('There are <em>%s</em> records on the system!', $obj); 
    563563                        } else { 
    564564                                $r -= $umax; 
     
    568568                        return; 
    569569                } else if ($data == 0) { 
    570                         $err .= tr('The <em>%s</em> service can not be unlimited! ', $obj) . tr('There are reseller limits for the <em>%s</em> service!', $obj); 
     570                        $err .= tr('The <em>%s</em> service cannot be unlimited! ', $obj) . tr('There are reseller limits for the <em>%s</em> service!', $obj); 
    571571 
    572572                        return; 
    573573                } else if ($data > 0) { 
    574574                        if ($u > $data) { 
    575                                 $err .= tr('The <em>%s</em> service can not be limited! ', $obj) . tr('Specified number is smaller than <em>%s</em> records, present on the system!', $obj); 
     575                                $err .= tr('The <em>%s</em> service cannot be limited! ', $obj) . tr('Specified number is smaller than <em>%s</em> records, present on the system!', $obj); 
    576576                        } else { 
    577577                                if ($umax > $data) { 
     
    582582 
    583583                                        if ($r + $data_inc > $rmax) { 
    584                                                 $err .= tr('The <em>%s</em> service can not be limited! ', $obj) . tr('You are exceeding reseller limits for the <em>%s</em> service!', $obj); 
     584                                                $err .= tr('The <em>%s</em> service cannot be limited! ', $obj) . tr('You are exceeding reseller limits for the <em>%s</em> service!', $obj); 
    585585                                                return; 
    586586                                        } 
  • trunk/gui/admin/edit_reseller.php

    r1163 r1173  
    829829 
    830830$tpl->parse('PAGE', 'page'); 
    831  
    832831$tpl->prnt(); 
    833832 
    834 if ($cfg['DUMP_GUI_DEBUG']) dump_gui_debug(); 
     833if ($cfg['DUMP_GUI_DEBUG']) 
     834        dump_gui_debug(); 
    835835 
    836836unset_messages(); 
  • trunk/gui/admin/manage_reseller_users.php

    r1014 r1173  
    369369                $err .= tr('<b>%1$s</b> has unlimited rights for a <b>%2$s</b> Service !<br>', $uname, $obj); 
    370370 
    371                 $err .= tr('You can not move <b>%1$s</b> in a destination reseller,<br>which has limits for the <b>%2$s</b> service!', $uname, $obj); 
     371                $err .= tr('You cannot move <b>%1$s</b> in a destination reseller,<br>which has limits for the <b>%2$s</b> service!', $uname, $obj); 
    372372 
    373373                return; 
     
    435435                                $err = ''; 
    436436                        } 
    437                         $err .= tr('<b>%s</b> has IP address that can not be managed from the destination reseller !<br>This user can not be moved!', $domain_name); 
     437                        $err .= tr('<b>%s</b> has IP address that cannot be managed from the destination reseller !<br>This user cannot be moved!', $domain_name); 
    438438 
    439439                        return false; 
  • trunk/gui/admin/settings.php

    r1122 r1173  
    118118        $tpl->assign('LOSTPASSWORD_SELECTED_OFF', 'selected="selected"'); 
    119119} 
    120 if ($cfg['PASSWD_CHARS']) { 
    121         $tpl->assign('{PASSWD_STRONG_ON}', 'selected="selected"'); 
    122         $tpl->assign('{PASSWD_STRONG_OFF}', ''); 
    123 } else { 
    124         $tpl->assign('{PASSWD_STRONG_ON}', ''); 
    125         $tpl->assign('{PASSWD_STRONG_OFF}', 'selected="selected"'); 
     120 
     121if ($cfg['PASSWD_STRONG']) { 
     122        $tpl->assign('PASSWD_STRONG_ON', 'selected="selected"'); 
     123        $tpl->assign('PASSWD_STRONG_OFF', ''); 
     124} else { 
     125        $tpl->assign('PASSWD_STRONG_ON', ''); 
     126        $tpl->assign('PASSWD_STRONG_OFF', 'selected="selected"'); 
    126127} 
    127128 
  • trunk/gui/admin/settings_ports.php

    r1014 r1173  
    3232 
    3333$tpl->assign( 
    34         array('TR_ADMIN_SETTINGS_PAGE_TITLE' => tr('ispCP - Admin/Settings'), 
     34        array( 
     35                'TR_ADMIN_SETTINGS_PAGE_TITLE' => tr('ispCP - Admin/Settings'), 
    3536                'THEME_COLOR_PATH' => "../themes/$theme_color", 
    3637                'THEME_CHARSET' => tr('encoding'), 
     
    196197                                $tpl->assign(array('SERVICE' => $name . "<input name=\"name[]\" type=\"hidden\" id=\"name\" value=\"" . $name . "\" />")); 
    197198                                $tpl->assign( 
    198                                         array('PORT_READONLY' => 'readonly', 
     199                                        array( 
     200                                                'PORT_READONLY' => 'readonly', 
    199201                                                'PROTOCOL_READONLY' => 'disabled', 
    200202                                                'TR_DELETE' => '-', 
    201                                                 'PORT_DELETE_LINK' => '' 
     203                                                'PORT_DELETE_LINK' => '', 
     204                                                'NUM' => $row 
    202205                                                ) 
    203206                                        ); 
     
    206209                                $tpl->assign(array('SERVICE' => "<input name=\"name[]\" type=\"text\" id=\"name\" value=\"" . $name . "\" class=\"textinput\" maxlength=\"25\" />")); 
    207210                                $tpl->assign( 
    208                                         array('PORT_READONLY' => '', 
     211                                        array( 
     212                                                'PORT_READONLY' => '', 
    209213                                                'PROTOCOL_READONLY' => '', 
    210214                                                'TR_DELETE' => tr('Delete'), 
    211215                                                'URL_DELETE' => 'settings_ports.php?delete=' . $rs->fields['name'], 
    212                                                 'PORT_DELETE_SHOW' => '' 
     216                                                'PORT_DELETE_SHOW' => '', 
     217                                                'NUM' => $row 
    213218                                                ) 
    214219                                        ); 
     
    217222 
    218223                        $tpl->assign( 
    219                                 array('CUSTOM' => $custom, 
     224                                array( 
     225                                        'CUSTOM' => $custom, 
    220226                                        'VAR_NAME' => $rs->fields['name'], 
    221227                                        'PORT' => $port, 
     
    252258 
    253259$tpl->assign( 
    254         array('TR_ACTION' => tr('Action'), 
     260        array( 
     261                'TR_ACTION' => tr('Action'), 
    255262                'TR_UDP' => tr('udp'), 
    256263                'TR_TCP' => tr('tcp'), 
     
    274281 
    275282$tpl->parse('PAGE', 'page'); 
    276  
    277283$tpl->prnt(); 
    278284 
  • trunk/gui/client/add_ftp_acc.php

    r1157 r1173  
    451451 
    452452    if ($_POST['dmn_type'] === 'sub' && $_POST['sub_id'] === 'n/a') { 
    453         set_page_message(tr('Subdomain list is empty! You can not add FTP accounts there!')); 
     453        set_page_message(tr('Subdomain list is empty! You cannot add FTP accounts there!')); 
    454454        return; 
    455455    } 
    456456 
    457457    if ($_POST['dmn_type'] === 'als' && $_POST['als_id'] === 'n/a') { 
    458         set_page_message(tr('Alias list is empty! You can not add FTP accounts there!')); 
     458        set_page_message(tr('Alias list is empty! You cannot add FTP accounts there!')); 
    459459        return; 
    460460    } 
  • trunk/gui/client/add_mail_acc.php

    r1157 r1173  
    406406 
    407407    if ($_POST['dmn_type'] === 'sub' && !isset($_POST['sub_id'])) { 
    408         set_page_message(tr('Subdomain list is empty! You can not add mail accounts!')); 
     408        set_page_message(tr('Subdomain list is empty! You cannot add mail accounts!')); 
    409409        return; 
    410410    } 
    411411 
    412412    if ($_POST['dmn_type'] === 'als' && !isset($_POST['als_id'])) { 
    413         set_page_message(tr('Alias list is empty! You can not add mail accounts!')); 
     413        set_page_message(tr('Alias list is empty! You cannot add mail accounts!')); 
    414414        return; 
    415415    } 
  • trunk/gui/client/ftp_choose_dir.php

    r1014 r1173  
    4444        $list = $vfs->ls($path); 
    4545        if (!$list) { 
    46                 set_page_message(tr('Can not open directory !<br>Please contact your administrator !')); 
     46                set_page_message(tr('cannot open directory !<br>Please contact your administrator !')); 
    4747                return; 
    4848        } 
  • trunk/gui/client/protect_it.php

    r1161 r1173  
    9292                                $user_id .= $users[$i]; 
    9393                                if ($user_id == '-1' || $user_id == '') { 
    94                                         set_page_message(tr('You can not protect area without selected user(s)')); 
     94                                        set_page_message(tr('You cannot protect area without selected user(s)')); 
    9595                                        return; 
    9696                                } 
     
    105105                                $group_id .= $groups[$i]; 
    106106                                if ($group_id == '-1' || $group_id == '') { 
    107                                         set_page_message(tr('You can not protect area without selected group(s)')); 
     107                                        set_page_message(tr('You cannot protect area without selected group(s)')); 
    108108                                        return; 
    109109                                } 
     
    117117        $alt_path = $path . "/"; 
    118118        $query = <<<SQL_QUERY 
    119         select 
     119        SELECT 
    120120            id 
    121         from 
     121        FROM 
    122122            htaccess 
    123         where 
     123        WHERE 
    124124             dmn_id = ? 
    125                 and 
     125                AND 
    126126                        (path = ? 
    127                                or 
     127                        OR 
    128128                        path = ?) 
    129129SQL_QUERY; 
     
    136136                $update_id = $rs->fields['id']; 
    137137                $query = <<<SQL_QUERY 
    138         update htaccess 
    139                 set 
     138        UPDATE 
     139                        htaccess 
     140                SET 
    140141                        user_id = ?, 
    141142                        group_id = ?, 
     
    143144                        path = ?, 
    144145                        status = ? 
    145         where 
     146        WHERE 
    146147                        id = '$update_id' 
    147148SQL_QUERY; 
     
    153154        } else { 
    154155                $query = <<<SQL_QUERY 
    155         insert into htaccess 
     156        INSERT INTO 
     157                        htaccess 
    156158            (dmn_id, user_id, group_id, auth_type, auth_name, path, status) 
    157         values 
     159        VALUES 
    158160            (?, ?, ?, ?, ?, ?, ?) 
    159161SQL_QUERY; 
     
    177179                $group_id = 0; 
    178180                $tpl->assign( 
    179                         array('PATH' => '', 
     181                        array( 
     182                                'PATH' => '', 
    180183                                'AREA_NAME' => '', 
    181184                                'UNPROTECT_IT' => '', 
     
    190193 
    191194                $query = <<<SQL_QUERY 
    192         select 
     195        SELECT 
    193196            * 
    194         from 
     197        FROM 
    195198            htaccess 
    196         where 
     199        WHERE 
    197200             dmn_id = ? 
    198                 and 
     201                AND 
    199202                        id = ? 
    200203SQL_QUERY; 
     
    220223 
    221224                $tpl->assign( 
    222                         array('PATH' => $path, 
     225                        array( 
     226                                'PATH' => $path, 
    223227                                'AREA_NAME' => $auth_name, 
    224228                                ) 
     
    260264 
    261265        $query = <<<SQL_QUERY 
    262         select 
     266        SELECT 
    263267            * 
    264         from 
     268        FROM 
    265269            htaccess_users 
    266         where 
     270        WHERE 
    267271             dmn_id = ? 
    268  
    269272SQL_QUERY; 
    270273 
     
    273276        if ($rs->RecordCount() == 0) { 
    274277                $tpl->assign( 
    275                         array('USER_VALUE' => "-1", 
    276                                 'USER_LEBEL' => tr('You have no users !') 
     278                        array( 
     279                                'USER_VALUE' => "-1", 
     280                                'USER_LABEL' => tr('You have no users !'), 
     281                                'USER_SELECTED' => '' 
    277282                                ) 
    278283                        ); 
     
    293298                                        array( 
    294299                                                'USER_VALUE' => $rs->fields['id'], 
    295                                                 'USER_LEBEL' => $rs->fields['uname'], 
     300                                                'USER_LABEL' => $rs->fields['uname'], 
    296301                                                'USER_SELECTED' => $usr_selected, 
    297302                                                ) 
     
    305310 
    306311        $query = <<<SQL_QUERY 
    307         select 
     312        SELECT 
    308313            * 
    309         from 
     314        FROM 
    310315            htaccess_groups 
    311         where 
     316        WHERE 
    312317             dmn_id = ? 
    313  
    314318SQL_QUERY; 
    315319 
     
    320324                                array( 
    321325                                        'GROUP_VALUE' => "-1", 
    322                                         'GROUP_LEBEL' => tr('You have no groups!') 
     326                                        'GROUP_LABEL' => tr('You have no groups!'), 
     327                                        'GROUP_SELECTED' => '' 
    323328                                        ) 
    324329                                ); 
     
    339344                                        array( 
    340345                                                'GROUP_VALUE' => $rs->fields['id'], 
    341                                                 'GROUP_LEBEL' => $rs->fields['ugroup'], 
     346                                                'GROUP_LABEL' => $rs->fields['ugroup'], 
    342347                                                'GROUP_SELECTED' => $grp_selected, 
    343348                                                ) 
  • trunk/gui/include/admin-functions.php

    r1152 r1173  
    951951 
    952952                if ($sub_max != -1) { 
    953                         if ($sub_max == 0) $rsub_uf = '_on_'; 
     953                        if ($sub_max == 0) 
     954                                $rsub_uf = '_on_'; 
    954955 
    955956                        $rsub_current += $sub_current; 
     
    958959 
    959960                if ($als_max != -1) { 
    960                         if ($als_max == 0) $rals_uf = '_on_'; 
     961                        if ($als_max == 0) 
     962                                $rals_uf = '_on_'; 
    961963 
    962964                        $rals_current += $als_current; 
     
    964966                } 
    965967 
    966                 if ($mail_max == 0) $rmail_uf = '_on_'; 
     968                if ($mail_max == 0) 
     969                        $rmail_uf = '_on_'; 
    967970 
    968971                $rmail_current += $mail_current; 
    969972                $rmail_max += $mail_max; 
    970973 
    971                 if ($ftp_max == 0) $rftp_uf = '_on_'; 
     974                if ($ftp_max == 0) 
     975                        $rftp_uf = '_on_'; 
    972976 
    973977                $rftp_current += $ftp_current; 
     
    975979 
    976980                if ($sql_db_max != -1) { 
    977                         if ($sql_db_max == 0) $rsql_db_uf = '_on_'; 
     981                        if ($sql_db_max == 0) 
     982                                $rsql_db_uf = '_on_'; 
    978983 
    979984                        $rsql_db_current += $sql_db_current; 
     
    982987 
    983988                if ($sql_user_max != -1) { 
    984                         if ($sql_user_max == 0) $rsql_user_uf = '_on_'; 
     989                        if ($sql_user_max == 0) 
     990                                $rsql_user_uf = '_on_'; 
    985991 
    986992                        $rsql_user_current += $sql_user_current; 
     
    988994                } 
    989995 
    990                 if ($traff_max == 0) $rtraff_uf = '_on_'; 
     996                if ($traff_max == 0) 
     997                        $rtraff_uf = '_on_'; 
    991998 
    992999                $rtraff_current += $traff_current; 
    9931000                $rtraff_max += $traff_max; 
    9941001 
    995                 if ($disk_max == 0) $rdisk_uf = '_on_'; 
     1002                if ($disk_max == 0) 
     1003                        $rdisk_uf = '_on_'; 
    9961004 
    9971005                $rdisk_current += $disk_current; 
     
    10401048        $als_current = records_count('alias_id', 'domain_aliasses', 'domain_id', $user_id); 
    10411049        $als_max = $rs->fields['domain_alias_limit']; 
    1042         // Sorry 4 the strange Hack, but it works - RatS 
     1050        // Sorry for the strange Hack, but it works - RatS 
    10431051        $mail_current = records_count('mail_id', 'mail_users', 'mail_type NOT RLIKE \'_catchall\' AND domain_id', $user_id); 
    10441052        $mail_max = $rs->fields['domain_mailacc_limit']; 
    10451053 
    1046         $ftp_current = sub_records_rlike_count('domain_name', 'domain', 'domain_id', $user_id, 
    1047                 'userid', 'ftp_users', 'userid', '@', '' 
    1048                 ); 
     1054        $ftp_current = sub_records_rlike_count( 'domain_name', 'domain', 'domain_id', $user_id, 
     1055                                                                                        'userid', 'ftp_users', 'userid', '@', ''); 
    10491056 
    10501057        $ftp_current += sub_records_rlike_count('subdomain_name', 'subdomain', 'domain_id', $user_id, 
    1051                 'userid', 'ftp_users', 'userid', '@', '' 
    1052                 ); 
     1058                                                                                        'userid', 'ftp_users', 'userid', '@', ''); 
    10531059 
    10541060        $ftp_current += sub_records_rlike_count('alias_name', 'domain_aliasses', 'domain_id', $user_id, 
    1055                 'userid', 'ftp_users', 'userid', '@', '' 
    1056                 ); 
     1061                                                                                        'userid', 'ftp_users', 'userid', '@', ''); 
    10571062 
    10581063        $ftp_max = $rs->fields['domain_ftpacc_limit']; 
     
    10611066        $sql_db_max = $rs->fields['domain_sqld_limit']; 
    10621067 
    1063         $sql_user_current = sub_records_count('sqld_id', 'sql_database', 'domain_id', $user_id, 
    1064                 'sqlu_id', 'sql_user', 'sqld_id', '', '' 
    1065                 ); 
     1068        $sql_user_current = sub_records_count(  'sqld_id', 'sql_database', 'domain_id', $user_id, 
     1069                                                                                        'sqlu_id', 'sql_user', 'sqld_id', '', ''); 
    10661070 
    10671071        $sql_user_max = $rs->fields['domain_sqlu_limit']; 
     
    10711075        $disk_max = $rs->fields['domain_disk_limit']; 
    10721076 
    1073         return array($sub_current, $sub_max, 
    1074                 $als_current, $als_max, 
    1075                 $mail_current, $mail_max, 
    1076                 $ftp_current, $ftp_max, 
    1077                 $sql_db_current, $sql_db_max, 
    1078                 $sql_user_current, $sql_user_max, 
    1079                 $traff_max, 
    1080                 $disk_max); 
     1077        return array( 
     1078                        $sub_current, $sub_max, $als_current, $als_max, 
     1079                        $mail_current, $mail_max, $ftp_current, $ftp_max, 
     1080                        $sql_db_current, $sql_db_max, $sql_user_current, 
     1081                        $sql_user_max, $traff_max, $disk_max); 
    10811082} 
    10821083 
     
    22282229function gen_purchase_haf(&$tpl, &$sql, $user_id, $encode = false) { 
    22292230        global $cfg; 
    2230          
     2231 
    22312232        $query = <<<SQL_QUERY 
    22322233                        SELECT 
  • trunk/gui/include/client-functions.php

    r1171 r1173  
    831831        // drop desired database; 
    832832        $query = <<<SQL_QUERY 
    833         DROP DATABASE 
    834 SQL_QUERY; 
    835  
    836         $query .= $db_name; 
    837  
    838         $rs = exec_query($sql, $query, array()); 
     833        DROP DATABASE ?; 
     834SQL_QUERY; 
     835 
     836        $rs = exec_query($sql, $query, array($db_name)); 
    839837 
    840838        write_log($_SESSION['user_logged'] . ": delete SQL database: " . $db_name); 
  • trunk/gui/include/ispcp-lib.php

    r1073 r1173  
    7777// the following variables are overriden via admin cp 
    7878$cfg['DOMAIN_ROWS_PER_PAGE'] = 10; 
    79 // 'admin' => hosting plans are available only in admin level, reseller can not make custom changes 
     79// 'admin' => hosting plans are available only in admin level, reseller cannot make custom changes 
    8080// 'reseller' => hosting plans are available only in reseller level 
    8181$cfg['HOSTING_PLANS_LEVEL'] = 'reseller'; 
  • trunk/gui/include/login.php

    r1157 r1173  
    5959 
    6060            if (!is_userdomain_ok($uname)) { 
    61                 write_log($uname." Domain status is not OK - user can not login"); 
     61                write_log($uname." Domain status is not OK - user cannot login"); 
    6262                system_message(tr("%s's account status is not ok!", $uname)); 
    6363                return false; 
  • trunk/gui/include/reseller-functions.php

    r1152 r1173  
    13141314        if ($dmn_max != 0) { 
    13151315                if ($dmn_current + 1 > $dmn_max) { 
    1316                         set_page_message(tr('You have reached your domains limit.<br>You can not add more domains!')); 
     1316                        set_page_message(tr('You have reached your domains limit.<br>You cannot add more domains!')); 
    13171317                        $error = true; 
    13181318                } 
     
    13221322                if ($sub_new != -1) { 
    13231323                        if ($sub_new == 0) { 
    1324                                 set_page_message(tr('You have a subdomains limit!<br>You can not add an user with unlimited subdomains!')); 
     1324                                set_page_message(tr('You have a subdomains limit!<br>You cannot add an user with unlimited subdomains!')); 
    13251325                                $error = true; 
    13261326                        } else if ($sub_current + $sub_new > $sub_max) { 
     
    13341334                if ($als_new != -1) { 
    13351335                        if ($als_new == 0) { 
    1336                                 set_page_message(tr('You have an aliases limit!<br>You can not add an user with unlimited aliases!')); 
     1336                                set_page_message(tr('You have an aliases limit!<br>You cannot add an user with unlimited aliases!')); 
    13371337                                $error = true; 
    13381338                        } else if ($als_current + $als_new > $als_max) { 
     
    13451345        if ($mail_max != 0) { 
    13461346                if ($mail_new == 0) { 
    1347                         set_page_message(tr('You have a mail accounts limit!<br>You can not add an user with unlimited mail accounts!')); 
     1347                        set_page_message(tr('You have a mail accounts limit!<br>You cannot add an user with unlimited mail accounts!')); 
    13481348                        $error = true; 
    13491349                } else if ($mail_current + $mail_new > $mail_max) { 
     
    13541354        if ($ftp_max != 0) { 
    13551355                if ($ftp_new == 0) { 
    1356                         set_page_message(tr('You have a FTP accounts limit!<br>You can not add an user with unlimited FTP accounts!')); 
     1356                        set_page_message(tr('You have a FTP accounts limit!<br>You cannot add an user with unlimited FTP accounts!')); 
    13571357                        $error = true; 
    13581358                } else if ($ftp_current + $ftp_new > $ftp_max) { 
     
    13651365                if ($sql_db_new != -1) { 
    13661366                        if ($sql_db_new == 0) { 
    1367                                 set_page_message(tr('You have a SQL databases limit!<br>You can not add an user with unlimited SQL databases!')); 
     1367                                set_page_message(tr('You have a SQL databases limit!<br>You cannot add an user with unlimited SQL databases!')); 
    13681368                                $error = true; 
    13691369                        } else if ($sql_db_current + $sql_db_new > $sql_db_max) { 
     
    13771377                if ($sql_user_new != -1) { 
    13781378                        if ($sql_user_new == 0) { 
    1379                                 set_page_message(tr('You have an SQL users limit!<br>You can not add an user with unlimited SQL users!')); 
     1379                                set_page_message(tr('You have an SQL users limit!<br>You cannot add an user with unlimited SQL users!')); 
    13801380                                $error = true; 
    13811381                        } else if ($sql_db_new == -1) { 
    1382                                 set_page_message(tr('You have disabled SQL databases for this user!<br>You can not have SQL users here!')); 
     1382                                set_page_message(tr('You have disabled SQL databases for this user!<br>You cannot have SQL users here!')); 
    13831383                                $error = true; 
    13841384                        } else if ($sql_user_current + $sql_user_new > $sql_user_max) { 
     
    13911391        if ($traff_max != 0) { 
    13921392                if ($traff_new == 0) { 
    1393                         set_page_message(tr('You have a traffic limit!<br>You can not add an user with unlimited traffic!')); 
     1393                        set_page_message(tr('You have a traffic limit!<br>You cannot add an user with unlimited traffic!')); 
    13941394                        $error = true; 
    13951395                } else if ($traff_current + $traff_new > $traff_max) { 
     
    14011401        if ($disk_max != 0) { 
    14021402                if ($disk_new == 0) { 
    1403                         set_page_message(tr('You have a disk limit!<br>You can not add an user with unlimited disk!')); 
     1403                        set_page_message(tr('You have a disk limit!<br>You cannot add an user with unlimited disk!')); 
    14041404      &