# redirection/2.6/view/error.php

Redirection, version 2.6. 6 lines.

- Page: https://pluginprobe.com/plugins/redirection/2.6/code/view/error.php
- Raw: https://pluginprobe.com/plugins/redirection/2.6/raw/view/error.php
- Modified: 2015-06-07T17:52:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/redirection/2.6/code/view/error.php#L10-L20`.

```php
<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><script type="text/javascript" charset="utf-8">
	if (document.getElementById ('ajax_error'))
		$('ajax_error').innerHTML = '<?php printf ("%s - %s, %s", $message, $file, $line); ?>';
	else
		alert ('<?php printf ("%s - %s, %s", $message, $file, $line); ?>');
</script>
```
