Revision 2030
Added by Luisehahne about 11 years ago
index.php | ||
---|---|---|
69 | 69 |
$session_support = '<font class="bad">Disabled</font>'; |
70 | 70 |
} |
71 | 71 |
} |
72 |
$getMagicQuotesGpc = '<font class="good">Disabled</font>'; |
|
73 |
if ( function_exists('get_magic_quotes_gpc') && filter_var(strtolower(get_magic_quotes_gpc()), FILTER_VALIDATE_BOOLEAN ) ) { |
|
74 |
$getMagicQuotesGpc = '<font class="bad">Enabled</font>'; |
|
75 |
$installFlag = false; |
|
76 |
} |
|
77 |
|
|
72 | 78 |
// Check if AddDefaultCharset is set |
73 | 79 |
$e_adc=false; |
74 | 80 |
$sapi=php_sapi_name(); |
... | ... | |
97 | 103 |
$sConfigFile = $sWbPath.$sType.'.php'; |
98 | 104 |
|
99 | 105 |
// config.php or config.php.new |
100 |
if( (file_exists($sConfigFile)==true)) |
|
101 |
{ |
|
106 |
if ((file_exists($sConfigFile)==true)) { |
|
102 | 107 |
// next operation only if file is writeable |
103 |
if(is_writeable($sConfigFile)) |
|
104 |
{ |
|
108 |
if (is_writeable($sConfigFile)) { |
|
105 | 109 |
// already installed? it's not empty |
106 |
if ( filesize($sConfigFile) > 100) |
|
107 |
{ |
|
110 |
if (filesize($sConfigFile) > 100) { |
|
108 | 111 |
$config = '<font class="bad">Already installed? Check!</font>'; |
109 | 112 |
// try to open and to write |
110 |
} elseif( !$handle = fopen($sConfigFile, 'w') ) |
|
111 |
{ |
|
113 |
} elseif (!$handle = fopen($sConfigFile, 'w')) { |
|
112 | 114 |
$config = '<font class="bad">Not Writeable</font>'; |
113 | 115 |
} else { |
114 | 116 |
if (fwrite($handle, $sConfigContent) === FALSE) { |
... | ... | |
119 | 121 |
} |
120 | 122 |
// Close file |
121 | 123 |
fclose($handle); |
122 |
}
|
|
124 |
} |
|
123 | 125 |
} else { |
124 | 126 |
$config = '<font class="bad">Not Writeable</font>'; |
125 | 127 |
} |
126 | 128 |
// it's config.php.new |
127 |
} elseif((file_exists($sConfigFile.'.new')==true)) |
|
128 |
{ |
|
129 |
} elseif ((file_exists($sConfigFile.'.new')==true)) { |
|
129 | 130 |
$config = '<font class="bad">Please rename to '.$sType.'.php</font>'; |
130 | 131 |
} else { |
131 | 132 |
$config = '<font class="bad">Missing!!?</font>'; |
... | ... | |
138 | 139 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
139 | 140 |
<head> |
140 | 141 |
<title>WebsiteBaker Installation Wizard</title> |
141 |
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" /> |
|
142 | 142 |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> |
143 | 143 |
<link href="stylesheet.css" rel="stylesheet" type="text/css" /> |
144 | 144 |
<script type="text/javascript"> |
... | ... | |
196 | 196 |
</tr> |
197 | 197 |
<?php } ?> |
198 | 198 |
<tr> |
199 |
<td style="color: #666666;">PHP Version > 5.2.1</td>
|
|
199 |
<td style="color: #666666;">PHP Version 5.3.2 and up</td>
|
|
200 | 200 |
<td> |
201 | 201 |
<?php |
202 |
if (version_compare(PHP_VERSION, '5.2.1', '>'))
|
|
202 |
if (version_compare(PHP_VERSION, '5.3.2', '>='))
|
|
203 | 203 |
{ |
204 | 204 |
?><font class="good">Yes</font><?php |
205 | 205 |
} else { |
... | ... | |
213 | 213 |
</tr> |
214 | 214 |
<tr> |
215 | 215 |
<td style="color: #666666;">PHP Interface</td> |
216 |
<td colspan="2">
|
|
216 |
<td> |
|
217 | 217 |
<?php |
218 | 218 |
?><font class="good"> |
219 | 219 |
<?php echo $sapi ?> |
220 | 220 |
</font> |
221 | 221 |
</td> |
222 |
<td style="color: #666666;">magic_quotes_gpc</td> |
|
223 |
<td > |
|
224 |
<?php |
|
225 |
?><font class="good"> |
|
226 |
<?php echo $getMagicQuotesGpc ?> |
|
227 |
</font> |
|
228 |
</td> |
|
229 |
|
|
222 | 230 |
</tr> |
223 | 231 |
|
224 | 232 |
<td style="color: #666666;">Server DefaultCharset</td> |
Also available in: Unified diff
! /install/index.php add query magic_quotes_gpc (has to be disables)
! /install/save.php set values for home_folders and page_languages to default false
- remove 0 byte file in FCKeditor