|
在:source/function/function_message.php
查找:
- $_G['hookscriptmessage'] = $message;
复制代码
上面加入:- if(strpos($message,'nonexistence') !== false || strpos($message,'noexist') !== false || strpos($message,'not_exist') !== false || strpos($message,'nofound') !== false || strpos($message,'no_found') !== false || strpos($message,'not_found') !== false){
- header('HTTP/1.1 404 Not Found');
- header('status: 404 Not Found');
- include('err404.htm');
- exit();
- }
复制代码 上传覆盖,刷新一个不存在的板块,就会出现404页面提示,而不是系统的板块不存在提示了。如果是帖子需要404,则修改:source\module\forum\forum_viewthread.php
查找:
- $page = max(1, $_G['page']);
复制代码 在上面加入:
刷新就 可以了。
|
|