231 |
232 |
233 |
234 |
235 |
239 |
240 |
241 |
242 |
243 |
244 | ';
248 |
249 | switch ($data['group']) {
250 | case 'url':
251 | echo '
URL Error (' . htmlspecialchars($data['error']) . '): ';
252 | switch ($data['type']) {
253 | case 'internal':
254 | $message = 'Failed to connect to the specified host. '
255 | . 'Possible problems are that the server was not found, the connection timed out, or the connection refused by the host. '
256 | . 'Try connecting again and check if the address is correct.';
257 | break;
258 | case 'external':
259 | switch ($data['error']) {
260 | case 1:
261 | $message = 'The URL you\'re attempting to access is blacklisted by this server. Please select another URL.';
262 | break;
263 | case 2:
264 | $message = 'The URL you entered is malformed. Please check whether you entered the correct URL or not.';
265 | break;
266 | }
267 | break;
268 | }
269 | break;
270 | case 'resource':
271 | echo '
Resource Error: ';
272 | switch ($data['type']) {
273 | case 'file_size':
274 | $message = 'The file your are attempting to download is too large.
'
275 | . 'Maxiumum permissible file size is
' . number_format($GLOBALS['_config']['max_file_size'] / 1048576, 2) . ' MB'
276 | . 'Requested file size is
' . number_format($GLOBALS['_content_length'] / 1048576, 2) . ' MB';
277 | break;
278 | case 'hotlinking':
279 | $message = 'It appears that you are trying to access a resource through this proxy from a remote Website.
'
280 | . 'For security reasons, please use the form below to do so.';
281 | break;
282 | }
283 | break;
284 | }
285 |
286 | echo 'An error has occured while trying to browse through the proxy.
' . $message . '';
287 | break;
288 | }
289 | ?>
290 |
291 |
292 |