Changeset 1081
- 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
| r1079 |
r1081 |
|
| 1 | 1 | ispCP ω 1.0.0 Changelog |
|---|
| 2 | 2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| | 3 | |
|---|
| | 4 | 2008-03-26 Benedikt Heintel |
|---|
| | 5 | - GUI: |
|---|
| | 6 | * Fixed #1135: php and cgi options in the hosting plans |
|---|
| 3 | 7 | |
|---|
| 4 | 8 | 2008-03-25 Benedikt Heintel |
|---|
| r1080 |
r1081 |
|
| 4050 | 4050 | my $sql = "SELECT `lang` FROM `user_gui_props` WHERE `user_id` = ".$user_id.";"; |
|---|
| 4051 | 4051 | my ($rs, $rdata) = doSQL($sql); |
|---|
| | 4052 | $rdata = @$rdata[0]; |
|---|
| 4052 | 4053 | return $rs if ($rs != 0); |
|---|
| 4053 | 4054 | |
|---|
| r1014 |
r1081 |
|
| 29 | 29 | |
|---|
| 30 | 30 | $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 |
|---|
| 32 | 32 | if (isset($cfg['HOSTING_PLANS_LEVEL']) && $cfg['HOSTING_PLANS_LEVEL'] === 'admin') { |
|---|
| 33 | 33 | header("Location: users.php"); |
|---|
| … | … | |
| 45 | 45 | |
|---|
| 46 | 46 | /* |
|---|
| 47 | | * |
|---|
| 48 | 47 | * static page messages. |
|---|
| 49 | | * |
|---|
| 50 | 48 | */ |
|---|
| 51 | 49 | |
|---|
| … | … | |
| 149 | 147 | ); |
|---|
| 150 | 148 | |
|---|
| 151 | | if ("yes" === $hp_php) |
|---|
| | 149 | if ("_yes_" === $hp_php) { |
|---|
| 152 | 150 | $tpl->assign( |
|---|
| 153 | | array('VL_PHPY' => 'checked', |
|---|
| | 151 | array( |
|---|
| | 152 | 'VL_PHPY' => 'checked', |
|---|
| 154 | 153 | 'VL_PHPN' => '' |
|---|
| 155 | 154 | ) |
|---|
| 156 | 155 | ); |
|---|
| 157 | | else |
|---|
| | 156 | } else { |
|---|
| 158 | 157 | $tpl->assign( |
|---|
| 159 | | array('VL_PHPN' => 'checked', |
|---|
| | 158 | array( |
|---|
| | 159 | 'VL_PHPN' => 'checked', |
|---|
| 160 | 160 | 'VL_PHPY' => '', |
|---|
| 161 | 161 | ) |
|---|
| 162 | 162 | ); |
|---|
| 163 | | |
|---|
| 164 | | if ("yes" === $hp_cgi) |
|---|
| | 163 | } |
|---|
| | 164 | if ("_yes_" === $hp_cgi) { |
|---|
| 165 | 165 | $tpl->assign( |
|---|
| 166 | | array('VL_CGIY' => 'checked', |
|---|
| | 166 | array( |
|---|
| | 167 | 'VL_CGIY' => 'checked', |
|---|
| 167 | 168 | 'VL_CGIN' => '' |
|---|
| 168 | 169 | ) |
|---|
| 169 | 170 | ); |
|---|
| 170 | | else |
|---|
| | 171 | } else { |
|---|
| 171 | 172 | $tpl->assign( |
|---|
| 172 | | array('VL_CGIN' => 'checked', |
|---|
| | 173 | array( |
|---|
| | 174 | 'VL_CGIN' => 'checked', |
|---|
| 173 | 175 | 'VL_CGIY' => '', |
|---|
| 174 | 176 | ) |
|---|
| 175 | 177 | ); |
|---|
| | 178 | } |
|---|
| 176 | 179 | } // End of get_init_au2_page() |
|---|
| 177 | 180 | |
|---|
|
Download in other formats:
#########################################################################
# Site footer - Contents are automatically inserted after main Trac HTML
?>