public static function CP($p, $act = '', $ret = '') { if (self::is_superadmin()) { return true; } if ($p === '__CID__') { foreach ((array) iMember::$cpower as $key => $_cid) { if (!strstr($value, ':')) { self::CP($_cid, $act) && ($cids[] = $_cid); } } return $cids; } $act && ($p = $p . ':' . $act); $rt = iMember::check_power((string) $p, iMember::$cpower); $rt or self::permission_msg($p, $ret); return $rt; }