(2014-) * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt * @package Functions * */ /** * check if the system is FreeBSD (if exact) * or BSD-based (NetBSD, OpenBSD, etc. if exact = false [default]) * * @param boolean $exact whether to check explicitly for FreeBSD or *BSD * * @return boolean */ function isFreeBSD($exact = false) { if (($exact && PHP_OS == 'FreeBSD') || (!$exact && stristr(PHP_OS, 'BSD')) ) { return true; } return false; }