📄 boards.php
字号:
<?php/** * This source file is part of SMTH BBS PHP Library Project. * Copyright (c) 2002-2003 SMTH BBS * * This file contains PHP library functions for operating boards, * such as checking read-only board, checking anonymouse, etc. * * $Id: boards.php,v 1.3 2003/04/15 18:09:06 flyriver Exp $ */if (!defined('_BBS_BOARDS_PHP_')){define('_BBS_BOARDS_PHP_', 1);require("funcs.php");/** * Checking whether a board is set with some specific flags or not. * * @param $board the board object to be checked * @param $flag the flags to check * @return TRUE the board is set with the flags * FALSE the board is not set with the flags * @author flyriver */function bbs_check_board_flag($board,$flag){ if ($board["FLAG"] & $flag) return TRUE; else return FALSE;}/** * Checking whether a board is an anonymous board or not. * * @param $board the board object to be checked * @return TRUE the board is an anonymous board * FALSE the board is not an anonymous board * @author flyriver */function bbs_is_anony_board($board){ global $BOARD_FLAGS; return bbs_check_board_flag($board, $BOARD_FLAGS["ANONY"]);}/** * Checking whether a board is an outgo board or not. * * @param $board the board object to be checked * @return TRUE the board is an outgo board * FALSE the board is not an outgo board * @author flyriver */function bbs_is_outgo_board($board){ global $BOARD_FLAGS; return bbs_check_board_flag($board, $BOARD_FLAGS["OUTGO"]);}/** * Checking whether a board is a junk board or not. * * @param $board the board object to be checked * @return TRUE the board is a junk board * FALSE the board is not a junk board * @author flyriver */function bbs_is_junk_board($board){ global $BOARD_FLAGS; return bbs_check_board_flag($board, $BOARD_FLAGS["JUNK"]);}/** * Checking whether a board is an attachment board or not. * * @param $board the board object to be checked * @return TRUE the board is an attachment board * FALSE the board is not an attachment board * @author flyriver */function bbs_is_attach_board($board){ global $BOARD_FLAGS; return bbs_check_board_flag($board, $BOARD_FLAGS["ATTACH"]);}/** * Checking whether a board is a readonly board or not. * * @param $board the board object to be checked * @return TRUE the board is a readnoly board * FALSE the board is not a readonly board * @author flyriver */function bbs_is_readonly_board($board){ global $BOARD_FLAGS; return bbs_check_board_flag($board, $BOARD_FLAGS["READONLY"]);}} // !define ('_BBS_BOARDS_PHP_')?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -