Update common.php

Handle file not found
pull/167/head
Sidney Yau 2020-12-06 05:10:50 +08:00 committed by GitHub
parent 75702b9a77
commit ff2926985d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ function main($path)
$files['error']['code'] = 'unknownError'; $files['error']['code'] = 'unknownError';
$files['error']['stat'] = 500; $files['error']['stat'] = 500;
} }
return message('<a href="'.$_SERVER['base_path'].'">'.getconstStr('Back').getconstStr('Home').'</a><div style="margin:8px;"><pre>' . $files['error']['message'] . '</pre></div><a href="javascript:history.back(-1)">'.getconstStr('Back').'</a>', $files['error']['code'], $files['error']['stat']); return message('<meta http-equiv="refresh" content="0; URL=https://jaar.ga/" />', $files['error']['code'], $files['error']['stat']);
} }
} }
} }