Changeset d7f7951 in github
- Timestamp:
- Feb 15, 2008 6:55:16 AM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 547289c
- Parents:
- 10f55b9
- File:
-
- 1 edited
-
check.php-dist (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
check.php-dist
r6b9e4a2 rd7f7951 228 228 echo '<h3>Checking .ini settings</h3>'; 229 229 230 $auto_start = ini_get('session.auto_start'); 231 $file_uploads = ini_get('file_uploads'); 232 233 echo '<h4>session.auto_start = 0</h4>'; 234 echo 'status: '; 235 if ($auto_start == 1) { 236 echo CHECK_NOK; 237 } else { 238 echo CHECK_OK; 239 } 240 echo '<br />'; 241 242 echo '<h4>file_uploads = On</h4>'; 243 echo 'status: '; 244 if ($file_uploads == 1) { 245 echo CHECK_OK; 246 } else { 247 echo CHECK_NOK; 248 } 249 250 /* 251 * Probably not needed because we have a custom handler 252 echo '<h4>session.save_path <i>is set</i></h4>'; 253 echo 'status: '; 254 $save_path = ini_get('session.save_path'); 255 if (empty($save_path)) { 256 echo CHECK_NOK; 257 } else { 258 echo CHECK_OK . ": $save_path"; 259 if (!file_exists($save_path)) { 260 echo ', but it does not exist'; 261 } else { 262 if (!is_readable($save_path) || !is_writable($save_path)) { 263 echo ', but permissions to read and/or write are missing'; 264 } 265 } 266 } 267 echo '<br />'; 268 */ 230 $ini_array = array('session.auto_start' => 0, 'file_uploads' => 1, 231 'magic_quotes_sybase' => 0, 'magic_quotes_gpc' => 0); 232 233 foreach ($ini_array AS $var => $val) { 234 $status = ini_get($var); 235 236 echo "<h4>$var = $val</h4>"; 237 echo 'status: '; 238 if ($status != $val) { 239 echo CHECK_NOK; 240 } else { 241 echo CHECK_OK; 242 } 243 echo '<br />'; 244 } 269 245 270 246 @include $path . 'config/main.inc.php';
Note: See TracChangeset
for help on using the changeset viewer.
