| 2186 | | function status_header( $header ) { |
| 2187 | | if ( 200 == $header ) |
| 2188 | | $text = 'OK'; |
| 2189 | | elseif ( 301 == $header ) |
| 2190 | | $text = 'Moved Permanently'; |
| 2191 | | elseif ( 302 == $header ) |
| 2192 | | $text = 'Moved Temporarily'; |
| 2193 | | elseif ( 304 == $header ) |
| 2194 | | $text = 'Not Modified'; |
| 2195 | | elseif ( 404 == $header ) |
| 2196 | | $text = 'Not Found'; |
| 2197 | | elseif ( 410 == $header ) |
| 2198 | | $text = 'Gone'; |
| 2199 | | |
| | 2186 | function status_header( $header, $text='' ) { |
| | 2187 | if ( '' == $text) { |
| | 2188 | if ( 200 == $header ) |
| | 2189 | $text = 'OK'; |
| | 2190 | elseif ( 301 == $header ) |
| | 2191 | $text = 'Moved Permanently'; |
| | 2192 | elseif ( 302 == $header ) |
| | 2193 | $text = 'Moved Temporarily'; |
| | 2194 | elseif ( 304 == $header ) |
| | 2195 | $text = 'Not Modified'; |
| | 2196 | elseif ( 404 == $header ) |
| | 2197 | $text = 'Not Found'; |
| | 2198 | elseif ( 410 == $header ) |
| | 2199 | $text = 'Gone'; |
| | 2200 | elseif ( 500 == $header ) |
| | 2201 | $text = 'Database Not Available'; |
| | 2202 | } |