isCS -- Check if logged-in member is CS of a specific unit.
($id, $type = 'Fleet')
This function will check to see if the member that is currently logged in is in the command staff of a specified unit and type.
$id is the id of the unit in question. It is mandatory.
$type is either "Fleet" (Default), "Wing", or "Squadron" and is optional. "Fleet" will be used if no argument is given.
The user's login information (RSID) will be compared to the member id's for the command staff of the specified unit and if a match occurrs, true is returned. If no match or failure occurrs, false is returned.
Note: Command staff includes CO, XO, or SO. No other positions are checked.
isCS (1) /* Check if logged-in member is in the command staff of fleet with id 1. */
isCS (1, "Wing") /* Check if logged-in member is in the command staff of wing with id 1. */