@@ -49,18 +49,18 @@ |
||
| 49 | 49 | $f = fopen($targetFile, 'w'); |
| 50 | 50 | if ($f) { |
| 51 | 51 | switch ($error) { |
| 52 | - case UPLOAD_ERR_INI_SIZE: |
|
| 53 | - $message = __("This file is too large."); |
|
| 54 | - break; |
|
| 55 | - case UPLOAD_ERR_FORM_SIZE: |
|
| 56 | - $message = __("Large files are not supported."); |
|
| 57 | - break; |
|
| 58 | - case UPLOAD_ERR_PARTIAL: |
|
| 59 | - $message = __("File was only partially uploaded."); |
|
| 60 | - break; |
|
| 61 | - default: |
|
| 62 | - $message = sprintf(__("Error code %s."), $error); |
|
| 63 | - break; |
|
| 52 | + case UPLOAD_ERR_INI_SIZE: |
|
| 53 | + $message = __("This file is too large."); |
|
| 54 | + break; |
|
| 55 | + case UPLOAD_ERR_FORM_SIZE: |
|
| 56 | + $message = __("Large files are not supported."); |
|
| 57 | + break; |
|
| 58 | + case UPLOAD_ERR_PARTIAL: |
|
| 59 | + $message = __("File was only partially uploaded."); |
|
| 60 | + break; |
|
| 61 | + default: |
|
| 62 | + $message = sprintf(__("Error code %s."), $error); |
|
| 63 | + break; |
|
| 64 | 64 | } |
| 65 | 65 | fprintf($f, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\""); |
| 66 | 66 | fprintf($f, "\"http://www.w3.org/TR/html4/strict.dtd\">"); |
@@ -86,8 +86,7 @@ |
||
| 86 | 86 | |
| 87 | 87 | if (locale_emulation()) { |
| 88 | 88 | print "locale '$locale' is not supported on your system, using custom gettext implementation.\n"; |
| 89 | - } |
|
| 90 | - else { |
|
| 89 | + } else { |
|
| 91 | 90 | print "locale '$locale' is supported on your system, using native gettext implementation.\n"; |
| 92 | 91 | } |
| 93 | 92 | |
@@ -145,8 +145,7 @@ |
||
| 145 | 145 | if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1') { |
| 146 | 146 | if (php_sapi_name() == 'cgi') { |
| 147 | 147 | header('Status: 303 See Other'); |
| 148 | - } |
|
| 149 | - else { |
|
| 148 | + } else { |
|
| 150 | 149 | header('HTTP/1.1 303 See Other'); |
| 151 | 150 | } |
| 152 | 151 | } |