Changeset 1081

Show
Ignore:
Timestamp:
03/26/08 13:10:51 (8 months ago)
Author:
rats
Message:

Fixed #1135: php and cgi options in the hosting plans

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r1079 r1081  
    11ispCP ω 1.0.0 Changelog 
    22~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     3 
     42008-03-26 Benedikt Heintel 
     5        - GUI: 
     6                * Fixed #1135: php and cgi options in the hosting plans 
    37 
    482008-03-25 Benedikt Heintel 
  • trunk/engine/ispcp-dmn-mngr

    r1080 r1081  
    40504050    my $sql = "SELECT `lang` FROM `user_gui_props` WHERE `user_id` = ".$user_id.";"; 
    40514051    my ($rs, $rdata) = doSQL($sql); 
     4052    $rdata = @$rdata[0]; 
    40524053    return $rs if ($rs != 0); 
    40534054 
  • trunk/gui/reseller/rau2.php

    r1014 r1081  
    2929 
    3030$theme_color = $cfg['USER_INITIAL_THEME']; 
    31 // check if we have only hosting plans for admins - ressseler shoul not can edit them 
     31// check if we have only hosting plans for admins - reseller should not edit them 
    3232if (isset($cfg['HOSTING_PLANS_LEVEL']) && $cfg['HOSTING_PLANS_LEVEL'] === 'admin') { 
    3333        header("Location: users.php"); 
     
    4545 
    4646/* 
    47  * 
    4847 * static page messages. 
    49  * 
    5048 */ 
    5149 
     
    149147                ); 
    150148 
    151         if ("yes" === $hp_php) 
     149        if ("_yes_" === $hp_php) { 
    152150                $tpl->assign( 
    153                         array('VL_PHPY' => 'checked', 
     151                        array( 
     152                                'VL_PHPY' => 'checked', 
    154153                                'VL_PHPN' => '' 
    155154                                ) 
    156155                        ); 
    157         else 
     156        } else { 
    158157                $tpl->assign( 
    159                         array('VL_PHPN' => 'checked', 
     158                        array( 
     159                                'VL_PHPN' => 'checked', 
    160160                                'VL_PHPY' => '', 
    161161                                ) 
    162162                        ); 
    163  
    164         if ("yes" === $hp_cgi) 
     163        } 
     164        if ("_yes_" === $hp_cgi) { 
    165165                $tpl->assign( 
    166                         array('VL_CGIY' => 'checked', 
     166                        array( 
     167                                'VL_CGIY' => 'checked', 
    167168                                'VL_CGIN' => '' 
    168169                                ) 
    169170                        ); 
    170         else 
     171        } else { 
    171172                $tpl->assign( 
    172                         array('VL_CGIN' => 'checked', 
     173                        array( 
     174                                'VL_CGIN' => 'checked', 
    173175                                'VL_CGIY' => '', 
    174176                                ) 
    175177                        ); 
     178        } 
    176179} // End of get_init_au2_page() 
    177180