|
|
(5 intermediate revisions by 2 users not shown) |
Line 2: |
Line 2: |
| | show_extras_section = true | | | show_extras_section = true |
| }} | | }} |
− | | + | {{NATS3 Manual |
| + | | show_extras_section = true |
| + | }} |
| Nats allows you as the owner to display your own error messages should an error occur on any of the NATS pages. | | Nats allows you as the owner to display your own error messages should an error occur on any of the NATS pages. |
| | | |
− | To do so, create the file custom_errors.php in your nats directory. This file can contain whatever message you wish to display on an error page. | + | To do so, create the file custom_errors.php in your /nats/ directory. This file can contain whatever message you wish to display on an error page. |
| | | |
| <pre> | | <pre> |
| custom_errors.php: | | custom_errors.php: |
| | | |
− | <? echo "An error has occured on this page, Sorry"; ?> | + | <? echo "An error has occurred on this page, Sorry"; ?> |
| </pre> | | </pre> |
| | | |
Line 16: |
Line 18: |
| | | |
| | | |
− | <H1>A Problem has been Encountered</H1> | + | <p style = "font-size: 32px;">A Problem has been Encountered</p> |
− | An error has occured on this page, Sorry | + | An error has occurred on this page, Sorry<br /> |
− | | + | Available variables for this page are:<br /><br /> |
| + | $errstr -> The error that has occurred<br /> |
| + | $errfile -> The file where the error occurred<br /> |
| + | $errline -> The line number where the error occurred<br /> |
| | | |
− | Available variables for this page are:
| + | [[Category:NATS4 Extras]] |
− | <pre>
| |
− | $errstr -> The error that has occured<br>
| |
− | $errfile -> The file where the error occured<br>
| |
− | $errline -> The line number where the error occured<br>
| |
− | </pre>
| |
− | [[Category:NATS Extras ]] | |