File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 66 * @license MIT public license
77 */
88
9- set_exception_handler (fn () => exit ('<style>body{font-family:monospace;color:#fff;font-size:2em;background:#444;padding:5em;text-align:center}</style>
10- <p>⚠<br>Something went wrong while showing this page<br>Contact the site admin for assistance</p> ' ));
9+ set_exception_handler (function (Throwable $ ex ) {
10+ ob_clean ();
11+ error_log ("[ " . date ('r ' ) . "] {$ ex ->getMessage ()}: {$ ex ->getTraceAsString ()}" );
12+ exit ('<style>body{font-family:monospace;color:#fff;font-size:2em;background:#444;padding:5em;text-align:center}</style>
13+ <p>⚠<br>Something went wrong while showing this page<br>Contact the site admin for assistance</p> ' );
14+ });
1115require 'config.php ' ;
1216date_default_timezone_set ($ timezone ?? 'America/New_York ' );
1317$ uri = parse_url (rtrim ($ _SERVER ['REQUEST_URI ' ], '/ ' ) ?: '/ ' , PHP_URL_PATH );
You can’t perform that action at this time.
0 commit comments