attachment-server/phplib/libcustomerrorgen.php

50 lines
1.5 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
function gen_error_400($reason="") {
http_response_code(400);
echo "400 bad request: ";
echo $reason;
echo "\n";
echo "٩(๑`^´๑)۶你对这个小程序做了什么哇...";
echo "\n";
echo "这个页面是非预期的。如果你通过构造请求来到这里,那么你的思路可能出了点问题";
echo "\n";
exit;
}
function gen_error_404($reason="") {
http_response_code(404);
echo "404 resource not found: ";
echo $reason;
echo "\n";
echo "(⊙.⊙)这...这不对吧...";
echo "\n";
echo "这个页面是非预期的。如果你通过构造请求来到这里,那么你的思路可能出了点问题";
echo "\n";
exit;
}
function gen_error_405($reason="") {
http_response_code(405);
echo "405 method not allowed: ";
echo $reason;
echo "\n";
echo "(/‵Д′)~ ╧╧你到底在干什么啊";
echo "\n";
echo "这个页面是非预期的。如果你通过构造请求来到这里,那么你的思路可能出了点问题";
echo "\n";
exit;
}
function gen_error_500($reason="") {
http_response_code(500);
echo "500 internal error: ";
echo $reason;
echo "\n";
echo "(✘Д✘๑ )哇啊!服务器居然出错惹...呜呜...。゚ヽ(゚´Д`)ノ゚。";
echo "\n";
echo "请刷新重试几次还是不行的话请从群里找到ly65喵可能叫 流萤#65 或者 lhy6305 之类的)私聊进行敲打,附上你的请求参数和上面的报错信息,谢谢喵";
echo "\n";
exit;
}