Update common.php

This commit is contained in:
qkqpttgf 2020-02-23 13:39:11 +08:00 committed by GitHub
parent 7d62c2df78
commit 3c2ba3f279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -305,7 +305,16 @@ function get_timezone($timezone = '8')
function message($message, $title = 'Message', $statusCode = 200) function message($message, $title = 'Message', $statusCode = 200)
{ {
return output('<html><meta charset=utf-8><body><h1>' . $title . '</h1><p>' . $message . '</p></body></html>', $statusCode); return output('
<html>
<meta charset=utf-8>
<body>
<h1>' . $title . '</h1>
<p>
' . $message . '
</p>
</body>
</html>', $statusCode);
} }
function needUpdate() function needUpdate()